Just a note, the Layer Gabarito contains also 3 block instance of a screw (which I moved to another random Layer as those should not be part of the nesting)
there are many threads on this very topic of nesting 2D curves starting from 3D objects, and the success rate of that operation mostly depends (in my opinion) on how “constant” you are in maintaining some features in 3D geometries you create (for this reason it sort of works well the more you use it and sort of get used to it in such a way you can adjust you 3D drawing to the purpose of 2D nesting)
for instance, something as easy and basic as the following (that in great part just reproduce things that have been seen before, also from the last definitions in this very thread) might work in this case:
3D_extrusions_to_nested_2D_curves.gh (26.6 KB)
and all it takes is to write in the Geometry Pipeline component the exact name of the Layer that contains the 3D geometries to be nested (double click on it to write a different Layer name)
the main point of this whole post is to understand the limitations, in such a way you don’t trust this to work blindly, but know in advance some key points:
-
the Geometries (Breps) must have planar faces, oriented in whatever direction in space, but they must be planar
-
for each extrusion (Brep) this definition finds the face with the biggest area, and that face is considered to be the whole profile of the extrusion itself
so for instance it will fail if you want to lasercut this deep L shaped surface, because the area of the L is smaller than the area of the side, so the profile of the side will recognized as “thing to lasercut” instead:
-
after finding the Face with maximum area, it finds all the edge curves that belong to that face, and assumes the longest curve is always the external profile that contains the shorter ones
in a “standard” situation like the following it is true to say that the longest curve (A, in red) is the external profile:
but that is not always true, like in this weird scenario
the curve containment thing can be improved a lot, but this basic setup should work in like 99.9% of the situations
in the text panel with the Nesting options, the spacing value (in drawing units) defines the minimum space between two nested parts