Skip to content

Oversized part

Call

curl --fail-with-body --silent --show-error --request POST --header 'Content-Type: application/json' --header 'Accept: application/json' --data-raw '{"sheet_mm":[300,200],"kerf_mm":0.2,"margin_mm":2,"parts":[{"id":"beam","polygon":[[0,0],[400,0],[400,50],[0,50]],"quantity":1},{"id":"plate","polygon":[[0,0],[50,0],[50,30],[0,30]],"quantity":2}]}' https://cad.burgeonads.com/v1/optimize/sheet-layout

Input

{
  "kerf_mm": 0.2,
  "margin_mm": 2,
  "parts": [
    {
      "id": "beam",
      "polygon": [
        [
          0,
          0
        ],
        [
          400,
          0
        ],
        [
          400,
          50
        ],
        [
          0,
          50
        ]
      ],
      "quantity": 1
    },
    {
      "id": "plate",
      "polygon": [
        [
          0,
          0
        ],
        [
          50,
          0
        ],
        [
          50,
          30
        ],
        [
          0,
          30
        ]
      ],
      "quantity": 2
    }
  ],
  "sheet_mm": [
    300,
    200
  ]
}

Output

{
  "layout_svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"300mm\" height=\"208mm\" viewBox=\"0 0 300 208\"><text font-family=\"sans-serif\" font-size=\"4.8\" fill=\"#000\" x=\"0\" y=\"6\">Sheet 1</text><rect fill=\"none\" stroke=\"#000\" stroke-width=\"0.3\" x=\"0\" y=\"8\" width=\"300\" height=\"200\"/><rect fill=\"none\" stroke=\"#888\" stroke-width=\"0.15\" stroke-dasharray=\"2 1\" x=\"2\" y=\"10\" width=\"296\" height=\"196\"/><path fill=\"none\" stroke=\"#d00\" stroke-width=\"0.1\" fill-rule=\"evenodd\" d=\"M2 206 L52 206 L52 176 L2 176Z\"/><text font-family=\"sans-serif\" fill=\"#036\" text-anchor=\"middle\" dominant-baseline=\"middle\" x=\"17\" y=\"191\" font-size=\"3.333\">plate:0</text><path fill=\"none\" stroke=\"#d00\" stroke-width=\"0.1\" fill-rule=\"evenodd\" d=\"M52.2 206 L102.2 206 L102.2 176 L52.2 176Z\"/><text font-family=\"sans-serif\" fill=\"#036\" text-anchor=\"middle\" dominant-baseline=\"middle\" x=\"67.2\" y=\"191\" font-size=\"3.333\">plate:1</text></svg>",
  "min_spacing_mm": 0.20000000000000284,
  "oversized_part_ids": [
    "beam"
  ],
  "placements": [
    {
      "bbox_mm": [
        2.0,
        2.0,
        52.0,
        32.0
      ],
      "instance_index": 0,
      "part_id": "plate",
      "rotate_deg": 0.0,
      "sheet_index": 0,
      "translate_mm": [
        2.0,
        2.0
      ]
    },
    {
      "bbox_mm": [
        52.2,
        2.0,
        102.2,
        32.0
      ],
      "instance_index": 1,
      "part_id": "plate",
      "rotate_deg": 0.0,
      "sheet_index": 0,
      "translate_mm": [
        52.2,
        2.0
      ]
    }
  ],
  "sheet_area_mm2": 60000.0,
  "sheets_used": 1,
  "status": "infeasible",
  "total_part_area_mm2": 3000.0,
  "unplaced": [
    {
      "instance_index": 0,
      "part_id": "beam"
    }
  ],
  "unplaced_count": 1,
  "utilization_ratio": 0.05,
  "verified": true
}
Cut sheet

Geometric verification only. Not structural or safety certification. Provided as-is without warranty.