Grasshopper

algorithmic modeling for Rhino

Hi all,

I'm struggling with this problem of organising (or sorting) a series of lines counter-clockwise (or clockwise, it doesn't matter). I checked some previous discussions but I just can't manage to make it work for what I want.

So I've tried to sort first the points instead of the lines with the component " Sort Along Curve" and I sorted the middle point of each line, so now I have the new order of indices that sort the points in a counter-clockwise manner. And I want to sort the lines in similar way using the new indices generated, but I can't. I tried the "Replace Items" component but for some reason is not sorting them in the correct way. (Previous to the Sort along curve step both, lines and middle point are order in the same way). 

Any ideas of how to use the new indices to sort the list of curves?

Thanks,

Martha

Views: 357

Attachments:

Replies to This Discussion

Hi.

This is one way.

Attachments:

Hi Hyungsoo, Thank you very much! It worked perfectly for what I wanted. 

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