Przejdź do głównej treści
← CutOptim Engine APIEngine API · nesting · live today

Sheet Metal Nesting API

Yes — there is an API for sheet-metal nesting. Nesting irregular sheet-metal parts — brackets, gussets, flanges, gaskets — onto plate stock is a true-shape nesting problem, and the CutOptim Engine API solves it over HTTP at POST /v1/optimize/nest. Your ERP, MES or quoting software sends the part outlines and the plate sizes as JSON and gets back the nested layout, the placement of every part and the plate count — for laser, plasma or waterjet.

This is live today. The nesting engine (jagua-rs, a geometric collision engine) runs in production behind POST /v1/optimize/nest — a different class of algorithm from the rectangular guillotine packer, returning a true-shape nest rather than a rectangular cut plan.

POST /v1/optimize/nest
POST /v1/optimize/nest
{
  "parts": [
    { "name": "gusset",
      "polygon": [[0,0],[400,0],[0,400]],
      "qty": 16, "allowedRotations": [0,90,180,270] },
    { "name": "bracket",
      "polygon": [[0,0],[350,0],[350,120],[120,120],[120,350],[0,350]],
      "qty": 10, "allowedRotations": "continuous",
      "meta": { "part": "BRK-350" } }
  ],
  "stock": [
    { "w": 3000, "h": 1500, "qty": 12,
      "exclusions": [{ "polygon": [[0,0],[250,0],[0,250]], "quality": 0 }] }
  ],
  "options": { "minSeparation": 2 }
}
  • — Live today on POST /v1/optimize/nest — arbitrary polygon parts (with holes), not just rectangles.
  • — Per-sheet exclusion zones nest around a plate defect, a clamp footprint or a pre-printed area (stock[].exclusions).
  • — Material partition: tag parts and plates and each part nests only on plate of its own material.
  • — Attach a meta object (part number, order line) and it comes back on every placed copy, so the nest reconciles with your ERP.
  • — On a representative 272-part job the nest used 6 sheets where the same parts by bounding box need 9 — the honest metric is plate count, not a density percentage.
  • — Free validation: POST /v1/validate/nest checks a job with no key and no quota.

Why sheet-metal fabricators need it

Plate is expensive, and irregular parts waste it: a rectangular packer treats each part’s bounding box as solid, so the air inside a gusset or an L-bracket is thrown away. True-shape nesting interlocks the real outlines, reclaiming that air. On a representative 272-part job the nest used 6 sheets where the same parts by bounding box need 9 — the honest metric is plate count on the same parts, not a density percentage.

What you send and what comes back

Send each part as a polygon (with optional holes) and a quantity, plus the plate sizes. The response gives every placement as a rigid transform (a rotation in degrees, then an x/y translation), the plate count, the density and any parts that did not fit. Tag parts and plates with a material and the job is partitioned by material — a part is nested only on plate of its own material — and any meta object (your ERP part number, order line) comes back verbatim on every placed copy, so the nest reconciles with your system.

Exclusion zones — nest around a defect

Per-sheet exclusion zones (stock[].exclusions) let the engine nest around a plate defect, a clamp footprint or a pre-printed area — a quality-0 zone is a hard no-go region for every part. Rotation can be continuous or a discrete list, and options.minSeparation sets the clearance for the torch or beam width. The layout is deterministic: a pinned seed reproduces the same nest for a quote or an audit.

Materiał do pobrania
Sheet Metal Nesting API one-pager

A two-page summary — the problem, what you send and get back, a request and response, and how to build on the engine. Print-ready, with a QR back to this page.

PDF2 pagesFree
Pobierz PDF

FAQ

Często zadawane pytania

Is there an API for sheet-metal nesting?
Yes. True-shape nesting of irregular parts onto plate is the CutOptim Engine API’s fourth mode, POST /v1/optimize/nest. You send each part as a polygon (with optional holes) plus the plate sizes and get back the nested layout, the placement of every copy and the plate count — for laser, plasma or waterjet. It is a geometric collision engine that runs in production today.
Does it handle plate defects or clamp areas?
Yes. Each plate can carry exclusion zones (stock[].exclusions) — polygons the engine keeps every part off. A quality-0 zone is a hard no-go region, so you can nest around a defect, a clamp footprint or a pre-printed area. This is a capability the rectangular API cannot express.
Can I tag parts with my ERP part numbers?
Yes. Any part or plate row may carry a meta object — your part number, order line or customer ref — and it comes back verbatim on every placed copy and every plate, so the nest reconciles with your own system. It never affects the layout. Tag a material too and the job is partitioned so a part nests only on plate of its own material.
How many plates will it save?
It depends on the part mix, so we do not quote a blanket percentage. The honest, cross-comparable metric is plate count on the same parts: on a representative 272-part job the true-shape nest used 6 plates where the same parts placed by bounding box need 9. A density percentage is not comparable to a rectangular packer’s yield, because a bounding box counts notch-air as solid.

Sheet-metal fabrication use case (app) · Benchmarks