I have SVG contours that I need to pack into a given rectangle as efficiently as possible (as little as a waste of space). After some research, I discovered bin packing algorithms that seem to deal with boxes, rather than curved random shapes (my SVG forms are quite complex and include Beziers, etc.).
AFAIK, there is no deterministic algorithm for actually wrapping abstract forms.
I would like to be wrong here, which would be ideal (to have a mathematical deterministic method for packing them). If I am right, but no, then what is the best way to approach this problem?
Subject Name - Form Attachment, Attachment Problem, or Attachment Process .
In Shape Nesting, there is no single / unified algorithm or mathematical method for nesting shapes and getting as little space as possible.
The first method is a packing algorithm (creates an imaginary bounding box for each shape and uses a rectangular 2D algorithm to pack bounding frames). This method is fast but least effective against space waste.
The 2nd method is a kind of stepwise rotation. The algorithm rotates the figure in steps and checks to see if it fits in space. This is better than the packaging method for space waste, but it is painstakingly slow,
What are some other examples in the class to achieve a solution to this problem?
source share