The components are easy compared to the concepts behind them, including data trees. I just noticed that your final output is a “Group with 9 objects” instead of the curves you really want?
There is a lot more that could be done to orient the surfaces, including OpenNest:
Yes, I could even label each piece with the names.
LATER: The only difficulty is making the labels readable. It doesn’t help that the original drawing is positioned over the OpenNest ‘Sheet’, but that can easily be fixed. The trouble was that there was no contrast between the color of the pieces and the color of the text tags. So I modified my ColorB cluster in two ways:
Added a ‘C’ (Color) output to use for the text tags.
Added an ‘A’ (Alpha) input to make the pieces partially transp…
I used @inno ’s Python script to greatly simplify my version ‘b’ code from yesterday. I deleted the code that isolates unique parts on the assumption that all surfaces in the “unique parts for nesting” will be unique. Surfaces may have holes. I deleted @Petras_Vestartas ’s SortGuids because using ‘Guids’ confused me and I couldn’t get it to work… I replaced it with the white group (“ignore holes”). I replaced the ‘Gene Pool’ set of sliders with quantities from @inno ’s Python script, which are …
With ‘Rotations’ = 90, ‘Iterations’ = 60 and the default ‘Seed’ = 1, I got this, which sure looks like it could easily be only four sheets instead of five.
[Nesting_issue_Petras_2022Sep30b4]
Increasing ‘Iterations’ to 90, decreasing ‘Spacing’ to 15 and changing ‘Seed’ = 1, there is no improvement, yet time goes up from 56 seconds to 1.7 minutes!
[Nesting_issue_Petras_2022Sep30b3]
It’s a little frustrating, the “nesting” could be better.
It’s been a long time since I used OpenNest but I don’t think that’s true. Converting to polygons may affect how they overlap but it works fine for me without doing that. Other settings like ‘Iterations’, ‘Rotations’ and ‘Seed’ seem to have more effect on the results, though they can increase run time.
Note that only one sheet is supplied, OpenNest makes as many copies (sheets) as necessary. Curves are internalized, no need for Rhino file.
[Nesting_2022Sep22a]
Nesting_2022Sep22aa.gh (20.…