Curve Boolean

Hi All,

I am trying to get a set of closed curves out of a group of both closed and open curves in c# as in “Curve Boolean” commend in rhino. Please see the attached image where I select all curves and set the inner region to get separate closed curves.


Any suggestions will be much appreciated.

20_05_22_curve_boolean_union.gh (16.3 KB)

Hi Martin,

Thanks for the definition. I meant from “open and closed curves”. Please see attached - there are one closed curve (cyan) and two open curves (magenta), and what I want to do in c# is to get closed curves (blue - offset is just to make them visible).


Any thought?
Thanks in advance.

Sorry didn’t read propperly before, was mainly looking at the screenshot and thought you need a boolean union.

Splitting the closed curve can be done with the BrepFace.Split Method

20_05_22_split_brep_face.gh (11.6 KB)

This is great. I was kind of obsessed with more complicated method, but it simply works! Thanks much!

W

See attached as well

Curve_ToRegions_EntryLevel_V1.gh (121.0 KB)

Peter - that’s beautiful! Thanks! I haven’t still finished the Nurbs book by the way.

W

Hurry: time flies.

BTW: Sligthly better logic on that one:
Curve_ToRegions_EntryLevel_V1A.gh (125.9 KB)

BTW: The “general” (kinda) case is faaaaar more tricky and requires containment clustering: as a challenge try to do something about that.
Curve_ToRegions_EntryLevel_V1B.gh (126.7 KB)

1 Like