Make 2d output closed curves for overlapped objects

I was wondering if it was possible to make Make2D output a closed curve when an object is overlapped as illustrated below.



Example Obj


Current Output


Desired Output

Is this possible, or is there some other way to achieve a similar effect?

not sure you can do it with Make2D
but looking at the problem, i think you can use CurveBoolean to automatically detect all the closed regions.

Try this
Select all the curves and paste the following snippet in the command prompt → wait until the script runs, then press enter (or right-click)

-_CurveBoolean _DeleteInput=Yes _CombineRegions=No _Output=Curves _AllRegions 

Curve boolean is certainly useful in these situations, and is usually the way I fix issues like these. However, since I need to differentiate between objects (one closed curve for black object, and one for red), I need to do this by hand.
Of course, curve boolean can’t understand what line work represents one object or another, which is why I need to make the distinction during make2D, where rhino is working with polysurfaces that it can identify as individual objects.

i see. in that case i’d make a script where i can insert the logic necessary to keep each object its layer. Have a go at it - later during the day i might find some time to help you out

1 Like

thank you, will try it out when I get the chance