Sheet Nesting Optimizer for Laser / CNC Cutting (Python)
A Python tool that takes a parts list (CSV: name, width, height, quantity) and nests the parts onto standard sheets to cut material waste, then writes a layered DXF of every sheet layout ready for the cutting software.
The image is real output: 34 kitchen-cabinet panels (sides, tops, bases, shelves, backs, doors, drawer parts) nested on 2440 x 1220 mm boards with a 6 mm kerf gap and 10 mm edge margin. Three full sheets reach 86-90% material use.
Features:
MaxRects best-short-side-fit packing with automatic 90-degree rotation
Largest parts placed first for better packing
Adjustable sheet size, kerf/spacing gap and edge margin
Automatic overlap and sheet-boundary checks
Utilisation % per sheet and a list of any parts too large for the sheet
DXF layers for sheet outline, part outlines and labels (labels rotate on tall parts)
Works for wood panels, sheet metal, acrylic and any rectangular blanks
Tools: Python 3, ezdxf, csv, matplotlib (preview rendering).
Published