Filter a list using values i dont want

Geometry conversion is… difficult to say the least. Strings are finite and only round once, but geometry suffers (benefits?) from having floating point conversion with all the underpaying mathematics to build the shape (so 3x for a point). As such Geometry is best compared with the underlaying values (strings in this case), or with methods which accommodate this difference.

The ‘base level’ of this comparison is easy enough to think through: if the point in list 1 and list 2 is the same, then the distance between the two will be 0, or near to zero with floating point concerns. Geometry.Distance to will make short work of getting the distance. == with tolerance or Math.Round and == will take care of the second bit, then it’s just a matter of filtering.

For more complex geometries a distance comparison won’t work as the distance from a hot dog and the bun it’s consumed in will be zero, but they certainly aren’t the same. Fortunately you can use this node to identify that the hotdog isn’t like the bun, but two identical hotdogs are in the same place in space: Dynamo Dictionary

Give it a shot as you guys are REALLY close (and now I really want to go grill up some dinner).

3 Likes

@jacob.small @AmolShah

Guys thanks a heap for your input! im going to take some time to digest it, as jacob will be doing with his hot dogs :stuck_out_tongue_winking_eye: But im sure we’ll catch up on this again. Thanks again

2 Likes

I’m also signing off as well. Good luck with your project.
Here are 3 more options to choose from.


Solved.dyn (47.3 KB)

3 Likes

Option #2 = :trophy:

Thank you Jacob.
Your insights were really helpful.

Rebuilding the points with rounded coordinates could seem redundant but would help


pointsDifference.dyn (110.9 KB)

2 Likes

Thanks Vikram, ill have a look

1 Like

Cheers @Vikram_Subbaiah, Very good

1 Like