Smart placement

Nesting Studio

Smart Placement — Rotate Parts for Tighter DXF Nests

True-shape placement with bottom-left packing and shape-aware rotations so DXF parts pack tighter on each sheet.

Sheet2Nest combines bottom-left placement with geometry-aware fitting so rotated profiles tuck closer together. Ideal when parts are irregular or mix sizes—fewer gaps than naive strip layouts on comparable DXF inputs.

Smart placement process

How smart placement finds optimal positions for each part.

  1. 1

    Rotation Testing

    Try multiple rotation angles

    Tests allowed rotation angles (0°, 90°, 180°, 270°) for each part to find the best fit. Rotation is determined by part classification and user preferences, maximizing space efficiency.

  2. 2

    Bottom-Left Strategy

    Start from bottom-left corner

    Places parts starting from the bottom-left corner, moving right and up. This greedy approach creates compact layouts by filling space systematically from the lowest available position.

  3. 3

    Candidate Search

    Evaluate edge anchors and grid positions

    Searches neighbor edges of placed parts and a utilization-aware grid to find legal positions quickly, then tightens placement with a slide-toward-origin pass when space allows.

  4. 4

    Collision Detection

    AABB pre-check and precise validation

    Performs fast axis-aligned bounding box (AABB) intersection tests first, then precise polygon-polygon collision detection. Handles complex shapes with holes accurately.

  5. 5

    Position Optimization

    Find optimal placement location

    Evaluates multiple candidate positions to find the best fit. Considers proximity to existing parts, sheet boundaries, and material utilization to maximize efficiency.

  6. 6

    Validation & Placement

    Final validation and part placement

    Validates that the placement is collision-free, within sheet boundaries (with margin), and holes are properly contained. Once validated, the part is placed and the process continues.

Placement strategies

Proven strategies for dense, collision-free part positioning.

O(n²)Fast

Bottom-Left Fill

Greedy placement strategy

Places parts starting from bottom-left corner, moving right and up. Fast and efficient for most nesting scenarios. Grid-based search with configurable step size (default 2mm).

O(n²)Fast

Edge-Anchor Search

Neighbor-first candidates

Prefers positions along edges and corners of already-placed parts before falling back to a finer grid. Finds tight arrangements faster than naive full-sheet scanning alone.

O(k)Fast

Rotation Support

Multi-angle optimization

Tests 0°, 90°, 180°, and 270° rotations for each part. Rotation angles are determined by part classification (circles: 0°, rectangles: 0° and 90°, irregular: 0°, 90°, 180°, 270°).

O(n)Fast

Collision Detection

Two-stage validation

Fast AABB pre-check followed by precise polygon intersection testing. Handles complex shapes with holes by subtracting hole areas from outer polygons during collision checks.

True-shape collision

Sheet2Nest places parts with polygon-accurate overlap checks—not bounding boxes alone—so irregular outlines nest tighter while staying collision-free.

  • Polygon precision

    Fast AABB rejection, then precise polygon intersection for acceptance.

  • Shape-aware rotations

    Circles, rectangles, and irregular parts only try the rotations that actually help packing.

  • Efficient search

    Edge anchors and adaptive grids focus effort where free space is most likely.

How placement works

Candidates come from sheet corners, neighbors of placed parts, and an adaptive grid

Each candidate is checked with AABB then polygon intersection so irregular profiles stay collision-free

Accepted positions can slide toward the origin to close leftover gaps without overlapping neighbors.

Rotation support

Intelligent rotation based on part classification.

Part typeRotations triedWhy
Circles0°No rotation needed for circular parts
Rectangles0°, 90°Two orientations for rectangular parts
Squares0°Single orientation for square parts
Irregular0°, 90°, 180°, 270°Full rotation support for complex shapes

More Nesting Studio features

Try it in the Nesting Studio

Upload your DXF, review parts, set quantities, and export optimized layouts with utilization reports.