Grasshopper

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

Views: 1925

Attachments:

Replies to This Discussion

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

Attachments:

Great, Thanks for your help.

Best

Get the trad update as well (added an option: kill dupes per tree or per branch?).

Attachments:

Thanks!

Best!

Patricio

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service