Is it possible to "automatically" make a curve Boolean and use it in GH?

rhino
grasshopper

#1

Hi everyone,

Is it possible changing…

By using “Curve Boolean” but without manually selecting the regions?

If Curve Boolean can’t do it, does someone knows a script that can?
I think that it should be theoretically possible for Rhino to work it out automatically.

I am asking here since what i’m looking for is to get this working in GH eventually if possible.

Thank you,

Roy Z.


(Nathan 'jesterKing' Letwory) #2

Perhaps this works for you.

gh_curve_boolean_union.gh (10.8 KB)

Note, I made this with Grasshopper in Rhino WIP. I hope it works ok in v5, too.


#3

I think this will not keep the inner regions seperate. I used GH booleans for breps (surfaces) from the curves, then created the borders from the breps:

c.


(Chuck Welsh) #4

In Rhino, you can call PlanarSrf on the curves, then testPlanarUnion, which is a test command so will not auto-complete, then DupBorder. testPlanarUnion uses the low level CurveBoolean code.


(David Cockey) #5

In Rhino you can also PlanarSrf to create surfaces from the curves, then BooleanUnion to create a single polysurface, then DupBorder to extract the border curve of the single polysurface. Difference from @chuck suggestion is BooleanUnion rather than testPlanarUnion.


(Chuck Welsh) #6

If you use BooleanUnion, make sure results from PlanarSrf are all pointing the same way.


#7

Thank you everyone! I am looking into your suggestions :slight_smile: