MATLAB Answers


Graphical Shape Packing (2D)

Asked by ITgreybeard
on 19 Nov 2012

Are there libraries within MATLAB that would help me pack a variety of 2D shapes and sizes into a 2D field? Each instance has a value based on its size and shape, and mixes of these must fall within certain proportional ranges.

Additionally, each instance must be placed no closer than a given distance from another, nor must an instance be placed less than a given distance from the edge of the field.

Lastly(?), some shapes and sizes are small enough to fit inside 2D holes that exist within other shapes and sizes.

I would expect that simulation is part of the process to obtain what is a near-optimal solution.



No products are associated with this question.

0 Answers

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!