Grasshopper

algorithmic modeling for Rhino

Hello Everybody, this time i'm having problems to re order some points, the thing is it is a long long list of points generated by some circles that appear and disappear, the thing is i want to re order them depending on its z coordinate or height, so then i can create curves for each level and loft them. The list is too long to do it manually with a series or something and besides i think it wouldn't work since the points are being generated.

Also, I beleive that the resulting list of points should be divided in different paths for me to be able to have all that different curves and then loft them.

thank you very much, i'm really stuck on this one

Diego

Views: 2128

Replies to This Discussion

Hi Diego,

the sorting bit is simple, not so sure about the re-grouping bit.

First, extract the z-coordinates of all your points. Then sort this list of values using the Sort component, and supply the original pointlist as a synchronous input (A). The output for A will then be the points sorted by ascending z.

--
David Rutten
I don't beleive it i spend about 2 hours yesterday using the sort component, achieved nothing, and evenually gave up; for some reason i was using two sort components always connecting the things in wrong order, well thanks a lot again David, today i'll work on the separating the heights on different paths.

diego

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service