AnimGraphLab Alpha
Nodes Pack shapes

Parameters

Select a node to edit its parameters.

Pack shapes node takes a group of input shapes and arranges them as tightly as possible without overlapping. It can pack them freely into an open space, or confine them strictly within the boundaries of a Target shape input.

Tip: Grid resolution parameter defines the accuracy of the collision testing. A higher grid resolution (e.g., 500) results in fewer empty gaps and higher precision, but takes longer to compute.

Warning: Parameter are highly senstive. Small slider change can change the visual look a lot and may increase compute time by a lot.

Tip: Instead of sliding parameter, double-click and type values manually to prevent a lot of computations.

Warning: Pack shapes node requries heavy computation in some cases.

Inputs

Shapes to pack
Target shape
Mask
Pack shapes

Shapes to pack

Shapes to pack tightly together.

Target shape

Optional target bounding container.

Mask

Optional mask. Packed shapes will avoid such areas.

Parameters

ParameterDescription
LabelThe display name for the node.
Grid resolutionThe internal grid resolution used for packing calculations. Higher values (e.g. 500) provide much tighter and more accurate packing for complex shapes, but increase calculation time. Lower values (e.g. 50) are fast but leave larger gaps.
Rotation stepTries rotating the shape by this number of degrees to get better packing. 360 = No rotation. 180 = 2 ways (up/down). 90 = 4 ways. Smaller steps yield tighter packing but take longer.
SpacingMargin distance between packed shapes.
Invert maskIf true, shapes will only be packed inside the mask area.

See also