Poor result for Compare lists (point)

Hello,
My goal, to insert a family following a given point, unless there is already a family to be point.
I want to know if elements already exist in a view (using their coordinates).
I use the SetDifference node, but the result is not correct.
In my example:
A) the list of points where I should insert a family
B) The list of points where there is already a family
C) The difference between the two lists, except that the point x = -24203.468, y, z is too much in the result.
Where is the problem ?

** French
Bonjour,
Mon but, insérer une famille suivant un point donné, sauf si il y a déjà une famille à se point.
Je cherche à savoir si des éléments existent déjà dans une vue (en utilisant leurs coordonnées).
J’utilise le nœud SetDifference, mais le résultat n’est pas correct.
Dans mon exemple :
A) la liste des points ou je devrais insérer une famille
B) La liste des point ou il y a déjà une famille
C) La différence entre les 2 listes, sauf que , le point x=-24203.468,y,z est de trop dans le résultat.
Ou est le problème ?

Hi @Alain_Hamel

Try using Geometry.DoesIntersect node.

Hi,
The problem is that list A is not yet an element, but a list of points

@Alain_Hamel Round off coordinate values and reconstruct the points.
Will try to explain the issue below…

Using some design script for the same may be a lot more convenient

Point.ByCoordinates(Math.Round(p.X,3),Math.Round(p.Y,3),Math.Round(p.Z,3));

2 Likes

Hi,
A big thank you, it works :slight_smile:

1 Like