Grasshopper

algorithmic modeling for Rhino

Hi,

I'm not sure I understand the IEnumerable - can someone post an example of the Brep.CreateBooleanUnion method in C#? 

I can't seem to get it to work. 

Thanks. 

Views: 991

Replies to This Discussion

Yeah, this is .NET kicking in for the most universal version of various commands. The answer slowly crystallized recently. One kludge was to not use an IEnumerable but fill a blank Brep list with items, and that actually worked, but the general answer is you have to import a library to create a .NET container.

http://www.grasshopper3d.com/forum/topics/python-longer-version-of-...

from System.Collections.Generic import List

geomBaseList = List[GeometryBase]()
# add stuff to list (curves, points)

Thank you so much for the help, it's appreciated. 

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service