Grasshopper

algorithmic modeling for Rhino

Hello, I have trouble splitting a list in smaller ones containing points with the same y coordinate.

I am creating a terrain surface from level curves, and i'm doing it with the contour method to create the net of curves.

Now i have to split my list of points into smaller ones containing only the points sharing the same y coordinates and then create a polyline between them.

I just can't figure out how to do that. 

I attach a screenshot.

Thanks a lot!

Views: 4716

Replies to This Discussion

You first need to group by y coordinate, but to insure they poly line doesn't overlap you should then sort those groups internally by the direction they will run (in my example I sort by x)

Attachments:

Thanks it worked pretty well!!

But i don't know why it skips some points..

cant tell unless you attache a file

Thanks again!

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service