Have a need to nest groups of 2D curves to prep them for laser cutting.
I’ve tried the usual Generation Nesting tool but it cant deal with groups, don’t mind having a go at rolling something myself with GH or Python, just wanting to know if anyone has some code to get me started?
Example of the groups and the material limits attached.
Couple of notes - I only require the panels to be moved to the fabric - not rotated. It is important that the thread line directions are known/controlled in the process. This allowed me to cut the nesting code down to just a single jitter.
The nesting is done with just the outside curve (seam allowance) and then a separate piece of code works out what was moved where and does the same to the groups.
Actually easier than I expected and this will be a great feature for my tool.
Downside is the run time, about 40 secs for just these parts, and the complete program has a lot more - might not include it as a live feature in the main code base but use the data dam and a button to run as needed.
As an update on the whole thread in my own script I’ve replaced the Generation components with Openest and the have seen an improvement in both function and performance.