algorithmic modeling for Rhino
Hi,
I am a bit confused about the inner workings of Curve.CreateBooleanUnion and how Regions are managed in Rhino (if they are), because there seems to be no specific type for Regions.
If I have a list of closed curves that are co-planar and I use Curve.CreateBooleanUnion, the Rhinocommon SDK says that it will return an array of Curves. This seems fine; from my understanding the array must include the outline curve and the inner holes, but what if Curve.CreateBooleanUnion creates a number of different regions, i.e. seperate outlines with inner holes? How are these formatted in the returned array of Curves such that I might be able create a list of Planar Surfaces from them or Hatches?
Any help or advice is much appreciated.
Thanks,
Adam
Tags:
If I'm not mistaken, Brep[] CreatePlanarBreps(IEnumerable<Curve>) will handle this situation just fine - it will automatically detect which regions are outer boundaries and which ones are holes. Similarly with Hatch.Create.
Does that answer your question? were you running into trouble doing this?
Hey Andrew,
Thanks for your reply. That method works great! I had been searching in vain for it in relation to creating surfaces because of how it is categorized in rhino and grasshopper, and I didn't think to look for a brep method...
Planar Breps seem to be a bit heavy to use for organizing the curves. I am trying to do it by creating hatches now, but there doesn't seem to be a way of accessing the boundary curves of the hatch after you create it? Do you know of a way? Or is this only possible with Surfaces and Breps?
hatches are EXTREMELY poorly implemented in rhinocommon. As far as I know there is no way at all to access the boundary of a hatch; I've been trying myself for some time. http://www.grasshopper3d.com/forum/topics/hatch-explode
That's unfortunate...
Is it possible to get access any of the geometry of the hatch object? Or does hatch.explode always give you an empty array regardless of which hatch type it is using?
hatch.Explode will give you the curves that constitute the hatch, or a trimmed planar surface brep if the hatch is solid.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by