Divide closed curve into several closed curve by split lines

Hello. I have the following issue: I need to divide each closed curve, into several smaller closed curves, along existing division lines. Is there any way to do this with less labor?

I think you could make a surface out of your initial closed curve, split it, and retrieve the edges of each slice

1 Like

Curve.CreateBooleanRegions might work for you. I donā€™t know if itā€™s implemented in native Grasshopper components yet, but one can implement it a scripting component if not:

1 Like

Thank you. I downloaded the grass-file, but I get an error when opening the python script: ā€˜typeā€™ object has no attribute ā€˜CreateBooleanRegionsā€™. Maybe the problem is in the Rhino version? I have 6.

That was my first thought, but I have a lot of branches and elements, so this approach takes a lot of time and Iā€™d like to do without building surfaces so as not to reduce the speed of the script.

Yup, the CreateBooleanRegions method was added in Rhino 7.

Can I get any solution in Rhino6?

3. Attach minimal versions of all the relevant files

Hope dies last (should die first)

BrepFace_SplitWithOffsetCurves_V1.gh (131.8 KB)

Note: RC crv.Offset() Method used is useless (in most complex cases). So sample ā€œsimpleā€ splitters (and cross fingers).