How nesting of the details (brep or geometry) when objects are not on the plane

Hello guys, really need your help!
I have some details (closed polysurface) in Rhino and I want to lay each detail on the plane for laser cut.
I did it when I had surface and curves.test.3dm (4.2 MB)

The picture shows what I need (I managed to do this when I had polylines)

Try OpenNest :


decoup_rh6.gh (15.4 KB)

Thank you very much!!! I’ve just started to study grasshopper and it’s quite tricky)
I would be very grateful if you tell me your definition (code)
I don’t understand what this parameter is (on the picture)


And I see some differences between the codes in the picture and in the file. Would you so kind explain it, please.

Hi
The small component is a relay and is only avaible on RH6


Here’s a version of the definition for RH5 (without relay)
decoup_rh5.gh (15.1 KB)
Previously I uploaded a different version, hence the inconsistency between the image and definition. Both do the same things.

Thank you!!! :pray: :pray: :pray: