Kerfwise Sheet Nesting Optimizer
Nest rectangular parts on sheets with kerf, trim and grain: layouts, yield, offcuts, SVG + DXF.
Try an example: 16 panels 600 × 500 on 2800 × 2070 (exactly one sheet) · Base cabinet carcass parts, oak veneer with grain · Plywood 2440 × 1220, mixed parts, MaxRects
How it works
A cutting optimiser for panel saws and CNC routers: list rectangular parts with quantity and grain, choose the sheet size (e.g. 2800 × 2070), saw kerf and trim margin, and get guillotine-cuttable or MaxRects layouts, sheet count, yield per sheet, reusable offcuts, the guillotine cut sequence, SVG drawings and a DXF R12 file.
- Parts are inflated by one kerf and the usable sheet (sheet − 2 × trim) by one kerf, so neighbouring parts are exactly one kerf apart and the outer parts touch the trimmed edge.
- Guillotine: free-rectangle packing with best-area-fit / best-short-side-fit and split rules (shorter-leftover-axis, longer-leftover-axis, min-area); every placement records its edge-to-edge cuts, giving a panel-saw cut sequence. MaxRects: maximal free rectangles with best-short-side, best-area or bottom-left fit (tighter, for CNC).
- Each method runs a fixed set of strategies (4 sort orders × fit/split rules × rotation on/off) and keeps the best: fewest unplaced parts → fewest sheets → least sheet area → largest single offcut → guillotine preferred. Deterministic for identical input.
- Grain: on a grained material, parts marked grain keep their length along the sheet length; other parts may rotate 90°. Yield = part area / full sheet area. Offcuts = non-overlapping free rectangles ≥ the minimum offcut size.
Heuristic optimisation: good, fast layouts, not a proven optimum. Check that your saw can follow the cut sequence and measure your blade’s real kerf.
Sources
- A Thousand Ways to Pack the Bin – A Practical Approach to Two-Dimensional Rectangle Bin Packing (J. Jylänki) (GitHub juj/RectangleBinPack)
- AutoCAD Release 12 DXF Reference (Autodesk)
For scripts and AI agents
- JSON API:
POST https://kerfwisesheetnesting.usefulweb.site/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://kerfwisesheetnesting.usefulweb.site/mcp· tool namekerfwise_sheet_nesting
Example request
curl -s -X POST https://kerfwisesheetnesting.usefulweb.site/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"parts":[{"name":"Panel","length":600,"width":500,"qty":16}],"sheetLength":2800,"sheetWidth":2070,"kerf":4,"trim":10,"method":"guillotine","grainedMaterial":false}'Related tools
- Kerfwise Cut List & Cost – Cabinets or a Kerfwise project → cut list, edge banding, hardware, sheets and costs.
- Kerfwise Cabinet Builder – Parametric cabinet → every part with cut sizes, edge banding, drilling and hardware.