Grasshopper

algorithmic modeling for Rhino

how can i flatten Tree c#?

Views: 1278

Replies to This Discussion

you need to make sure your input parameter has list access / tree access first. This will change the signature of your RunScript method to be either "RunScript(List<Curve> x, ..." or "RunScript("DataTree<Curve> x, ...". Once you've got that access you'll have to do a little more leg work around iterating over that list / tree yourself, but if you've done that you can easily output your own "flat" list by populating a single list with the desired results. 

Get this very simple test (Notify if you need mode tree/list/whatever examples)

best, Peter

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service