Grasshopper

algorithmic modeling for Rhino

Hello,

I'm having trouble getting a series of referenced surfaces to map correctly into a data tree. I've attached a diagram of the problem to help explain.

Basically, I have 59 surfaces representing 59 floors of a building. In the data tree however, items (0) and (58) are swapped, but the rest are in the correct order. I have been trying to reconstruct the list, but haven't found a solution yet. Clearing the values and reassigning hasn't done the trick. Neither has using the 'Manage Surface Collection' option.

Any help would be appreciated. I would upload the files but it is part of a much larger script and the .3dm is about 500mb...

Views: 1439

Replies to This Discussion

extract a point on each surface (centroid, corner, ect) then decompose the point into xyz values and sort one of the directions (whichever direction you want the order to be) with the sort component, plug the surfaces to the sort to sort synchronously. 

before sort

after sort

Attachments:

Wow, perfect fix. Thanks!

As an aside, how did you get the floating text tags to be tied to your points?

The component called "point list" you insert a list of points and it will tell you the order they are in. 

Nice timing ;)

Yeah you beat me to the draw by 10 seconds

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