Grasshopper

algorithmic modeling for Rhino

hey,

 

i have a geometry which produces a lot of points after intersecting. the points are quiet close together. Now I want to replace x-number of points wich are closer than for example 5mm with one point.

I tried with decompse point and compare the x,y,z values, but it did not work?

 

Thanks for help

 

Johannes

Views: 686

Replies to This Discussion

Hi Johannes,

 

what if you averaged the t parameter for the 5 points within your tolerance and then produced a single new point with the evaluate curve?

 

Danny

Hi Johannes,

 

are the points which are close together also next to each other in the data-list? If yes, you can create a polyline through all the points and Reduce or Simplify it with a given tolerance. This should collapse short segments (i.e. nearby points).

 

If not, then I think you'll have to use Proximity3D to find clusters of nearby points. Just make sure that your group-size limit is very high and your maximum-distance is set to your specific tolerance. Then you somehow need to go from that proximity-network to local clusters. Which might actually be quite tricky. I don't have time right now to test this though. 

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thank you both,

 

I will try both solutions and give you feedback

 

Best Regards

 

Johannes

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service