Grasshopper

algorithmic modeling for Rhino

Sorting different pointS for creating a closed polyline

Hi all,

I have different points where I want a polyline to go through; I connect the points to the polyline component in the order I want it to be generated but the polyline is not closing the way I want to. Is there a way to organize the points so I can generate the polyline without crossovers? Thanks!

Views: 694

Attachments:

Replies to This Discussion

If the points are convex, you can just use [Convex Hull], no sorting required. Otherwise you can sort your points along a curve. You could for example get the average of all points, create a circle around the average and sort along that circle.

\Tha

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service