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