distribute shapes without overlap
in
Programming Questions
•
3 years ago
hi forum.
i am looking for a way to place x-amount of rectangles inside a polygon shape.
these rectangle need to be placed so they do not overlap with other rectangles or the boundaries of the polygon shape.
i used bos2d. there the shapes moved around until they find a stable position, but this position does not always mean they rectangles don't overlap.
does anybody have an idea how to solve this problem?
thanks,
stephan.
2