algorithmic modeling for Rhino
Dear, I need to remove the duplicate point from a tree.
I attached an .gh file with a tree of 49 or 48 points in your lists, but the list with 49 points has 2 duplicate points.
The CullPt command can remove duplicate points from an individual list but I can not know how to do with the tree.
Best
Patricio
Tags:
Check attached:
If there's a userTree around then it works with that.
If not (i.e. userTree is null etc etc) then regardless the mode chosen a demo is active where you can control dupes with a variety of ways.
NOTE: The dupe removal works "sequentially" meaning that the first point in some branch that is already contained in some "special" collection (HashSet: it doesn't allow dupes by design) is NOT stored in the resulting ("cleaned" tree).
NOTE: For very large N of points is not exactly lighting fast but ... well ... is better than nothing.
best
Great, Thanks for your help.
Best
Get the trad update as well (added an option: kill dupes per tree or per branch?).
Thanks!
Best!
Patricio
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by