Hey, I´m trying to pack/nest two rectangles in a polygon:
Expected result:
Actual result with Open Nest:
How can I adjust the parameters to fit BOTH rectangles in the container??
frage236.gh (12.7 KB)
Hey, I´m trying to pack/nest two rectangles in a polygon:
Expected result:
Actual result with Open Nest:
How can I adjust the parameters to fit BOTH rectangles in the container??
frage236.gh (12.7 KB)
I would try giving OpenNest some help by doing the rotation thing ahead, and let it just calculate the translation
The Rotations input of OpenNest asks you an integer that means how many divisions of 360 degrees you want the shapes to be subject to while being nested
and in this example looks like shape rotation plays the biggest role
this means that even if you tell OpenNest to try 360 rotations (which means steps of 1 degree) you are basically discarding all the seeds that don’t use the very narrow range of rotations that would allow the very first shape to be even contained on top of your sheet… and ONLY THEN (!!!) you have to deal with X/Y placement looks like a bit of a nightmare
so I would rotate either the sheet or the shape, and I would chose that based on -for instance- smallest bounding box, then nest with Rotation = 4 (steps of 90 degrees)
I have 10 minutes so I’m trying to put down in components my previous thought
the part that rotates the sheet based on bounding box might look like this:
and seed 0 is already giving some results (which I ABSOLUTELY DID NOT EXPECT… that’s why there’s a Serie component plugged to Seed, because I expected to generate like 100 different solutions, and then cull all the ones that were using more than 1 single sheet which is the part after the OpenNest component-)
if you want to re-orient the whole thing in the original state, you can invert the (rotation) transformation like this:
one note, you had like 20 curves to be nested, I just took the first two:
frage236_inno.gh (20.9 KB)