@bitbybit-dev/cad-cloud-sdk 1.6.1 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1144,7 +1144,7 @@ export interface paths {
1144
1144
  put?: never;
1145
1145
  /**
1146
1146
  * Sheet metal - unfold all solids to flat geometry
1147
- * @description Proprietary sheet-metal unfold: loads every solid in an uploaded STEP file and flattens each to a flat pattern. Requires the 'cad' API key scope. Returns 202 with a task ID; all flats are combined into one compound output per format.
1147
+ * @description Proprietary sheet-metal unfold: loads every solid in an uploaded STEP file and flattens each to a flat pattern. Requires the 'cad' API key scope. Returns 202 with a task ID; every flat is one part of a single output per format, named after its solid, so a nesting call reads one part per flat.
1148
1148
  */
1149
1149
  post: {
1150
1150
  parameters: {
@@ -1284,7 +1284,7 @@ export interface paths {
1284
1284
  put?: never;
1285
1285
  /**
1286
1286
  * Sheet metal - unfold all solids, geometry + report
1287
- * @description Proprietary sheet-metal unfold, full workflow: flattens every solid in an uploaded STEP file AND returns per-solid metrics in one call. Requires the 'cad' API key scope. Returns 202 with a task ID; flats are combined into one compound output per format and the per-solid report array is delivered in the task metadata.
1287
+ * @description Proprietary sheet-metal unfold, full workflow: flattens every solid in an uploaded STEP file AND returns per-solid metrics in one call. Requires the 'cad' API key scope. Returns 202 with a task ID; every flat is one part of a single output per format, named after its solid, and the per-solid report array is delivered in the task metadata.
1288
1288
  */
1289
1289
  post: {
1290
1290
  parameters: {
@@ -1343,6 +1343,216 @@ export interface paths {
1343
1343
  patch?: never;
1344
1344
  trace?: never;
1345
1345
  };
1346
+ "/api/v1/cad/pro/unfold/solid-and-nest": {
1347
+ parameters: {
1348
+ query?: never;
1349
+ header?: never;
1350
+ path?: never;
1351
+ cookie?: never;
1352
+ };
1353
+ get?: never;
1354
+ put?: never;
1355
+ /**
1356
+ * Sheet metal - unfold all solids and nest the flats on sheets
1357
+ * @description Proprietary sheet-metal unfold and true-shape nesting in one call: flattens every solid in an uploaded STEP file and nests the flat patterns on sheets straight away, without writing them to a file and reading them back. Left out, the sheets are sized for the flats and the spacing and margin are scaled to them; 'fileUnit' reads a file whose header names the wrong unit. Every length is in millimetres. Requires the 'cad' API key scope. Returns 202 with a task ID; the nested sheets come in the requested formats as on POST /api/v1/cad/pro/nesting/nest, 'flat-meshes' gives each solid's flat triangulated where it was unfolded, the NestingReport (each part naming its solid) is the metadata result, and the per-solid unfold report array is delivered in the task metadata.
1358
+ */
1359
+ post: {
1360
+ parameters: {
1361
+ query?: never;
1362
+ header?: never;
1363
+ path?: never;
1364
+ cookie?: never;
1365
+ };
1366
+ requestBody: {
1367
+ content: {
1368
+ "application/json": components["schemas"]["UnfoldAndNestBody"];
1369
+ };
1370
+ };
1371
+ responses: {
1372
+ /** @description Task accepted */
1373
+ 202: {
1374
+ headers: {
1375
+ [name: string]: unknown;
1376
+ };
1377
+ content: {
1378
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1379
+ };
1380
+ };
1381
+ /** @description Validation error */
1382
+ 400: {
1383
+ headers: {
1384
+ [name: string]: unknown;
1385
+ };
1386
+ content: {
1387
+ "application/json": components["schemas"]["ErrorResponse"];
1388
+ };
1389
+ };
1390
+ /** @description Insufficient scope */
1391
+ 403: {
1392
+ headers: {
1393
+ [name: string]: unknown;
1394
+ };
1395
+ content: {
1396
+ "application/json": components["schemas"]["ErrorResponse"];
1397
+ };
1398
+ };
1399
+ /** @description Server error */
1400
+ 500: {
1401
+ headers: {
1402
+ [name: string]: unknown;
1403
+ };
1404
+ content: {
1405
+ "application/json": components["schemas"]["ErrorResponse"];
1406
+ };
1407
+ };
1408
+ };
1409
+ };
1410
+ delete?: never;
1411
+ options?: never;
1412
+ head?: never;
1413
+ patch?: never;
1414
+ trace?: never;
1415
+ };
1416
+ "/api/v1/cad/pro/nesting/nest": {
1417
+ parameters: {
1418
+ query?: never;
1419
+ header?: never;
1420
+ path?: never;
1421
+ cookie?: never;
1422
+ };
1423
+ get?: never;
1424
+ put?: never;
1425
+ /**
1426
+ * Nesting - place flat parts on sheets or a strip
1427
+ * @description Proprietary true-shape 2D nesting: places the flat parts of uploaded STEP files onto rectangular sheets or one strip, turning and flipping them as each part's options allow, with a spacing that holds on the true curved edges and parts placed inside other parts' holes. Every part a file places is a part, with each of its solids on its own, so an unfold's output gives one part per flat pattern; 'stepFileIds' gives the full rule. Requires the 'cad' API key scope. Returns 202 with a task ID; every used sheet is one compound of its placed parts, laid in a row on the XZ plane, combined into one output per format, and the NestingReport (placements with their transforms, each part as read, what was left and why, totals) is delivered as the metadata result.
1428
+ */
1429
+ post: {
1430
+ parameters: {
1431
+ query?: never;
1432
+ header?: never;
1433
+ path?: never;
1434
+ cookie?: never;
1435
+ };
1436
+ requestBody: {
1437
+ content: {
1438
+ "application/json": components["schemas"]["NestingNestBody"];
1439
+ };
1440
+ };
1441
+ responses: {
1442
+ /** @description Task accepted */
1443
+ 202: {
1444
+ headers: {
1445
+ [name: string]: unknown;
1446
+ };
1447
+ content: {
1448
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1449
+ };
1450
+ };
1451
+ /** @description Validation error */
1452
+ 400: {
1453
+ headers: {
1454
+ [name: string]: unknown;
1455
+ };
1456
+ content: {
1457
+ "application/json": components["schemas"]["ErrorResponse"];
1458
+ };
1459
+ };
1460
+ /** @description Insufficient scope */
1461
+ 403: {
1462
+ headers: {
1463
+ [name: string]: unknown;
1464
+ };
1465
+ content: {
1466
+ "application/json": components["schemas"]["ErrorResponse"];
1467
+ };
1468
+ };
1469
+ /** @description Server error */
1470
+ 500: {
1471
+ headers: {
1472
+ [name: string]: unknown;
1473
+ };
1474
+ content: {
1475
+ "application/json": components["schemas"]["ErrorResponse"];
1476
+ };
1477
+ };
1478
+ };
1479
+ };
1480
+ delete?: never;
1481
+ options?: never;
1482
+ head?: never;
1483
+ patch?: never;
1484
+ trace?: never;
1485
+ };
1486
+ "/api/v1/cad/pro/nesting/inspect": {
1487
+ parameters: {
1488
+ query?: never;
1489
+ header?: never;
1490
+ path?: never;
1491
+ cookie?: never;
1492
+ };
1493
+ get?: never;
1494
+ put?: never;
1495
+ /**
1496
+ * Nesting - read parts without nesting them
1497
+ * @description Reads the parts of uploaded STEP files as nesting would and reports each one's file, kind, outline size, area and cut length, or why it cannot be nested. Requires the 'cad' API key scope. Returns 202 with a task ID; the NestingInspection is delivered as the metadata result.
1498
+ */
1499
+ post: {
1500
+ parameters: {
1501
+ query?: never;
1502
+ header?: never;
1503
+ path?: never;
1504
+ cookie?: never;
1505
+ };
1506
+ requestBody: {
1507
+ content: {
1508
+ "application/json": components["schemas"]["NestingInspectBody"];
1509
+ };
1510
+ };
1511
+ responses: {
1512
+ /** @description Task accepted */
1513
+ 202: {
1514
+ headers: {
1515
+ [name: string]: unknown;
1516
+ };
1517
+ content: {
1518
+ "application/json": components["schemas"]["TaskAcceptedResponse"];
1519
+ };
1520
+ };
1521
+ /** @description Validation error */
1522
+ 400: {
1523
+ headers: {
1524
+ [name: string]: unknown;
1525
+ };
1526
+ content: {
1527
+ "application/json": components["schemas"]["ErrorResponse"];
1528
+ };
1529
+ };
1530
+ /** @description Insufficient scope */
1531
+ 403: {
1532
+ headers: {
1533
+ [name: string]: unknown;
1534
+ };
1535
+ content: {
1536
+ "application/json": components["schemas"]["ErrorResponse"];
1537
+ };
1538
+ };
1539
+ /** @description Server error */
1540
+ 500: {
1541
+ headers: {
1542
+ [name: string]: unknown;
1543
+ };
1544
+ content: {
1545
+ "application/json": components["schemas"]["ErrorResponse"];
1546
+ };
1547
+ };
1548
+ };
1549
+ };
1550
+ delete?: never;
1551
+ options?: never;
1552
+ head?: never;
1553
+ patch?: never;
1554
+ trace?: never;
1555
+ };
1346
1556
  "/api/v1/files/upload": {
1347
1557
  parameters: {
1348
1558
  query?: never;
@@ -2055,7 +2265,7 @@ export interface components {
2055
2265
  meshPrecision?: components["schemas"]["MeshPrecision"];
2056
2266
  /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2057
2267
  gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2058
- /** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
2268
+ /** @description Turns a decomposed-mesh output from Y-up, as the server models, to Z-up. It applies to decomposed-mesh only: a STEP output is always written Z-up, so a STEP sent in comes back as it went in, a glTF output is always Y-up, as glTF asks, and a BREP output keeps the frame the shapes were modelled in, as occt.io.loadBrep reads it back. */
2059
2269
  adjustYtoZ?: boolean;
2060
2270
  /** @description Include the full pipeline definition in metadata.json. Defaults to true. Set to false to exclude it for smaller metadata. */
2061
2271
  includePipelineInMetadata?: boolean;
@@ -2063,7 +2273,7 @@ export interface components {
2063
2273
  unit?: components["schemas"]["LengthUnit"];
2064
2274
  };
2065
2275
  /**
2066
- * @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh - Manifold/JSCAD only), '3mf' (3MF mesh package - Manifold/JSCAD only), 'brep' (OpenCascade BREP as text, which OCCT-based tools such as FreeCAD read) and 'brep-binary' (OpenCascade binary BREP, the smallest and fastest exact form, which keeps the numbering of faces and edges; read back with occt.io.loadBrepBinary) - both OCCT only, without triangulation.
2276
+ * @description Pipeline output file format. Includes all standard formats plus: 'json' (JSON data), 'csv' (CSV text), 'stl' (binary STL mesh - Manifold/JSCAD only), '3mf' (3MF mesh package - Manifold/JSCAD only), 'brep' (OpenCascade BREP as text) and 'brep-binary' (OpenCascade binary BREP, the smallest and fastest exact form, which keeps the numbering of faces and edges) - both OCCT only, without triangulation, and both in the frame the pipeline modelled the shape in (Y up), so occt.io.loadBrep and occt.io.loadBrepBinary read them back exactly as they were; a Z-up tool such as FreeCAD shows them lying on their backs, where a 'step' output stands upright.
2067
2277
  * @enum {string}
2068
2278
  */
2069
2279
  PipelineOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf" | "brep" | "brep-binary";
@@ -2119,7 +2329,7 @@ export interface components {
2119
2329
  meshPrecision?: components["schemas"]["MeshPrecision"];
2120
2330
  /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2121
2331
  gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2122
- /** @description Convert from Y-up to Z-up coordinate system in the output. Useful for software that expects Z-up. */
2332
+ /** @description Turns a decomposed-mesh output from Y-up, as the server models, to Z-up. It applies to decomposed-mesh only: a STEP output is always written Z-up, so a STEP sent in comes back as it went in, and a glTF output is always Y-up, as glTF asks. */
2123
2333
  adjustYtoZ?: boolean;
2124
2334
  };
2125
2335
  /**
@@ -2368,6 +2578,8 @@ export interface components {
2368
2578
  UnfoldFaceToFlatBody: {
2369
2579
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2370
2580
  stepFileId: string;
2581
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2582
+ fileUnit?: components["schemas"]["LengthUnit"];
2371
2583
  /**
2372
2584
  * @description 0-based index of the developable face (in the shape's BRepGraph face array) to unfold.
2373
2585
  * @default 0
@@ -2380,6 +2592,8 @@ export interface components {
2380
2592
  UnfoldFaceReportBody: {
2381
2593
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2382
2594
  stepFileId: string;
2595
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2596
+ fileUnit?: components["schemas"]["LengthUnit"];
2383
2597
  /**
2384
2598
  * @description 0-based index of the face to analyze.
2385
2599
  * @default 0
@@ -2390,30 +2604,34 @@ export interface components {
2390
2604
  UnfoldSolidToFlatBody: {
2391
2605
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2392
2606
  stepFileId: string;
2607
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2608
+ fileUnit?: components["schemas"]["LengthUnit"];
2393
2609
  /**
2394
2610
  * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2395
2611
  * @default 0.5
2396
2612
  */
2397
2613
  kFactor: number;
2398
2614
  /**
2399
- * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2615
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2400
2616
  * @default 0
2401
2617
  */
2402
2618
  thicknessOverride: number;
2403
- /** @description Output formats for the flattened patterns. Every solid's flat is combined into one compound output per format. Defaults to glTF. */
2619
+ /** @description Output formats for the flattened patterns. Every solid's flat is one part, named flat-1, flat-2 and so on after the solid it came from, and all of them make one output per format. Defaults to glTF. */
2404
2620
  outputs?: components["schemas"]["OutputOptions"];
2405
2621
  };
2406
2622
  /** @description Compute per-solid sheet-metal unfold metrics for every solid in an uploaded STEP file. */
2407
2623
  UnfoldSolidReportBody: {
2408
2624
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2409
2625
  stepFileId: string;
2626
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2627
+ fileUnit?: components["schemas"]["LengthUnit"];
2410
2628
  /**
2411
2629
  * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2412
2630
  * @default 0.5
2413
2631
  */
2414
2632
  kFactor: number;
2415
2633
  /**
2416
- * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2634
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2417
2635
  * @default 0
2418
2636
  */
2419
2637
  thicknessOverride: number;
@@ -2422,19 +2640,205 @@ export interface components {
2422
2640
  UnfoldSolidBody: {
2423
2641
  /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2424
2642
  stepFileId: string;
2643
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2644
+ fileUnit?: components["schemas"]["LengthUnit"];
2425
2645
  /**
2426
2646
  * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2427
2647
  * @default 0.5
2428
2648
  */
2429
2649
  kFactor: number;
2430
2650
  /**
2431
- * @description Sheet thickness override in model units; 0 auto-detects thickness from face pairs.
2651
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2432
2652
  * @default 0
2433
2653
  */
2434
2654
  thicknessOverride: number;
2435
- /** @description Output formats for the flattened patterns. For 'gltf'/'step'/'stpz', every solid's flat is combined into one compound output. The 'decomposed-mesh' format instead returns one mesh per solid (each tagged with its 'solidIndex'). Defaults to glTF. */
2655
+ /** @description Output formats for the flattened patterns. For 'gltf'/'step'/'stpz', every solid's flat is one part, named flat-1, flat-2 and so on after the solid it came from, and all of them make one output per format. The 'decomposed-mesh' format instead returns one mesh per solid whose flat meshed (each tagged with its 'solidIndex'), an empty list when none did; a flat that could not be meshed is still in the other formats, and its report entry says why in 'meshError'. Defaults to glTF. */
2436
2656
  outputs?: components["schemas"]["OutputOptions"];
2437
2657
  };
2658
+ /** @description Flatten every constant-thickness sheet-metal solid in an uploaded STEP file and nest the flat patterns on sheets in the same call: the per-solid unfold report, the nesting report and the nested sheets, without writing the flats to a file and reading them back. */
2659
+ UnfoldAndNestBody: {
2660
+ /** @description ID of the previously uploaded STEP file (returned by the file upload endpoint). Both plain STEP (.step/.stp) and gzip-compressed STEP (.stpz) uploads are accepted - compression is detected automatically. */
2661
+ stepFileId: string;
2662
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2663
+ fileUnit?: components["schemas"]["LengthUnit"];
2664
+ /**
2665
+ * @description Sheet-metal K-factor (neutral-axis position), typically ~0.5.
2666
+ * @default 0.5
2667
+ */
2668
+ kFactor: number;
2669
+ /**
2670
+ * @description Sheet thickness override in millimetres; 0 auto-detects thickness from face pairs.
2671
+ * @default 0
2672
+ */
2673
+ thicknessOverride: number;
2674
+ /** @description How the flat patterns are nested. Left out, every flat is placed once on sheets sized for them, turning in quarter turns. */
2675
+ nesting?: components["schemas"]["UnfoldNestingOptions"];
2676
+ /** @description Output formats for the nested sheets and the flat patterns. Defaults to glTF of the nested sheets. */
2677
+ outputs?: components["schemas"]["UnfoldAndNestOutputOptions"];
2678
+ };
2679
+ /** @description How the flat patterns of an unfold are nested: the stock, the copies, how each flat may turn, and the search settings. Every length is in millimetres. */
2680
+ UnfoldNestingOptions: {
2681
+ /** @description The stock to nest onto: kinds of rectangular sheets, or one strip. Left out, one kind of sheet is sized for the flat patterns: at least twice as long as it is wide, holding the largest flat with its margins, large enough that all the flats fill about half of it, its sides rounded up. When every flat fits on standard 3000 x 1500 stock and that sheet would be larger, the standard stock is used instead. */
2682
+ sheets?: (components["schemas"]["NestingStrip"] | components["schemas"]["NestingSheet"])[];
2683
+ /** @description How many copies of every flat pattern to place: the number of models to make. Defaults to 1. All copies together, this number times the number of flat patterns, stay within 100000. */
2684
+ quantity?: number;
2685
+ rotations?: components["schemas"]["NestingRotations"];
2686
+ /** @description Whether every flat pattern may be turned over (a half turn about an axis in its plane, never a mirror). Defaults to false. */
2687
+ allowFlip?: boolean;
2688
+ /** @description The least distance kept between any two flat patterns, in millimetres, measured on their true shapes. Defaults to a gap sized to the flats: a fiftieth of the square root of their area, rounded to 1, 2 or 5 of its decade. */
2689
+ spacing?: number;
2690
+ /** @description The band along each sheet's edges that no flat pattern enters, in millimetres. Defaults to the gap sized to the flats, the same one the spacing takes when it is left out; a spacing that is given does not change it. */
2691
+ margin?: number;
2692
+ /** @description How long the nesting may search; the best layout found by then is returned. Defaults to 5 seconds, at most 120. */
2693
+ timeBudgetSeconds?: number;
2694
+ /** @description How far the straight chords that stand in for curved edges may stray from them, in the parts' units (millimetres for parts read from STEP files); the spacing still holds on the true curves. Defaults to 0.1. */
2695
+ tolerance?: number;
2696
+ /** @description Stop after this many placements are tried, which makes a run repeatable for one seed; the time budget still applies. 0 means no limit. */
2697
+ evaluationBudget?: number;
2698
+ /** @description The seed of the search's random choices. Defaults to 1. */
2699
+ seed?: number;
2700
+ /** @description The gap between sheets as they are laid out in a row in the output, in the parts' units (millimetres for parts read from STEP files). Defaults to a tenth of the widest sheet. */
2701
+ sheetGap?: number;
2702
+ };
2703
+ /** @description One strip of open length; it stands alone, never beside other stock. */
2704
+ NestingStrip: {
2705
+ /** @constant */
2706
+ strip: true;
2707
+ /** @description The strip's width across, along y, in the parts' units (millimetres for parts read from STEP files). Its length along x is open and is what the nesting makes as short as it can. */
2708
+ height: number;
2709
+ /** @description What the strip costs: one amount, added to the totals' cost whatever length the nesting uses. Defaults to 1. */
2710
+ cost?: number;
2711
+ };
2712
+ /** @description One kind of rectangular stock. */
2713
+ NestingSheet: {
2714
+ /** @description The sheet's side along x, in the parts' units (millimetres for parts read from STEP files). */
2715
+ width: number;
2716
+ /** @description The sheet's side along y, in the parts' units (millimetres for parts read from STEP files). */
2717
+ height: number;
2718
+ /** @description How many sheets of this stock there are. Without it, as many as needed. */
2719
+ quantity?: number;
2720
+ /** @description What one sheet of this stock costs. Without costs, the stock that wastes least is opened first (each sheet costs its area). */
2721
+ cost?: number;
2722
+ /** @constant */
2723
+ strip?: false;
2724
+ };
2725
+ /** @description How a part may turn on the sheet: a fixed list of angles, steps that divide a full turn, or any angle. Without it a part turns in steps of 90 degrees. */
2726
+ NestingRotations: {
2727
+ /** @constant */
2728
+ mode: "fixed";
2729
+ /** @description The turns a part may take, in degrees, such as [0, 180] for a grain direction; at most 720. */
2730
+ angles: number[];
2731
+ } | {
2732
+ /** @constant */
2733
+ mode: "step";
2734
+ /** @description Turn in steps of this many degrees; it must divide 360 evenly (90 gives 0, 90, 180 and 270). */
2735
+ step: number;
2736
+ } | {
2737
+ /** @constant */
2738
+ mode: "free";
2739
+ };
2740
+ /** @description Which formats the nested sheets and the flat patterns are written in, and their mesh quality. */
2741
+ UnfoldAndNestOutputOptions: {
2742
+ /** @description Output formats to generate; each gives a separate downloadable result. The nested sheets come in the formats of NestingOutputFormat, and 'flat-meshes' gives each solid's flat pattern triangulated where it was unfolded, tagged with its solidIndex, for showing beside the model; a flat that could not be meshed has no mesh there but is nested all the same, and its unfold report entry says why in 'meshError'. Give 'step' or 'stpz', not both. */
2743
+ formats: ("step" | "stpz" | "decomposed-mesh" | "gltf" | "dxf" | "svg" | "outlines" | "flat-meshes")[];
2744
+ /** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. Only ignored when output is limited to step/stpz formats. */
2745
+ meshPrecision?: components["schemas"]["MeshPrecision"];
2746
+ /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2747
+ gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2748
+ /** @description Turns the decomposed-mesh and flat-meshes outputs from Y-up, as the server models, to Z-up. It applies to those two only: a STEP output is always written Z-up, and a glTF output is always Y-up, as glTF asks. */
2749
+ adjustYtoZ?: boolean;
2750
+ };
2751
+ /** @description Nest the flat parts of uploaded STEP files onto sheets or a strip. A part is a planar face, coplanar faces such as an unfolded sheet-metal part, a plate solid, or a drawing of closed wires; 'stepFileIds' says how parts are read from a file. */
2752
+ NestingNestBody: {
2753
+ /** @description IDs of previously uploaded STEP files (.step, .stp or gzip-compressed .stpz), at most 50 and 200 MB together. Parts are read file after file, as each file's product structure gives them: every placement of a part (a product) is a part, and a file with no assembly is its one part. Within a part, every solid is a part of its own, in the order they sit, and whatever else it holds stays one part after them (an unfolded flat pattern with its bend lines, a drawing's outline with its holes); a part with no edge is skipped, and a request whose files give no part at all is refused. Parts are read into the Y-up working space the report uses. options.parts[i] pairs with the i-th part over all files, at most 5000, and the report names each part's file. */
2754
+ stepFileIds: string[];
2755
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2756
+ fileUnit?: components["schemas"]["LengthUnit"];
2757
+ options: components["schemas"]["NestingOptions"];
2758
+ /** @description Output formats for the nested sheets: every used sheet is one part, holding its placed parts and its outline, and all sheets are combined into one output per format. Defaults to glTF. */
2759
+ outputs?: components["schemas"]["NestingOutputOptions"];
2760
+ };
2761
+ /** @description The stock, the per-part options and the settings of a nesting run. Every length is in the parts' units: millimetres on the nesting routes, which read their STEP files in millimetres, and the unit a pipeline models its shapes in for an occtPro.nesting step. */
2762
+ NestingOptions: {
2763
+ /** @description The stock to nest onto: kinds of rectangular sheets, or one strip. */
2764
+ sheets: (components["schemas"]["NestingStrip"] | components["schemas"]["NestingSheet"])[];
2765
+ /** @description The options of each part, in the order of the parts; the list may not be longer than the parts there are. A null entry, and every part past the end of the list, takes the defaults. All copies together stay within 100000, every part counting its quantity, or 1 when it has no entry or its entry gives none: the entries given are checked when the request arrives, and the total over every part once the parts are read. The request body may grow by 256 bytes for each of the 5000 parts nesting takes, so the options of every part fit, each with its quantity, a few fixed angles, a flip, a priority and an x direction. */
2766
+ parts?: (components["schemas"]["NestingPartOptions"] | null)[];
2767
+ /** @description The least distance kept between any two parts, in the parts' units (millimetres for parts read from STEP files), measured on their true shapes. Defaults to 0, where parts that tile exactly may touch. */
2768
+ spacing?: number;
2769
+ /** @description The band along each sheet's edges that no part enters, in the parts' units (millimetres for parts read from STEP files). Defaults to 0. */
2770
+ margin?: number;
2771
+ /** @description How long the search may run; the best layout found by then is returned. Defaults to 10 seconds, at most 120. */
2772
+ timeBudgetSeconds?: number;
2773
+ /** @description How far the straight chords that stand in for curved edges may stray from them, in the parts' units (millimetres for parts read from STEP files); the spacing still holds on the true curves. Defaults to 0.1. */
2774
+ tolerance?: number;
2775
+ /** @description Stop after this many placements are tried, which makes a run repeatable for one seed; the time budget still applies. 0 means no limit. */
2776
+ evaluationBudget?: number;
2777
+ /** @description The seed of the search's random choices. Defaults to 1. */
2778
+ seed?: number;
2779
+ /** @description The gap between sheets as they are laid out in a row in the output, in the parts' units (millimetres for parts read from STEP files). Defaults to a tenth of the widest sheet. */
2780
+ sheetGap?: number;
2781
+ };
2782
+ /** @description The options of one part, paired with the part of the same index. */
2783
+ NestingPartOptions: {
2784
+ /** @description How many copies of the part to place. Defaults to 1; 0 leaves the part out. */
2785
+ quantity?: number;
2786
+ rotations?: components["schemas"]["NestingRotations"];
2787
+ /** @description Whether the part may be turned over (a half turn about an axis in its plane, never a mirror). Defaults to false. */
2788
+ allowFlip?: boolean;
2789
+ /** @description Parts of higher priority are placed first, so they are the last to be left off when stock runs out. Defaults to 0. */
2790
+ priority?: number;
2791
+ /** @description The direction in the part's plane that a rotation of 0 lays along the sheet's x axis, in the Y-up working space the parts are read into (a STEP file's Z-up numbers are turned a quarter about X first, so the file's +Y is -Z here). A part lying flat keeps its drawn direction without it; one lying askew is squared up to its smallest box. */
2792
+ xDirection?: [
2793
+ number,
2794
+ number,
2795
+ number
2796
+ ];
2797
+ };
2798
+ /** @description Which formats the nested sheets are written in, and their mesh quality. */
2799
+ NestingOutputOptions: {
2800
+ /** @description Output formats to generate; each gives a separate downloadable result. Give 'step' or 'stpz', not both. */
2801
+ formats: components["schemas"]["NestingOutputFormat"][];
2802
+ /** @description Tessellation precision for mesh-based outputs (decomposed-mesh and gltf). Lower values produce denser meshes. Only ignored when output is limited to step/stpz formats. */
2803
+ meshPrecision?: components["schemas"]["MeshPrecision"];
2804
+ /** @description Override tessellation precision specifically for glTF output. When set, takes precedence over meshPrecision for glTF only. */
2805
+ gltfMeshPrecision?: components["schemas"]["MeshPrecision"];
2806
+ /** @description Turns a decomposed-mesh output from Y-up, as the server models, to Z-up. It applies to decomposed-mesh only: a STEP output is always written Z-up, so a STEP sent in comes back as it went in, and a glTF output is always Y-up, as glTF asks. */
2807
+ adjustYtoZ?: boolean;
2808
+ };
2809
+ /**
2810
+ * @description The formats of the nested sheets: 'step' or 'stpz' (each sheet one part, holding its placed parts and its outline), 'gltf', 'decomposed-mesh' (the placed parts, triangulated), 'dxf' (an AutoCAD 2000 drawing in millimetres: the sheets' outlines on layer SHEETS and the parts' cut paths on layer PARTS, every arc, ellipse and spline exact), 'svg' (the same drawing as an SVG file in millimetres, each layer a group), or 'outlines' (the same cut paths as JSON, each copy in the frame of its sheet and named by its placement, for drawing the layout). A 'dxf' or 'svg' too large to write is left out while every other format is still written, and the task's metadata says why under 'outputsLeftOut' (format to reason); a caveat about a cut file that was written, such as a part whose faces could not be joined into one outline, is given under 'outputNotes' (format to note).
2811
+ * @enum {string}
2812
+ */
2813
+ NestingOutputFormat: "step" | "stpz" | "decomposed-mesh" | "gltf" | "dxf" | "svg" | "outlines";
2814
+ /** @description Read the parts of uploaded STEP files as nesting would, without nesting them: each part's file, kind, outline size, area and cut length, or why it cannot be nested. */
2815
+ NestingInspectBody: {
2816
+ /** @description IDs of previously uploaded STEP files (.step, .stp or gzip-compressed .stpz), at most 50 and 200 MB together. Parts are read file after file, as each file's product structure gives them: every placement of a part (a product) is a part, and a file with no assembly is its one part. Within a part, every solid is a part of its own, in the order they sit, and whatever else it holds stays one part after them (an unfolded flat pattern with its bend lines, a drawing's outline with its holes); a part with no edge is skipped, and a request whose files give no part at all is refused. Parts are read into the Y-up working space the report uses. options.parts[i] pairs with the i-th part over all files, at most 5000, and the report names each part's file. */
2817
+ stepFileIds: string[];
2818
+ /** @description The unit a STEP file's numbers are really in, when its header states another unit or none: some exporters write a model drawn in metres under a millimetre header. Each file is scaled from it, so the model is read in millimetres, the unit every length of the request and its results is in. A header naming no unit counts as millimetres; a file whose header names a unit other than mm, cm, m or in, or several different ones, is refused, since its unit is converted already. Left out, each file's own unit is used. */
2819
+ fileUnit?: components["schemas"]["LengthUnit"];
2820
+ options?: components["schemas"]["NestingInspectOptions"];
2821
+ };
2822
+ /** @description The settings that change how parts are read (tolerance, xDirection); no stock is needed. Every length is in the parts' units: millimetres on the nesting routes, which read their STEP files in millimetres, and the unit a pipeline models its shapes in for an occtPro.nesting step. */
2823
+ NestingInspectOptions: {
2824
+ sheets?: (components["schemas"]["NestingStrip"] | components["schemas"]["NestingSheet"])[];
2825
+ /** @description The options of each part, in the order of the parts; the list may not be longer than the parts there are. A null entry, and every part past the end of the list, takes the defaults. All copies together stay within 100000, every part counting its quantity, or 1 when it has no entry or its entry gives none: the entries given are checked when the request arrives, and the total over every part once the parts are read. The request body may grow by 256 bytes for each of the 5000 parts nesting takes, so the options of every part fit, each with its quantity, a few fixed angles, a flip, a priority and an x direction. */
2826
+ parts?: (components["schemas"]["NestingPartOptions"] | null)[];
2827
+ /** @description The least distance kept between any two parts, in the parts' units (millimetres for parts read from STEP files), measured on their true shapes. Defaults to 0, where parts that tile exactly may touch. */
2828
+ spacing?: number;
2829
+ /** @description The band along each sheet's edges that no part enters, in the parts' units (millimetres for parts read from STEP files). Defaults to 0. */
2830
+ margin?: number;
2831
+ /** @description How long the search may run; the best layout found by then is returned. Defaults to 10 seconds, at most 120. */
2832
+ timeBudgetSeconds?: number;
2833
+ /** @description How far the straight chords that stand in for curved edges may stray from them, in the parts' units (millimetres for parts read from STEP files); the spacing still holds on the true curves. Defaults to 0.1. */
2834
+ tolerance?: number;
2835
+ /** @description Stop after this many placements are tried, which makes a run repeatable for one seed; the time budget still applies. 0 means no limit. */
2836
+ evaluationBudget?: number;
2837
+ /** @description The seed of the search's random choices. Defaults to 1. */
2838
+ seed?: number;
2839
+ /** @description The gap between sheets as they are laid out in a row in the output, in the parts' units (millimetres for parts read from STEP files). Defaults to a tenth of the widest sheet. */
2840
+ sheetGap?: number;
2841
+ };
2438
2842
  /** @description Request a pre-signed upload URL. After receiving the URL, PUT the raw file bytes to it within the expiration window. */
2439
2843
  FileUploadBody: {
2440
2844
  /** @description Original filename including extension (e.g. 'part.step', 'model.obj'). Used for display and format detection. */
@@ -2471,6 +2875,8 @@ export interface components {
2471
2875
  totalArea: number;
2472
2876
  faces: components["schemas"]["UnfoldFaceEntry"][];
2473
2877
  placed: components["schemas"]["UnfoldPlaced"][];
2878
+ /** @description Why the flat pattern has no mesh in the decomposed-mesh or flat-meshes result, when it could not be meshed. The flat is still in every other output and, on unfold-and-nest, in the nest. */
2879
+ meshError?: string;
2474
2880
  } | components["schemas"]["UnfoldSolidReportError"];
2475
2881
  /** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
2476
2882
  UnfoldBend: {
@@ -2579,6 +2985,153 @@ export interface components {
2579
2985
  faces?: components["schemas"]["UnfoldFaceEntry"][];
2580
2986
  placed?: components["schemas"]["UnfoldPlaced"][];
2581
2987
  };
2988
+ /** @description One used sheet: its stock, where it lies in the working space, and how much of it the parts fill. */
2989
+ NestingSheetEntry: {
2990
+ index: number;
2991
+ /** @description The index of the stock in the options' sheets. */
2992
+ stock: number;
2993
+ /** @enum {string} */
2994
+ kind: "sheet" | "strip";
2995
+ /** @description The sheet's width; for a strip, the length it used. */
2996
+ width: number;
2997
+ height: number;
2998
+ cost: number;
2999
+ /** @description Where the sheet's corner lies in the working space, Y up, the sheet on the XZ plane facing +Y. A STEP output turns this space to Z up. */
3000
+ origin: [
3001
+ number,
3002
+ number,
3003
+ number
3004
+ ];
3005
+ usedLength: number;
3006
+ remnantLength: number;
3007
+ parts: number;
3008
+ partArea: number;
3009
+ utilization: number;
3010
+ };
3011
+ /** @description Where one copy of a part was placed. */
3012
+ NestingPlacement: {
3013
+ part: number;
3014
+ copy: number;
3015
+ sheet: number;
3016
+ x: number;
3017
+ y: number;
3018
+ angleDeg: number;
3019
+ flipped: boolean;
3020
+ /** @description The part's box on its sheet as [minX, minY, maxX, maxY]. */
3021
+ box: number[];
3022
+ /** @description A point inside the placed part's material, for a label, in the working space (Y up). */
3023
+ anchor: [
3024
+ number,
3025
+ number,
3026
+ number
3027
+ ];
3028
+ /** @description The 4 x 4 matrix, column by column, that moves the input part to its place in the working space (Y up); a STEP output is that space turned to Z up. */
3029
+ transform: number[];
3030
+ };
3031
+ /** @description How one part was read, and how many of its copies were placed. */
3032
+ NestingPartEntry: {
3033
+ index: number;
3034
+ /** @description Which uploaded file the part came from, as an index into stepFileIds; present on the nesting routes, which read parts from files. */
3035
+ file?: number;
3036
+ /** @description Which solid of the model the flat pattern was unfolded from, as its solidIndex in the unfold report; present on the unfold-and-nest route. */
3037
+ solid?: number;
3038
+ ok: boolean;
3039
+ /** @description Why the part cannot be nested: nullShape, notPlanar, notClosed, notPlate, unsupportedShape or invalidGeometry. */
3040
+ problem?: string;
3041
+ /** @description What the part was read as: face, faces, solid, wire or wires. */
3042
+ kind: string;
3043
+ area: number;
3044
+ width: number;
3045
+ height: number;
3046
+ /** @description A plate's thickness; 0 for a face or a drawing. */
3047
+ depth: number;
3048
+ /** @description How far the outline's chords may stray from the true edges; added to the spacing. */
3049
+ slack: number;
3050
+ cutLength: number;
3051
+ loops: number;
3052
+ points: number;
3053
+ searchedPoints: number;
3054
+ quantity: number;
3055
+ placed: number;
3056
+ };
3057
+ /** @description Copies of a part that were not placed, and why. */
3058
+ NestingLeft: {
3059
+ part: number;
3060
+ count: number;
3061
+ /** @description The part's problem, or tooLargeForAnySheet, noStockLeft, timeBudget or verificationFailed. */
3062
+ reason: string;
3063
+ };
3064
+ /** @description Totals over every used sheet. */
3065
+ NestingTotals: {
3066
+ sheets: number;
3067
+ placed: number;
3068
+ left: number;
3069
+ partArea: number;
3070
+ sheetArea: number;
3071
+ utilization: number;
3072
+ cost: number;
3073
+ cutLength: number;
3074
+ pierces: number;
3075
+ };
3076
+ /** @description How the search ran: whether the same seed gives the same layout again, and whether it was stopped or ran out of time. */
3077
+ NestingRun: {
3078
+ seed: number;
3079
+ evaluations: number;
3080
+ seconds: number;
3081
+ reproducible: boolean;
3082
+ stopped: boolean;
3083
+ hitWallLimit: boolean;
3084
+ };
3085
+ /** @description The nesting kernel's own answer when it refuses the options or is stopped before any part was nested. No result carries it: the API fails the task with its error instead. */
3086
+ NestingReportError: {
3087
+ /** @constant */
3088
+ ok: false;
3089
+ error: string;
3090
+ };
3091
+ /** @description A full circle. */
3092
+ NestingOutlineCircle: {
3093
+ /** @description The centre's x and y and the radius. */
3094
+ circle: [
3095
+ number,
3096
+ number,
3097
+ number
3098
+ ];
3099
+ };
3100
+ /** @description Lines and arcs from vertex to vertex. */
3101
+ NestingOutlinePolyline: {
3102
+ /** @description The vertices as x, y pairs, one after another. */
3103
+ points: number[];
3104
+ /** @description One per vertex: the tangent of a quarter of the arc's angle from that vertex to the next, 0 for a straight line, positive turning counterclockwise. */
3105
+ bulges: number[];
3106
+ closed: boolean;
3107
+ };
3108
+ /** @description An ellipse or an arc of one. */
3109
+ NestingOutlineEllipse: {
3110
+ ellipse: {
3111
+ /** @description The centre's x and y. */
3112
+ center: number[];
3113
+ /** @description The vector from the centre to one end of the major axis; its length is the major radius. */
3114
+ majorAxis: number[];
3115
+ /** @description The minor radius divided by the major radius. */
3116
+ ratio: number;
3117
+ /** @description Where the arc starts, as the ellipse's parameter t in radians: the point center + cos(t) majorAxis + sin(t) ratio (-majorAxis y, majorAxis x), the minor axis being the major one turned a quarter counterclockwise and scaled by ratio. t is the angle from the major axis only when ratio is 1. */
3118
+ start: number;
3119
+ /** @description Where the arc ends, as the same parameter t in radians; the arc runs counterclockwise from start to end, a whole ellipse from 0 to 2 pi. */
3120
+ end: number;
3121
+ };
3122
+ };
3123
+ /** @description A B-spline or NURBS curve. */
3124
+ NestingOutlineSpline: {
3125
+ spline: {
3126
+ degree: number;
3127
+ /** @description The full knot vector, one more value than the control points and the degree together; the curve starts and ends at its end points. */
3128
+ knots: number[];
3129
+ /** @description The control points as x, y pairs, one after another. */
3130
+ points: number[];
3131
+ /** @description One weight per control point when the curve is rational; left out, every weight is 1. */
3132
+ weights?: number[];
3133
+ };
3134
+ };
2582
3135
  /** @description Success envelope for health check */
2583
3136
  HealthResponse: {
2584
3137
  /** @constant */
@@ -3021,6 +3574,8 @@ export interface components {
3021
3574
  totalArea: number;
3022
3575
  faces: components["schemas"]["UnfoldFaceEntryOutput"][];
3023
3576
  placed: components["schemas"]["UnfoldPlacedOutput"][];
3577
+ /** @description Why the flat pattern has no mesh in the decomposed-mesh or flat-meshes result, when it could not be meshed. The flat is still in every other output and, on unfold-and-nest, in the nest. */
3578
+ meshError?: string;
3024
3579
  } | components["schemas"]["UnfoldSolidReportErrorOutput"];
3025
3580
  /** @description One bend: line, angle, radii (inner/outer/neutral and per-end for cones), and developed lengths. */
3026
3581
  UnfoldBendOutput: {
@@ -3129,6 +3684,153 @@ export interface components {
3129
3684
  faces?: components["schemas"]["UnfoldFaceEntryOutput"][];
3130
3685
  placed?: components["schemas"]["UnfoldPlacedOutput"][];
3131
3686
  };
3687
+ /** @description One used sheet: its stock, where it lies in the working space, and how much of it the parts fill. */
3688
+ NestingSheetEntryOutput: {
3689
+ index: number;
3690
+ /** @description The index of the stock in the options' sheets. */
3691
+ stock: number;
3692
+ /** @enum {string} */
3693
+ kind: "sheet" | "strip";
3694
+ /** @description The sheet's width; for a strip, the length it used. */
3695
+ width: number;
3696
+ height: number;
3697
+ cost: number;
3698
+ /** @description Where the sheet's corner lies in the working space, Y up, the sheet on the XZ plane facing +Y. A STEP output turns this space to Z up. */
3699
+ origin: [
3700
+ number,
3701
+ number,
3702
+ number
3703
+ ];
3704
+ usedLength: number;
3705
+ remnantLength: number;
3706
+ parts: number;
3707
+ partArea: number;
3708
+ utilization: number;
3709
+ };
3710
+ /** @description Where one copy of a part was placed. */
3711
+ NestingPlacementOutput: {
3712
+ part: number;
3713
+ copy: number;
3714
+ sheet: number;
3715
+ x: number;
3716
+ y: number;
3717
+ angleDeg: number;
3718
+ flipped: boolean;
3719
+ /** @description The part's box on its sheet as [minX, minY, maxX, maxY]. */
3720
+ box: number[];
3721
+ /** @description A point inside the placed part's material, for a label, in the working space (Y up). */
3722
+ anchor: [
3723
+ number,
3724
+ number,
3725
+ number
3726
+ ];
3727
+ /** @description The 4 x 4 matrix, column by column, that moves the input part to its place in the working space (Y up); a STEP output is that space turned to Z up. */
3728
+ transform: number[];
3729
+ };
3730
+ /** @description How one part was read, and how many of its copies were placed. */
3731
+ NestingPartEntryOutput: {
3732
+ index: number;
3733
+ /** @description Which uploaded file the part came from, as an index into stepFileIds; present on the nesting routes, which read parts from files. */
3734
+ file?: number;
3735
+ /** @description Which solid of the model the flat pattern was unfolded from, as its solidIndex in the unfold report; present on the unfold-and-nest route. */
3736
+ solid?: number;
3737
+ ok: boolean;
3738
+ /** @description Why the part cannot be nested: nullShape, notPlanar, notClosed, notPlate, unsupportedShape or invalidGeometry. */
3739
+ problem?: string;
3740
+ /** @description What the part was read as: face, faces, solid, wire or wires. */
3741
+ kind: string;
3742
+ area: number;
3743
+ width: number;
3744
+ height: number;
3745
+ /** @description A plate's thickness; 0 for a face or a drawing. */
3746
+ depth: number;
3747
+ /** @description How far the outline's chords may stray from the true edges; added to the spacing. */
3748
+ slack: number;
3749
+ cutLength: number;
3750
+ loops: number;
3751
+ points: number;
3752
+ searchedPoints: number;
3753
+ quantity: number;
3754
+ placed: number;
3755
+ };
3756
+ /** @description Copies of a part that were not placed, and why. */
3757
+ NestingLeftOutput: {
3758
+ part: number;
3759
+ count: number;
3760
+ /** @description The part's problem, or tooLargeForAnySheet, noStockLeft, timeBudget or verificationFailed. */
3761
+ reason: string;
3762
+ };
3763
+ /** @description Totals over every used sheet. */
3764
+ NestingTotalsOutput: {
3765
+ sheets: number;
3766
+ placed: number;
3767
+ left: number;
3768
+ partArea: number;
3769
+ sheetArea: number;
3770
+ utilization: number;
3771
+ cost: number;
3772
+ cutLength: number;
3773
+ pierces: number;
3774
+ };
3775
+ /** @description How the search ran: whether the same seed gives the same layout again, and whether it was stopped or ran out of time. */
3776
+ NestingRunOutput: {
3777
+ seed: number;
3778
+ evaluations: number;
3779
+ seconds: number;
3780
+ reproducible: boolean;
3781
+ stopped: boolean;
3782
+ hitWallLimit: boolean;
3783
+ };
3784
+ /** @description The nesting kernel's own answer when it refuses the options or is stopped before any part was nested. No result carries it: the API fails the task with its error instead. */
3785
+ NestingReportErrorOutput: {
3786
+ /** @constant */
3787
+ ok: false;
3788
+ error: string;
3789
+ };
3790
+ /** @description A full circle. */
3791
+ NestingOutlineCircleOutput: {
3792
+ /** @description The centre's x and y and the radius. */
3793
+ circle: [
3794
+ number,
3795
+ number,
3796
+ number
3797
+ ];
3798
+ };
3799
+ /** @description Lines and arcs from vertex to vertex. */
3800
+ NestingOutlinePolylineOutput: {
3801
+ /** @description The vertices as x, y pairs, one after another. */
3802
+ points: number[];
3803
+ /** @description One per vertex: the tangent of a quarter of the arc's angle from that vertex to the next, 0 for a straight line, positive turning counterclockwise. */
3804
+ bulges: number[];
3805
+ closed: boolean;
3806
+ };
3807
+ /** @description An ellipse or an arc of one. */
3808
+ NestingOutlineEllipseOutput: {
3809
+ ellipse: {
3810
+ /** @description The centre's x and y. */
3811
+ center: number[];
3812
+ /** @description The vector from the centre to one end of the major axis; its length is the major radius. */
3813
+ majorAxis: number[];
3814
+ /** @description The minor radius divided by the major radius. */
3815
+ ratio: number;
3816
+ /** @description Where the arc starts, as the ellipse's parameter t in radians: the point center + cos(t) majorAxis + sin(t) ratio (-majorAxis y, majorAxis x), the minor axis being the major one turned a quarter counterclockwise and scaled by ratio. t is the angle from the major axis only when ratio is 1. */
3817
+ start: number;
3818
+ /** @description Where the arc ends, as the same parameter t in radians; the arc runs counterclockwise from start to end, a whole ellipse from 0 to 2 pi. */
3819
+ end: number;
3820
+ };
3821
+ };
3822
+ /** @description A B-spline or NURBS curve. */
3823
+ NestingOutlineSplineOutput: {
3824
+ spline: {
3825
+ degree: number;
3826
+ /** @description The full knot vector, one more value than the control points and the degree together; the curve starts and ends at its end points. */
3827
+ knots: number[];
3828
+ /** @description The control points as x, y pairs, one after another. */
3829
+ points: number[];
3830
+ /** @description One weight per control point when the curve is rational; left out, every weight is 1. */
3831
+ weights?: number[];
3832
+ };
3833
+ };
3132
3834
  /** @description Sheet-metal unfold metrics for a single face (surface type, developability, area before/after). */
3133
3835
  UnfoldFaceReport: {
3134
3836
  /** @constant */
@@ -3146,6 +3848,46 @@ export interface components {
3146
3848
  UnfoldSolidReport: (components["schemas"]["UnfoldSolidReportItemOutput"] & {
3147
3849
  solidIndex: number;
3148
3850
  })[];
3851
+ /** @description The layout of a nesting run: the used sheets, every placement with its transform, each part as read, what was left and why, and the totals. Every length is in the parts' units, millimetres for parts read from STEP files. Positions are in the working space, right-handed with Y up; a STEP output turns that space to Z up, a quarter turn about X. A report delivered as a result always has ok true: when the kernel refuses a run, the task fails with the kernel's reason instead. */
3852
+ NestingReport: {
3853
+ /** @constant */
3854
+ ok: true;
3855
+ version: number;
3856
+ spacing: number;
3857
+ margin: number;
3858
+ tolerance: number;
3859
+ allowance: number;
3860
+ sheets: components["schemas"]["NestingSheetEntryOutput"][];
3861
+ placements: components["schemas"]["NestingPlacementOutput"][];
3862
+ parts: components["schemas"]["NestingPartEntryOutput"][];
3863
+ left: components["schemas"]["NestingLeftOutput"][];
3864
+ totals: components["schemas"]["NestingTotalsOutput"];
3865
+ run: components["schemas"]["NestingRunOutput"];
3866
+ } | components["schemas"]["NestingReportErrorOutput"];
3867
+ /** @description Each part as nesting reads it, without nesting. Every length is in the parts' units, millimetres for parts read from STEP files. A report delivered as a result always has ok true: when the kernel refuses a run, the task fails with the kernel's reason instead. */
3868
+ NestingInspection: {
3869
+ /** @constant */
3870
+ ok: true;
3871
+ version: number;
3872
+ parts: components["schemas"]["NestingPartEntryOutput"][];
3873
+ } | components["schemas"]["NestingReportErrorOutput"];
3874
+ /** @description The cut paths of every placed copy in the frame of its sheet: x along the sheet's width and y along its height from the corner, as the report's placement boxes are; the 'outlines' result of a nest. */
3875
+ NestingOutlines: {
3876
+ version: number;
3877
+ sheets: {
3878
+ index: number;
3879
+ width: number;
3880
+ height: number;
3881
+ copies: {
3882
+ /** @description The placement in the report this copy is. */
3883
+ placement: number;
3884
+ part: number;
3885
+ segments: (components["schemas"]["NestingOutlineCircleOutput"] | components["schemas"]["NestingOutlinePolylineOutput"] | components["schemas"]["NestingOutlineEllipseOutput"] | components["schemas"]["NestingOutlineSplineOutput"])[];
3886
+ /** @description The same cut path as SVG path data in the sheet's frame, y up: arcs and ellipses exact, splines as Bezier curves. */
3887
+ path: string;
3888
+ }[];
3889
+ }[];
3890
+ };
3149
3891
  };
3150
3892
  responses: never;
3151
3893
  parameters: never;