@bitbybit-dev/cad-cloud-sdk 1.4.1 → 1.5.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.
@@ -1,6 +1,6 @@
1
1
  // ---------------------------------------------------------------------------
2
2
  // AUTO-GENERATED by generate-pipeline-types.ts — do not edit manually.
3
- // Generated from operation-catalog.json v1.4.1
3
+ // Generated from operation-catalog.json v1.5.0
4
4
  // ---------------------------------------------------------------------------
5
5
 
6
6
  /* eslint-disable @typescript-eslint/no-empty-object-type */
@@ -206,9 +206,11 @@ export type OperationPath =
206
206
  | "manifold.crossSection.operations.decompose"
207
207
  | "manifold.crossSection.operations.extrude"
208
208
  | "manifold.crossSection.operations.hull"
209
+ | "manifold.crossSection.operations.loft"
209
210
  | "manifold.crossSection.operations.offset"
210
211
  | "manifold.crossSection.operations.revolve"
211
212
  | "manifold.crossSection.operations.simplify"
213
+ | "manifold.crossSection.operations.sweep"
212
214
  | "manifold.crossSection.shapes.circle"
213
215
  | "manifold.crossSection.shapes.create"
214
216
  | "manifold.crossSection.shapes.rectangle"
@@ -302,6 +304,9 @@ export type OperationPath =
302
304
  | "manifold.mesh.evaluate.transform"
303
305
  | "manifold.mesh.evaluate.verts"
304
306
  | "manifold.mesh.operations.merge"
307
+ | "manifold.recipes.build"
308
+ | "manifold.recipes.meshes"
309
+ | "manifold.recipes.surfaceMeshes"
305
310
  | "manifold.toPolygonPoints"
306
311
  | "math.abs"
307
312
  | "math.acos"
@@ -369,6 +374,7 @@ export type OperationPath =
369
374
  | "occt.analysis.measure.orientedBoundingBox"
370
375
  | "occt.analysis.measure.principalFrame"
371
376
  | "occt.analysis.measure.tightBoundingBox"
377
+ | "occt.analysis.signatures"
372
378
  | "occt.analysis.surfaces.closestPoints"
373
379
  | "occt.analysis.surfaces.curvaturesOnUVs"
374
380
  | "occt.analysis.surfaces.surfaceType"
@@ -400,6 +406,7 @@ export type OperationPath =
400
406
  | "occt.booleans.difference"
401
407
  | "occt.booleans.differenceWithHistory"
402
408
  | "occt.booleans.intersection"
409
+ | "occt.booleans.intersectionWithHistory"
403
410
  | "occt.booleans.meshMeshIntersectionOfShapesPoints"
404
411
  | "occt.booleans.meshMeshIntersectionOfShapesWires"
405
412
  | "occt.booleans.meshMeshIntersectionPoints"
@@ -426,6 +433,10 @@ export type OperationPath =
426
433
  | "occt.corners.filletCornerByPoint"
427
434
  | "occt.deleteShape"
428
435
  | "occt.deleteShapes"
436
+ | "occt.design.build"
437
+ | "occt.design.clashes"
438
+ | "occt.design.validate"
439
+ | "occt.design.versionOf"
429
440
  | "occt.dimensions.pinWithLabel"
430
441
  | "occt.dimensions.simpleAngularDimension"
431
442
  | "occt.dimensions.simpleLinearLengthDimension"
@@ -435,13 +446,20 @@ export type OperationPath =
435
446
  | "occt.draft.makeDraft"
436
447
  | "occt.draft.makeDraftToShape"
437
448
  | "occt.features.boss"
449
+ | "occt.features.bossWithHistory"
438
450
  | "occt.features.counterboredHoles"
451
+ | "occt.features.counterboredHolesWithHistory"
439
452
  | "occt.features.countersunkHoles"
453
+ | "occt.features.countersunkHolesWithHistory"
440
454
  | "occt.features.groove"
441
455
  | "occt.features.holes"
456
+ | "occt.features.holesWithHistory"
442
457
  | "occt.features.pocket"
458
+ | "occt.features.pocketWithHistory"
443
459
  | "occt.features.pushPullFaces"
460
+ | "occt.features.pushPullFacesWithHistory"
444
461
  | "occt.features.removeFaces"
462
+ | "occt.features.removeFacesWithHistory"
445
463
  | "occt.features.revolvedBoss"
446
464
  | "occt.features.revolvedPocket"
447
465
  | "occt.features.rib"
@@ -484,11 +502,14 @@ export type OperationPath =
484
502
  | "occt.io.dxfCreate"
485
503
  | "occt.io.dxfPathsWithLayer"
486
504
  | "occt.io.loadBrep"
505
+ | "occt.io.loadBrepBinary"
487
506
  | "occt.io.loadSTEPorIGES"
488
507
  | "occt.io.loadStl"
489
508
  | "occt.io.parseStepToJson"
490
509
  | "occt.io.saveShapeBrep"
491
510
  | "occt.io.saveShapeBrepAndReturn"
511
+ | "occt.io.saveShapeBrepBinary"
512
+ | "occt.io.saveShapeBrepBinaryAndReturn"
492
513
  | "occt.io.saveShapeObj"
493
514
  | "occt.io.saveShapeObjAndReturn"
494
515
  | "occt.io.saveShapePly"
@@ -520,8 +541,12 @@ export type OperationPath =
520
541
  | "occt.operations.hiddenLines"
521
542
  | "occt.operations.loft"
522
543
  | "occt.operations.loftAdvanced"
544
+ | "occt.operations.loftAdvancedWithHistory"
545
+ | "occt.operations.loftWithHistory"
523
546
  | "occt.operations.makeThickSolidByJoin"
547
+ | "occt.operations.makeThickSolidByJoinWithHistory"
524
548
  | "occt.operations.makeThickSolidSimple"
549
+ | "occt.operations.makeThickSolidSimpleWithHistory"
525
550
  | "occt.operations.offset"
526
551
  | "occt.operations.offset3DWire"
527
552
  | "occt.operations.offsetAdv"
@@ -529,6 +554,7 @@ export type OperationPath =
529
554
  | "occt.operations.pipePolylineWireNGon"
530
555
  | "occt.operations.pipeWireCylindrical"
531
556
  | "occt.operations.pipeWiresCylindrical"
557
+ | "occt.operations.pipeWithHistory"
532
558
  | "occt.operations.pipeWithScaling"
533
559
  | "occt.operations.revolve"
534
560
  | "occt.operations.revolveWithHistory"
@@ -542,6 +568,8 @@ export type OperationPath =
542
568
  | "occt.operations.splitShapeWithShapes"
543
569
  | "occt.operations.sweepEvolved"
544
570
  | "occt.path.shapeFromPath"
571
+ | "occt.recipes.build"
572
+ | "occt.recipes.buildDocument"
545
573
  | "occt.select.edges.along"
546
574
  | "occt.select.edges.between"
547
575
  | "occt.select.edges.byLength"
@@ -951,6 +979,7 @@ export type OperationPath =
951
979
  | "occtPro.sheetMetal.unfoldFaceToFlat"
952
980
  | "occtPro.sheetMetal.unfoldSolidReport"
953
981
  | "occtPro.sheetMetal.unfoldSolidToFlat"
982
+ | "point.arcThroughThreePoints"
954
983
  | "point.averagePoint"
955
984
  | "point.boundingBoxOfPoints"
956
985
  | "point.closestPointFromPoints"
@@ -989,6 +1018,8 @@ export type OperationPath =
989
1018
  | "polyline.getPoints"
990
1019
  | "polyline.length"
991
1020
  | "polyline.maxFilletsHalfLine"
1021
+ | "polyline.polygonArea"
1022
+ | "polyline.polygonNormal"
992
1023
  | "polyline.polylineSelfIntersection"
993
1024
  | "polyline.polylineToLines"
994
1025
  | "polyline.polylineToSegments"
@@ -4007,6 +4038,26 @@ export interface OperationParams {
4007
4038
  /** The cross-section to work on; it is not changed. */
4008
4039
  crossSection: unknown | PipelineRef;
4009
4040
  };
4041
+ /**
4042
+ * Joins cross-sections placed by frames into a solid, each section to the next by straight
4043
+ * sides, closed at both ends: a taper from one outline to another, or one outline through many
4044
+ * frames.
4045
+ *
4046
+ * Corner `i` of a section joins corner `i` of the next, so differing sections need matching loops;
4047
+ * frames move the sections apart, mirroring all or none.
4048
+ */
4049
+ "manifold.crossSection.operations.loft": {
4050
+ /**
4051
+ * One cross-section, placed by every frame, or one for each frame. Cross-sections that differ
4052
+ * need as many loops with as many corners each, as a moved or scaled copy has.
4053
+ */
4054
+ crossSections: unknown[] | PipelineRef;
4055
+ /**
4056
+ * Where each section stands, at least two: sixteen numbers in column-major order that place the
4057
+ * cross-section's XY plane, with 0, 0, 0, 1 as the bottom row.
4058
+ */
4059
+ frames: unknown[] | PipelineRef;
4060
+ };
4010
4061
  /**
4011
4062
  * Moves the outline of a cross-section outward by `delta`, or inward for a negative delta, so
4012
4063
  * an outer contour grows and a hole shrinks.
@@ -4067,6 +4118,31 @@ export interface OperationParams {
4067
4118
  /** Points closer than this, in model units, to the line between their neighbors are dropped. */
4068
4119
  epsilon?: number | PipelineRef;
4069
4120
  };
4121
+ /**
4122
+ * Carries a cross-section along a path of points into a solid, square to the path at every
4123
+ * point and turning with it without twisting, like a pipe, a rail or a cable.
4124
+ *
4125
+ * Sharp corners are mitred so the solid keeps its width; `cornerRadius` rounds them instead.
4126
+ * `xDirection` sets where the profile's X axis points at the start.
4127
+ */
4128
+ "manifold.crossSection.operations.sweep": {
4129
+ /** The profile to carry, drawn around the origin of its XY plane, which follows the path. */
4130
+ crossSection: unknown | PipelineRef;
4131
+ /** The points the path runs through, at least two. */
4132
+ path: [number, number, number][] | PipelineRef;
4133
+ /**
4134
+ * How much the path's corners are rounded; 0 keeps them sharp, mitred so the solid keeps its
4135
+ * width.
4136
+ */
4137
+ cornerRadius?: number | PipelineRef;
4138
+ /** How many segments a whole turn of a rounded corner is divided into; more is rounder. */
4139
+ circularSegments?: number | PipelineRef;
4140
+ /**
4141
+ * Where the profile's X axis points at the start of the path, turned square to it; left out,
4142
+ * one is chosen. The profile then follows the path's turns without twisting.
4143
+ */
4144
+ xDirection?: [number, number, number] | PipelineRef;
4145
+ };
4070
4146
  /**
4071
4147
  * Creates a circular cross-section of the given radius, centered on the origin and drawn with
4072
4148
  * `circularSegments` straight sides.
@@ -4179,14 +4255,19 @@ export interface OperationParams {
4179
4255
  * Turns a solid into plain mesh data, or a cross-section into its polygons, ready for drawing
4180
4256
  * or export.
4181
4257
  *
4182
- * `normalIdx` names the vertex property channel that holds normals, when the solid carries
4183
- * them.
4258
+ * `normalIdx` names the channel holding normals the solid carries. With `minSharpAngle`, normals
4259
+ * follow each position, smooth across flatter edges and split across sharper ones.
4184
4260
  */
4185
4261
  "manifold.decomposeManifoldOrCrossSection": {
4186
4262
  /** The solid or cross-section to turn into plain data. */
4187
4263
  manifoldOrCrossSection: unknown | PipelineRef;
4188
4264
  /** The property channel holding the normals of a solid, when it carries them. */
4189
4265
  normalIdx?: number | PipelineRef;
4266
+ /**
4267
+ * When given, a solid's mesh carries normals after its positions, and edges sharper than this,
4268
+ * in degrees, keep a normal on each side; 0 shades every face flat.
4269
+ */
4270
+ minSharpAngle?: number | PipelineRef;
4190
4271
  };
4191
4272
  /**
4192
4273
  * Turns several solids into mesh data, or cross-sections into polygons, as
@@ -4199,6 +4280,11 @@ export interface OperationParams {
4199
4280
  manifoldsOrCrossSections: unknown[] | PipelineRef;
4200
4281
  /** One normal channel per shape, for the solids that carry normals. */
4201
4282
  normalIdx?: number[] | PipelineRef;
4283
+ /**
4284
+ * When given, each solid's mesh carries normals after its positions, and edges sharper than
4285
+ * this, in degrees, keep a normal on each side; 0 shades every face flat.
4286
+ */
4287
+ minSharpAngle?: number | PipelineRef;
4202
4288
  };
4203
4289
  /**
4204
4290
  * Frees the memory a solid or a cross-section holds inside the kernel; the object cannot be
@@ -5028,6 +5114,87 @@ export interface OperationParams {
5028
5114
  /** The mesh data, as `manifoldToMesh` hands it out. */
5029
5115
  mesh: unknown | PipelineRef;
5030
5116
  };
5117
+ /**
5118
+ * Builds each root of a recipe as a solid placed by its matrix, in root order.
5119
+ *
5120
+ * Shared nodes are built once. An invalid recipe throws before anything is built; a root the
5121
+ * kernel cannot build, such as an open mesh, throws naming its node unless `emptyWhenFailed` is
5122
+ * set. Circles get `circularSegments` sides; `tolerance` and `millimetresPerUnit` are not applied.
5123
+ */
5124
+ "manifold.recipes.build": {
5125
+ /**
5126
+ * The recipe: steps such as polygons, extrusions and cuts, and the roots to build from them, as
5127
+ * a package that describes geometry as data writes it.
5128
+ */
5129
+ recipe: unknown | PipelineRef;
5130
+ /**
5131
+ * How many flat sides each circle of the recipe is divided into; more is rounder. The recipe
5132
+ * leaves this to the kernel, so it is chosen here.
5133
+ */
5134
+ circularSegments?: number | PipelineRef;
5135
+ /**
5136
+ * When true, each solid turns a quarter turn about X so the recipe's Z points along Y, which is
5137
+ * up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
5138
+ */
5139
+ adjustZtoY?: boolean | PipelineRef;
5140
+ /**
5141
+ * When true, a root that cannot be built, such as an open mesh, comes back empty, and an
5142
+ * opening that cannot is left uncut; when false, both stop the build.
5143
+ */
5144
+ emptyWhenFailed?: boolean | PipelineRef;
5145
+ };
5146
+ /**
5147
+ * Builds a recipe into the meshes its roots draw, each step several roots place meshed once in
5148
+ * its own coordinates, and gives every root a placement: its mesh, its matrix and its tag.
5149
+ *
5150
+ * Turns and moves fold into the placements, so a door type placed a hundred times is one mesh;
5151
+ * normals split at edges sharper than `minSharpAngle`.
5152
+ */
5153
+ "manifold.recipes.meshes": {
5154
+ /**
5155
+ * The recipe: steps such as polygons, extrusions and cuts, and the roots to draw from them, as
5156
+ * a package that describes geometry as data writes it.
5157
+ */
5158
+ recipe: unknown | PipelineRef;
5159
+ /** How many flat sides each circle of the recipe is divided into; more is rounder. */
5160
+ circularSegments?: number | PipelineRef;
5161
+ /**
5162
+ * When true, every placement turns a quarter turn about X so the recipe's Z points along Y,
5163
+ * which is up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
5164
+ */
5165
+ adjustZtoY?: boolean | PipelineRef;
5166
+ /**
5167
+ * When true, a root that cannot be built draws as its surface if it is triangles alone, else
5168
+ * draws nothing; when false, it stops the build.
5169
+ */
5170
+ emptyWhenFailed?: boolean | PipelineRef;
5171
+ /** Edges sharper than this, in degrees, keep a normal on each side; 0 shades every face flat. */
5172
+ minSharpAngle?: number | PipelineRef;
5173
+ };
5174
+ /**
5175
+ * Gives the roots of a recipe made of triangle meshes alone as meshes, placed as `build` places
5176
+ * its solids, without building anything.
5177
+ *
5178
+ * `build` gives an open mesh back empty, since it cannot be a solid; this gives it as the surface
5179
+ * it is, its openings left uncut. A root holding any other step comes back as an empty mesh.
5180
+ */
5181
+ "manifold.recipes.surfaceMeshes": {
5182
+ /**
5183
+ * The recipe: steps such as polygons, extrusions and triangle meshes, and the roots to build
5184
+ * from them, as a package that describes geometry as data writes it.
5185
+ */
5186
+ recipe: unknown | PipelineRef;
5187
+ /**
5188
+ * The positions of the roots to read, such as the ones `recipes.build` gave back empty; every
5189
+ * root when left out.
5190
+ */
5191
+ roots?: number[] | PipelineRef;
5192
+ /**
5193
+ * When true, each mesh turns a quarter turn about X so the recipe's Z points along Y, as
5194
+ * `recipes.build` turns its solids: `(x, y, z)` becomes `(x, z, -y)`.
5195
+ */
5196
+ adjustZtoY?: boolean | PipelineRef;
5197
+ };
5031
5198
  /**
5032
5199
  * Turns a solid into a list of triangles, each three points, the same form
5033
5200
  * `shapes.fromPolygonPoints` reads back.
@@ -5858,6 +6025,17 @@ export interface OperationParams {
5858
6025
  /** The shape to work on; it is not changed. */
5859
6026
  shape: unknown | PipelineRef;
5860
6027
  };
6028
+ /**
6029
+ * Describes every face and edge of a shape in one pass: each face's surface kind, area, centre,
6030
+ * outward normal and box, and each edge's curve kind, length, midpoint and direction there.
6031
+ *
6032
+ * The numbering and the measures are the selectors' own, so a kept description finds the same
6033
+ * face again after a rebuild.
6034
+ */
6035
+ "occt.analysis.signatures": {
6036
+ /** The shape to work on; it is not changed. */
6037
+ shape: unknown | PipelineRef;
6038
+ };
5861
6039
  /**
5862
6040
  * Finds the point of a face nearest each given point, with its (u, v) and the face's normal there.
5863
6041
  *
@@ -5902,10 +6080,10 @@ export interface OperationParams {
5902
6080
  * Builds an assembly document from a structure, or applies the structure to an existing
5903
6081
  * document.
5904
6082
  *
5905
- * With `existingDocument` the labels in `removals` are dropped first, the `partUpdates`
5906
- * applied, then the new parts and nodes added; a structure with neither clears the document
5907
- * unless `clearDocument` is false. `sourceDocuments` supplies the documents imported parts copy
5908
- * from. The document stays in memory until deleted.
6083
+ * With `existingDocument`, `removals` go first, then `partUpdates`, then new parts and nodes;
6084
+ * with neither, the document is cleared unless `clearDocument` is false. `sourceDocuments` feeds
6085
+ * imported parts; a placed root assembly goes under a top "Assembly". The document stays in
6086
+ * memory until deleted.
5909
6087
  */
5910
6088
  "occt.assembly.manager.buildAssemblyDocument": {
5911
6089
  /** The parts, nodes and updates to build, from `combineStructure`. */
@@ -6123,6 +6301,11 @@ export interface OperationParams {
6123
6301
  mergeFaces?: boolean | PipelineRef;
6124
6302
  /** When true, texture coordinates are written even for meshes without textures. */
6125
6303
  forceUVExport?: boolean | PipelineRef;
6304
+ /**
6305
+ * Which axis points up in the document. A z-up document is turned so that z becomes glTF's y;
6306
+ * a y-up one is written as it is.
6307
+ */
6308
+ up?: "y" | "z" | PipelineRef;
6126
6309
  /** The name the downloaded file gets; it should end in `.glb`. */
6127
6310
  fileName?: string | PipelineRef;
6128
6311
  /**
@@ -6166,6 +6349,11 @@ export interface OperationParams {
6166
6349
  mergeFaces?: boolean | PipelineRef;
6167
6350
  /** When true, texture coordinates are written even for meshes without textures. */
6168
6351
  forceUVExport?: boolean | PipelineRef;
6352
+ /**
6353
+ * Which axis points up in the document. A z-up document is turned so that z becomes glTF's y;
6354
+ * a y-up one is written as it is.
6355
+ */
6356
+ up?: "y" | "z" | PipelineRef;
6169
6357
  /** The name the downloaded file gets; it should end in `.glb`. */
6170
6358
  fileName?: string | PipelineRef;
6171
6359
  /**
@@ -6480,6 +6668,21 @@ export interface OperationParams {
6480
6668
  */
6481
6669
  keepEdges?: boolean | PipelineRef;
6482
6670
  };
6671
+ /**
6672
+ * Intersects shapes as `intersection` does, and reports what became of every shape's faces,
6673
+ * edges and vertices, in the order given, as indexes into the compound it returns.
6674
+ *
6675
+ * A shape that does not touch the first adds no piece and maps to nothing.
6676
+ */
6677
+ "occt.booleans.intersectionWithHistory": {
6678
+ /** The shapes; the first is intersected with every other one in turn. */
6679
+ shapes: unknown[] | PipelineRef;
6680
+ /**
6681
+ * When false, faces on one surface are merged and their seams removed; when true every edge
6682
+ * stays.
6683
+ */
6684
+ keepEdges?: boolean | PipelineRef;
6685
+ };
6483
6686
  /**
6484
6687
  * Finds where the surface of one shape crosses the surfaces of several others by triangulating
6485
6688
  * them all and intersecting the triangles, and returns the crossing lines as lists of points.
@@ -6881,6 +7084,131 @@ export interface OperationParams {
6881
7084
  /** The shapes to work on, in the order the results should come back. */
6882
7085
  shapes: unknown[] | PipelineRef;
6883
7086
  };
7087
+ /**
7088
+ * Builds the parts of a design document, with a configuration's values and then `parameters`
7089
+ * replacing the document's own.
7090
+ *
7091
+ * A document `validate` faults is refused. A failed feature is reported and what uses it
7092
+ * skipped; unchanged features are reused. `structure` exports the parts to STEP and glTF through
7093
+ * `assembly.manager.buildAssemblyDocument`; an assembly adds components and a bill of materials.
7094
+ */
7095
+ "occt.design.build": {
7096
+ /**
7097
+ * The document: a part document with its `parameters`, `features` and `parts`, or an assembly
7098
+ * document with its `components`.
7099
+ */
7100
+ document: unknown | PipelineRef;
7101
+ /**
7102
+ * The id of one of the document's `configurations`, whose values replace the parameters' own;
7103
+ * left out or empty, none is used.
7104
+ */
7105
+ configuration?: string | PipelineRef;
7106
+ /**
7107
+ * Values that replace the parameters of the same names after the configuration's, each read as
7108
+ * the parameter's own value is, such as `{ width: 40 }`.
7109
+ */
7110
+ parameters?: unknown | PipelineRef;
7111
+ /**
7112
+ * The contents of the document's `assets` by asset id, as text or bytes, for the features that
7113
+ * import them; each is checked against the SHA-256 the document records.
7114
+ */
7115
+ assets?: unknown | PipelineRef;
7116
+ /** The documents an assembly's components place, each with the `id` they name it by. */
7117
+ documents?: unknown[] | PipelineRef;
7118
+ /**
7119
+ * When a hinted reference loses its faces: `never` fails and offers the faces most like its hint
7120
+ * as repairs; `report` takes them, if they stand clear, and reports `rebound`.
7121
+ */
7122
+ rebind?: "never" | "report" | PipelineRef;
7123
+ /**
7124
+ * Outcomes the caller made for features the build lists as `pending`, such as scripts, or kept from an
7125
+ * earlier build, each under the hash of the feature it is for; the build takes them instead of
7126
+ * making those features.
7127
+ */
7128
+ outcomes?: unknown[] | PipelineRef;
7129
+ /**
7130
+ * Whether a part document's build also lists its `sketches`: each one's outline, the frame it was
7131
+ * drawn in and the command that drew each edge, for editors that draw and edit sketches.
7132
+ */
7133
+ sketches?: boolean | PipelineRef;
7134
+ };
7135
+ /**
7136
+ * Finds the placed parts of a design build that overlap, touch or come within `clearance` of each
7137
+ * other, such as a sleeve that runs into the arm it slides on.
7138
+ *
7139
+ * The document is built as `build` builds it and every part placement is checked against every
7140
+ * other in place. Two components a joint holds together are expected to touch, so a touch between
7141
+ * them is left out and an overlap is listed with `joined` true. A part document's parts are checked
7142
+ * where they were built.
7143
+ */
7144
+ "occt.design.clashes": {
7145
+ /**
7146
+ * The document: an assembly document with its `components`, or a part document whose parts are
7147
+ * checked where they were built.
7148
+ */
7149
+ document: unknown | PipelineRef;
7150
+ /** The documents an assembly's components place, each with the `id` they name it by. */
7151
+ documents?: unknown[] | PipelineRef;
7152
+ /**
7153
+ * The id of one of the document's `configurations`, whose values replace the parameters' own;
7154
+ * left out or empty, none is used.
7155
+ */
7156
+ configuration?: string | PipelineRef;
7157
+ /**
7158
+ * Values that replace the parameters of the same names after the configuration's, each read as
7159
+ * the parameter's own value is, such as `{ width: 40 }`.
7160
+ */
7161
+ parameters?: unknown | PipelineRef;
7162
+ /**
7163
+ * The contents of the document's `assets` by asset id, as text or bytes, for the features that
7164
+ * import them.
7165
+ */
7166
+ assets?: unknown | PipelineRef;
7167
+ /**
7168
+ * How close two placed parts may come before they clash; 0 reports only parts that touch or
7169
+ * overlap.
7170
+ */
7171
+ clearance?: number | PipelineRef;
7172
+ };
7173
+ /**
7174
+ * Checks a design document without building it and lists every problem found.
7175
+ *
7176
+ * Each problem carries the JSON pointer of the value it is about, such as `/features/2/radius`,
7177
+ * and a message. An assembly is checked with the `documents` it places, whose problems come
7178
+ * under their position, such as `/documents/2`. Undefined properties and bad expressions count.
7179
+ */
7180
+ "occt.design.validate": {
7181
+ /**
7182
+ * The document: a part document with its `parameters`, `features` and `parts`, or an assembly
7183
+ * document with its `components`.
7184
+ */
7185
+ document: unknown | PipelineRef;
7186
+ /**
7187
+ * The documents an assembly's components place, each with the `id` they name it by; their
7188
+ * problems are listed under their position, such as `/documents/2`.
7189
+ */
7190
+ documents?: unknown[] | PipelineRef;
7191
+ };
7192
+ /**
7193
+ * Works out the version of a design document, the value a component's `version` pins its source
7194
+ * with.
7195
+ *
7196
+ * The version is the SHA-256 of the document's canonical JSON (RFC 8785) without what only
7197
+ * editors and tools read, such as `meta` but its name, `extras`, labels, descriptions and
7198
+ * reference hints, so editing those keeps it.
7199
+ */
7200
+ "occt.design.versionOf": {
7201
+ /**
7202
+ * The document: a part document with its `parameters`, `features` and `parts`, or an assembly
7203
+ * document with its `components`.
7204
+ */
7205
+ document: unknown | PipelineRef;
7206
+ /**
7207
+ * The documents an assembly's components place, each with the `id` they name it by; their
7208
+ * problems are listed under their position, such as `/documents/2`.
7209
+ */
7210
+ documents?: unknown[] | PipelineRef;
7211
+ };
6884
7212
  /**
6885
7213
  * Draws a pin, a line from a start point to an end point with a text label at the end, for
6886
7214
  * pointing at a spot on a model and naming it.
@@ -7041,6 +7369,16 @@ export interface OperationParams {
7041
7369
  * with more triangles.
7042
7370
  */
7043
7371
  precision?: number | PipelineRef;
7372
+ /**
7373
+ * The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
7374
+ * follows curvature more closely with more triangles.
7375
+ */
7376
+ angularDeflection?: number | PipelineRef;
7377
+ /**
7378
+ * When true, `precision` is a fraction of each edge's and face's size instead of model units, so
7379
+ * small and large parts get triangles in proportion to their size.
7380
+ */
7381
+ relativeDeflection?: boolean | PipelineRef;
7044
7382
  /**
7045
7383
  * When true, the mesh is turned so this library's Y-up becomes Z-up, for tools that treat Z as
7046
7384
  * up.
@@ -7052,18 +7390,18 @@ export interface OperationParams {
7052
7390
  */
7053
7391
  computeMetadata?: boolean | PipelineRef;
7054
7392
  /**
7055
- * When true, the triangulation stays cached on the shapes; when false it is cleared afterwards
7056
- * so memory does not grow across calls.
7393
+ * When true, the triangulations stay on the shapes for the next mesh with the same settings to
7394
+ * reuse; when false they are cleared. A mesh retention budget keeps every mesh.
7057
7395
  */
7058
7396
  keepMeshData?: boolean | PipelineRef;
7059
7397
  /**
7060
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
7061
- * for.
7398
+ * When true, a face whose triangulation is not within 10% of the precision it needs is meshed
7399
+ * again; when false, a finer one is kept.
7062
7400
  */
7063
7401
  allowQualityDecrease?: boolean | PipelineRef;
7064
7402
  /**
7065
- * When true, every face is remeshed at the requested precision even when a triangulation is
7066
- * cached.
7403
+ * When true, every face is meshed at exactly the requested precision; when false, a face's
7404
+ * precision is raised to the average of its edges' and to twice its tolerance.
7067
7405
  */
7068
7406
  forceFaceDeflection?: boolean | PipelineRef;
7069
7407
  };
@@ -7082,6 +7420,16 @@ export interface OperationParams {
7082
7420
  * with more triangles.
7083
7421
  */
7084
7422
  precision?: number | PipelineRef;
7423
+ /**
7424
+ * The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
7425
+ * follows curvature more closely with more triangles.
7426
+ */
7427
+ angularDeflection?: number | PipelineRef;
7428
+ /**
7429
+ * When true, `precision` is a fraction of each edge's and face's size instead of model units, so
7430
+ * small and large parts get triangles in proportion to their size.
7431
+ */
7432
+ relativeDeflection?: boolean | PipelineRef;
7085
7433
  /**
7086
7434
  * When true, the meshes are turned so this library's Y-up becomes Z-up, for tools that treat Z
7087
7435
  * as up.
@@ -7093,18 +7441,18 @@ export interface OperationParams {
7093
7441
  */
7094
7442
  computeMetadata?: boolean | PipelineRef;
7095
7443
  /**
7096
- * When true, the triangulation stays cached on the shapes; when false it is cleared afterwards
7097
- * so memory does not grow across calls.
7444
+ * When true, the triangulations stay on the shapes for the next mesh with the same settings to
7445
+ * reuse; when false they are cleared. A mesh retention budget keeps every mesh.
7098
7446
  */
7099
7447
  keepMeshData?: boolean | PipelineRef;
7100
7448
  /**
7101
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
7102
- * for.
7449
+ * When true, a face whose triangulation is not within 10% of the precision it needs is meshed
7450
+ * again; when false, a finer one is kept.
7103
7451
  */
7104
7452
  allowQualityDecrease?: boolean | PipelineRef;
7105
7453
  /**
7106
- * When true, every face is remeshed at the requested precision even when a triangulation is
7107
- * cached.
7454
+ * When true, every face is meshed at exactly the requested precision; when false, a face's
7455
+ * precision is raised to the average of its edges' and to twice its tolerance.
7108
7456
  */
7109
7457
  forceFaceDeflection?: boolean | PipelineRef;
7110
7458
  };
@@ -7208,6 +7556,35 @@ export interface OperationParams {
7208
7556
  */
7209
7557
  untilFaceIndex?: number | PipelineRef;
7210
7558
  };
7559
+ /**
7560
+ * Grows a boss as `boss` does, and reports two histories: the base's, then the profile's, whose
7561
+ * `facesFromEdges` holds the side each profile edge swept and `lastFaces` the far end.
7562
+ *
7563
+ * A face the kernel leaves unreported is found from where it lies, and left out when it could
7564
+ * belong to more than one input.
7565
+ */
7566
+ "occt.features.bossWithHistory": {
7567
+ /** The base shape the feature is built on. */
7568
+ shape: unknown | PipelineRef;
7569
+ /** The face to sweep; it must lie on the face of the base that `sketchFaceIndex` names. */
7570
+ profile: unknown | PipelineRef;
7571
+ /** The face of the base the profile lies on, counted from 0 as `shapes.face.getFaces` lists them. */
7572
+ sketchFaceIndex?: number | PipelineRef;
7573
+ /** The direction the profile travels in: away from the base for a boss, into it for a pocket. */
7574
+ direction?: [number, number, number] | PipelineRef;
7575
+ /**
7576
+ * Where the feature stops: after `length`, at the face `untilFaceIndex` names, or once it has
7577
+ * passed through the whole base.
7578
+ */
7579
+ extent?: "length" | "untilFace" | "throughAll" | PipelineRef;
7580
+ /** How far the profile travels when `extent` is `length`, in model units. */
7581
+ length?: number | PipelineRef;
7582
+ /**
7583
+ * The face the feature stops at when `extent` is `untilFace`: one the profile meets on its way,
7584
+ * such as the underside of an overhang or a void's ceiling.
7585
+ */
7586
+ untilFaceIndex?: number | PipelineRef;
7587
+ };
7211
7588
  /**
7212
7589
  * Drills holes as `holes` does, each with a wider, flat-bottomed counterbore at its mouth that
7213
7590
  * sinks a screw head below the surface.
@@ -7243,6 +7620,40 @@ export interface OperationParams {
7243
7620
  */
7244
7621
  counterboreDepth?: number | PipelineRef;
7245
7622
  };
7623
+ /**
7624
+ * Drills holes as `counterboredHoles` does, and reports a history for the shape, then one per hole in the
7625
+ * order of `frames`.
7626
+ *
7627
+ * `histories[i + 1].faces.flat()` lists every face hole `i` left in the shape.
7628
+ */
7629
+ "occt.features.counterboredHolesWithHistory": {
7630
+ /** The shape to drill into. */
7631
+ shape: unknown | PipelineRef;
7632
+ /**
7633
+ * One hole per frame: the origin is where the hole enters and the normal points out of the
7634
+ * material, so the hole runs against it.
7635
+ */
7636
+ frames: unknown[] | PipelineRef;
7637
+ /** The diameter of each hole, in model units. */
7638
+ diameter?: number | PipelineRef;
7639
+ /**
7640
+ * How deep each hole goes from its entry, in model units, not counting a drill point; 0 drills
7641
+ * through the whole shape.
7642
+ */
7643
+ depth?: number | PipelineRef;
7644
+ /**
7645
+ * The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
7646
+ * bottom, and 118 is the point of a twist drill.
7647
+ */
7648
+ tipAngle?: number | PipelineRef;
7649
+ /** The diameter of the counterbore, in model units; it must be wider than `diameter`. */
7650
+ counterboreDiameter?: number | PipelineRef;
7651
+ /**
7652
+ * How deep the counterbore goes from the hole's entry, in model units; it must stay shallower
7653
+ * than a hole of a given `depth`.
7654
+ */
7655
+ counterboreDepth?: number | PipelineRef;
7656
+ };
7246
7657
  /**
7247
7658
  * Drills holes as `holes` does, each with a cone-shaped countersink at its mouth that sinks a
7248
7659
  * flat screw head flush with the surface.
@@ -7281,6 +7692,43 @@ export interface OperationParams {
7281
7692
  */
7282
7693
  countersinkAngle?: number | PipelineRef;
7283
7694
  };
7695
+ /**
7696
+ * Drills holes as `countersunkHoles` does, and reports a history for the shape, then one per hole in the
7697
+ * order of `frames`.
7698
+ *
7699
+ * `histories[i + 1].faces.flat()` lists every face hole `i` left in the shape.
7700
+ */
7701
+ "occt.features.countersunkHolesWithHistory": {
7702
+ /** The shape to drill into. */
7703
+ shape: unknown | PipelineRef;
7704
+ /**
7705
+ * One hole per frame: the origin is where the hole enters and the normal points out of the
7706
+ * material, so the hole runs against it.
7707
+ */
7708
+ frames: unknown[] | PipelineRef;
7709
+ /** The diameter of each hole, in model units. */
7710
+ diameter?: number | PipelineRef;
7711
+ /**
7712
+ * How deep each hole goes from its entry, in model units, not counting a drill point; 0 drills
7713
+ * through the whole shape.
7714
+ */
7715
+ depth?: number | PipelineRef;
7716
+ /**
7717
+ * The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
7718
+ * bottom, and 118 is the point of a twist drill.
7719
+ */
7720
+ tipAngle?: number | PipelineRef;
7721
+ /**
7722
+ * The diameter of the countersink where it meets the surface, in model units; it must be wider
7723
+ * than `diameter`.
7724
+ */
7725
+ countersinkDiameter?: number | PipelineRef;
7726
+ /**
7727
+ * The full angle of the countersink cone, in degrees, such as 90 or 82 for common flat head
7728
+ * screws.
7729
+ */
7730
+ countersinkAngle?: number | PipelineRef;
7731
+ };
7284
7732
  /**
7285
7733
  * Cuts a groove into a base: the part of the base's section on the left of a wire as it runs,
7286
7734
  * seen from the side the frame's normal points to, removed across the plane.
@@ -7335,19 +7783,75 @@ export interface OperationParams {
7335
7783
  */
7336
7784
  depth?: number | PipelineRef;
7337
7785
  /**
7338
- * The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
7339
- * bottom, and 118 is the point of a twist drill.
7786
+ * The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
7787
+ * bottom, and 118 is the point of a twist drill.
7788
+ */
7789
+ tipAngle?: number | PipelineRef;
7790
+ };
7791
+ /**
7792
+ * Drills holes as `holes` does, and reports a history for the shape, then one per hole in the
7793
+ * order of `frames`.
7794
+ *
7795
+ * `histories[i + 1].faces.flat()` lists every face hole `i` left in the shape.
7796
+ */
7797
+ "occt.features.holesWithHistory": {
7798
+ /** The shape to drill into. */
7799
+ shape: unknown | PipelineRef;
7800
+ /**
7801
+ * One hole per frame: the origin is where the hole enters and the normal points out of the
7802
+ * material, so the hole runs against it.
7803
+ */
7804
+ frames: unknown[] | PipelineRef;
7805
+ /** The diameter of each hole, in model units. */
7806
+ diameter?: number | PipelineRef;
7807
+ /**
7808
+ * How deep each hole goes from its entry, in model units, not counting a drill point; 0 drills
7809
+ * through the whole shape.
7810
+ */
7811
+ depth?: number | PipelineRef;
7812
+ /**
7813
+ * The full angle of the drill point at the bottom of a hole, in degrees: 0 leaves a flat
7814
+ * bottom, and 118 is the point of a twist drill.
7815
+ */
7816
+ tipAngle?: number | PipelineRef;
7817
+ };
7818
+ /**
7819
+ * Cuts a pocket into a base by sweeping a profile face that lies on one of its faces along
7820
+ * `direction`, which points into the base.
7821
+ *
7822
+ * `extent` stops it after `length`, at the face `untilFaceIndex` names, such as the ceiling of a
7823
+ * void or the far side of the base, or through all of it.
7824
+ */
7825
+ "occt.features.pocket": {
7826
+ /** The base shape the feature is built on. */
7827
+ shape: unknown | PipelineRef;
7828
+ /** The face to sweep; it must lie on the face of the base that `sketchFaceIndex` names. */
7829
+ profile: unknown | PipelineRef;
7830
+ /** The face of the base the profile lies on, counted from 0 as `shapes.face.getFaces` lists them. */
7831
+ sketchFaceIndex?: number | PipelineRef;
7832
+ /** The direction the profile travels in: away from the base for a boss, into it for a pocket. */
7833
+ direction?: [number, number, number] | PipelineRef;
7834
+ /**
7835
+ * Where the feature stops: after `length`, at the face `untilFaceIndex` names, or once it has
7836
+ * passed through the whole base.
7837
+ */
7838
+ extent?: "length" | "untilFace" | "throughAll" | PipelineRef;
7839
+ /** How far the profile travels when `extent` is `length`, in model units. */
7840
+ length?: number | PipelineRef;
7841
+ /**
7842
+ * The face the feature stops at when `extent` is `untilFace`: one the profile meets on its way,
7843
+ * such as the underside of an overhang or a void's ceiling.
7340
7844
  */
7341
- tipAngle?: number | PipelineRef;
7845
+ untilFaceIndex?: number | PipelineRef;
7342
7846
  };
7343
7847
  /**
7344
- * Cuts a pocket into a base by sweeping a profile face that lies on one of its faces along
7345
- * `direction`, which points into the base.
7848
+ * Cuts a pocket as `pocket` does, and reports two histories: the base's, then the profile's,
7849
+ * whose `facesFromEdges` holds the wall each profile edge swept and `lastFaces` the floor.
7346
7850
  *
7347
- * `extent` stops it after `length`, at the face `untilFaceIndex` names, such as the ceiling of a
7348
- * void or the far side of the base, or through all of it.
7851
+ * A face the kernel leaves unreported is found from where it lies, and left out when it could
7852
+ * belong to more than one input.
7349
7853
  */
7350
- "occt.features.pocket": {
7854
+ "occt.features.pocketWithHistory": {
7351
7855
  /** The base shape the feature is built on. */
7352
7856
  shape: unknown | PipelineRef;
7353
7857
  /** The face to sweep; it must lie on the face of the base that `sketchFaceIndex` names. */
@@ -7392,6 +7896,26 @@ export interface OperationParams {
7392
7896
  */
7393
7897
  distances?: number[] | PipelineRef;
7394
7898
  };
7899
+ /**
7900
+ * Moves faces as `pushPullFaces` does, and reports one history, the shape's: each face, edge and
7901
+ * vertex lists what it became, so a moved face is followed to where it went, curved ones too.
7902
+ */
7903
+ "occt.features.pushPullFacesWithHistory": {
7904
+ /** The shape whose faces move. */
7905
+ shape: unknown | PipelineRef;
7906
+ /** The faces to move, counted from 0 as `shapes.face.getFaces` lists them, each at most once. */
7907
+ indexes: number[] | PipelineRef;
7908
+ /**
7909
+ * How far every chosen face moves along its outward normal, in model units; a negative
7910
+ * distance moves it inward.
7911
+ */
7912
+ distance?: number | PipelineRef;
7913
+ /**
7914
+ * One distance per entry of `indexes`, in the same order, used instead of `distance`; left out,
7915
+ * every chosen face moves by `distance`.
7916
+ */
7917
+ distances?: number[] | PipelineRef;
7918
+ };
7395
7919
  /**
7396
7920
  * Removes faces from a solid and closes the gap by extending the faces around them, as when a
7397
7921
  * hole or a rounded edge is deleted from a part.
@@ -7405,6 +7929,16 @@ export interface OperationParams {
7405
7929
  /** The faces to remove, counted from 0 as `shapes.face.getFaces` lists them. */
7406
7930
  indexes: number[] | PipelineRef;
7407
7931
  };
7932
+ /**
7933
+ * Removes faces as `removeFaces` does, and reports one history, the shape's: a removed face's
7934
+ * `faces` entry is empty, and each face that stays lists the face it became, grown over the gap.
7935
+ */
7936
+ "occt.features.removeFacesWithHistory": {
7937
+ /** The shape to remove faces from; it must hold solids only. */
7938
+ shape: unknown | PipelineRef;
7939
+ /** The faces to remove, counted from 0 as `shapes.face.getFaces` lists them. */
7940
+ indexes: number[] | PipelineRef;
7941
+ };
7408
7942
  /**
7409
7943
  * Adds a ring to a base by turning a profile face about an axis, such as a collar round a shaft:
7410
7944
  * the profile lies on a face of the base, in a plane through the axis.
@@ -7755,9 +8289,9 @@ export interface OperationParams {
7755
8289
  /**
7756
8290
  * Rounds the corners of a flat wire or face with arcs of a given radius.
7757
8291
  *
7758
- * Without `indexes` every corner is rounded with `radius`. With `indexes`, counted from 1 along
7759
- * the outline, only those corners are rounded, each with `radius` or the matching entry of
7760
- * `radiusList`, as long as `indexes`. Wires with free-form edges use `fillet3DWire`.
8292
+ * Without `indexes` every corner is rounded with `radius`. With `indexes`, counted from 1, only
8293
+ * those corners are rounded, each with `radius` or the matching entry of `radiusList`, as long
8294
+ * as `indexes`. Straight corners stay; free-form wires use `fillet3DWire`.
7761
8295
  */
7762
8296
  "occt.fillets.fillet2d": {
7763
8297
  /** The shape whose edges, or whose corners for a flat wire or face, are rounded. */
@@ -8453,6 +8987,16 @@ export interface OperationParams {
8453
8987
  /** The BREP file's text, or a File or Blob that holds it. */
8454
8988
  brepData: unknown | PipelineRef;
8455
8989
  };
8990
+ /**
8991
+ * Reads a binary BREP file, the bytes `io.saveShapeBrepBinary` writes, back into the shape it
8992
+ * holds, with its faces and edges in the same order.
8993
+ *
8994
+ * The bytes are checked first: damaged ones, or ones not in version 4, are refused, saying where.
8995
+ */
8996
+ "occt.io.loadBrepBinary": {
8997
+ /** The binary BREP file's bytes, or a File or Blob that holds them. */
8998
+ brepData: unknown | PipelineRef;
8999
+ };
8456
9000
  /** Loads a STEP or IGES file into an OCCT shape. Pass file content as text (for .step/.stp/.iges/.igs) or ArrayBuffer (for .stpz/.igz). */
8457
9001
  "occt.io.loadSTEPorIGES": {
8458
9002
  /** File content: string for plain text files (.step, .stp, .iges, .igs), or base64-encoded ArrayBuffer for compressed files (.stpz, .igz). */
@@ -8516,6 +9060,11 @@ export interface OperationParams {
8516
9060
  * itself only returns the text.
8517
9061
  */
8518
9062
  tryDownload?: boolean | PipelineRef;
9063
+ /**
9064
+ * When true, the mesh a shape carries is written with it, so a shape read back draws without
9065
+ * meshing again; false writes only the exact geometry.
9066
+ */
9067
+ withTriangulation?: boolean | PipelineRef;
8519
9068
  };
8520
9069
  /**
8521
9070
  * Writes a shape as BREP, the text format that keeps its exact geometry and topology, and
@@ -8534,14 +9083,65 @@ export interface OperationParams {
8534
9083
  * itself only returns the text.
8535
9084
  */
8536
9085
  tryDownload?: boolean | PipelineRef;
9086
+ /**
9087
+ * When true, the mesh a shape carries is written with it, so a shape read back draws without
9088
+ * meshing again; false writes only the exact geometry.
9089
+ */
9090
+ withTriangulation?: boolean | PipelineRef;
9091
+ };
9092
+ /**
9093
+ * Writes a shape as binary BREP, the exact geometry and topology `saveShapeBrep` writes as text,
9094
+ * in bytes, and starts a browser download of the file.
9095
+ *
9096
+ * `io.loadBrepBinary` reads the file back into the same shape. `fileName` names the download and
9097
+ * `tryDownload` false skips it; `saveShapeBrepBinaryAndReturn` gives the bytes instead.
9098
+ */
9099
+ "occt.io.saveShapeBrepBinary": {
9100
+ /** The shape written to the file. */
9101
+ shape: unknown | PipelineRef;
9102
+ /** The name the downloaded file gets. */
9103
+ fileName?: string | PipelineRef;
9104
+ /**
9105
+ * When true, a browser download of the file is started where that is possible; the kernel
9106
+ * itself only returns the bytes.
9107
+ */
9108
+ tryDownload?: boolean | PipelineRef;
9109
+ /**
9110
+ * When true, the mesh a shape carries is written with it, so a shape read back draws without
9111
+ * meshing again; false writes only the exact geometry.
9112
+ */
9113
+ withTriangulation?: boolean | PipelineRef;
9114
+ };
9115
+ /**
9116
+ * Writes a shape as binary BREP, the exact geometry and topology `saveShapeBrep` writes as text,
9117
+ * in bytes, and returns them.
9118
+ *
9119
+ * `io.loadBrepBinary` reads them back with every face and edge at the same index.
9120
+ * `withTriangulation` false leaves out the mesh.
9121
+ */
9122
+ "occt.io.saveShapeBrepBinaryAndReturn": {
9123
+ /** The shape written to the file. */
9124
+ shape: unknown | PipelineRef;
9125
+ /** The name the downloaded file gets. */
9126
+ fileName?: string | PipelineRef;
9127
+ /**
9128
+ * When true, a browser download of the file is started where that is possible; the kernel
9129
+ * itself only returns the bytes.
9130
+ */
9131
+ tryDownload?: boolean | PipelineRef;
9132
+ /**
9133
+ * When true, the mesh a shape carries is written with it, so a shape read back draws without
9134
+ * meshing again; false writes only the exact geometry.
9135
+ */
9136
+ withTriangulation?: boolean | PipelineRef;
8537
9137
  };
8538
9138
  /**
8539
9139
  * Triangulates a shape, writes it as OBJ, the mesh format most 3D programs read, and starts a
8540
9140
  * browser download of the file.
8541
9141
  *
8542
- * `precision` is the meshing tolerance in model units and `adjustYtoZ` turns Y-up into Z-up. The
8543
- * file name may hold no spaces or slashes; `tryDownload` false skips the download, and
8544
- * `saveShapeObjAndReturn` gives the text instead.
9142
+ * `precision` is the meshing tolerance in model units and `adjustYtoZ` swaps Y and Z, which
9143
+ * mirrors the shape. The file name may hold no spaces or slashes; `tryDownload` false skips the
9144
+ * download, and `saveShapeObjAndReturn` gives the text instead.
8545
9145
  */
8546
9146
  "occt.io.saveShapeObj": {
8547
9147
  /** The shape written to the file. */
@@ -8556,7 +9156,10 @@ export interface OperationParams {
8556
9156
  * and makes a bigger file.
8557
9157
  */
8558
9158
  precision?: number | PipelineRef;
8559
- /** When true, the shape is turned so this library's Y-up becomes Z-up. */
9159
+ /**
9160
+ * When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
9161
+ * turn it 90 degrees about X with `transforms.rotate` instead.
9162
+ */
8560
9163
  adjustYtoZ?: boolean | PipelineRef;
8561
9164
  /**
8562
9165
  * When true, a browser download of the OBJ file and of any material library is started where
@@ -8568,9 +9171,9 @@ export interface OperationParams {
8568
9171
  * Triangulates a shape and writes it as OBJ, the mesh format most 3D programs read, returning
8569
9172
  * the file's text.
8570
9173
  *
8571
- * `precision` is the meshing tolerance in model units, `adjustYtoZ` turns Y-up into Z-up, and
8572
- * coordinates keep six decimals. `mtl` stays empty, since a shape carries no colors;
8573
- * `assembly.manager.exportDocumentToObj` writes colored parts.
9174
+ * `precision` is the meshing tolerance in model units, `adjustYtoZ` swaps Y and Z, which
9175
+ * mirrors the shape, and coordinates keep six decimals. `mtl` stays empty, since a shape
9176
+ * carries no colors; `assembly.manager.exportDocumentToObj` writes colored parts.
8574
9177
  */
8575
9178
  "occt.io.saveShapeObjAndReturn": {
8576
9179
  /** The shape written to the file. */
@@ -8585,7 +9188,10 @@ export interface OperationParams {
8585
9188
  * and makes a bigger file.
8586
9189
  */
8587
9190
  precision?: number | PipelineRef;
8588
- /** When true, the shape is turned so this library's Y-up becomes Z-up. */
9191
+ /**
9192
+ * When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
9193
+ * turn it 90 degrees about X with `transforms.rotate` instead.
9194
+ */
8589
9195
  adjustYtoZ?: boolean | PipelineRef;
8590
9196
  /**
8591
9197
  * When true, a browser download of the OBJ file and of any material library is started where
@@ -8597,9 +9203,9 @@ export interface OperationParams {
8597
9203
  * Triangulates a shape, writes it as ASCII PLY with a normal per vertex, and starts a browser
8598
9204
  * download of the file.
8599
9205
  *
8600
- * `precision` is the meshing tolerance in model units and `adjustYtoZ` turns Y-up into Z-up.
8601
- * `fileName` names the download and `tryDownload` false skips it; `saveShapePlyAndReturn` gives
8602
- * the text instead.
9206
+ * `precision` is the meshing tolerance in model units and `adjustYtoZ` swaps Y and Z, which
9207
+ * mirrors the shape. `fileName` names the download and `tryDownload` false skips it;
9208
+ * `saveShapePlyAndReturn` gives the text instead.
8603
9209
  */
8604
9210
  "occt.io.saveShapePly": {
8605
9211
  /** The shape written to the file. */
@@ -8611,7 +9217,10 @@ export interface OperationParams {
8611
9217
  * and makes a bigger file.
8612
9218
  */
8613
9219
  precision?: number | PipelineRef;
8614
- /** When true, the shape is turned so this library's Y-up becomes Z-up. */
9220
+ /**
9221
+ * When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
9222
+ * turn it 90 degrees about X with `transforms.rotate` instead.
9223
+ */
8615
9224
  adjustYtoZ?: boolean | PipelineRef;
8616
9225
  /**
8617
9226
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -8624,7 +9233,8 @@ export interface OperationParams {
8624
9233
  * scanning tools read, returning the file's text.
8625
9234
  *
8626
9235
  * Coordinates keep six significant digits, so past 1000 units they keep two decimals.
8627
- * `precision` is the meshing tolerance in model units and `adjustYtoZ` turns Y-up into Z-up.
9236
+ * `precision` is the meshing tolerance in model units and `adjustYtoZ` swaps Y and Z, which
9237
+ * mirrors the shape.
8628
9238
  */
8629
9239
  "occt.io.saveShapePlyAndReturn": {
8630
9240
  /** The shape written to the file. */
@@ -8636,7 +9246,10 @@ export interface OperationParams {
8636
9246
  * and makes a bigger file.
8637
9247
  */
8638
9248
  precision?: number | PipelineRef;
8639
- /** When true, the shape is turned so this library's Y-up becomes Z-up. */
9249
+ /**
9250
+ * When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
9251
+ * turn it 90 degrees about X with `transforms.rotate` instead.
9252
+ */
8640
9253
  adjustYtoZ?: boolean | PipelineRef;
8641
9254
  /**
8642
9255
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -8648,20 +9261,23 @@ export interface OperationParams {
8648
9261
  * Writes a shape as STEP, the standard exchange format for exact CAD geometry, and starts a
8649
9262
  * browser download of the file.
8650
9263
  *
8651
- * With `adjustYtoZ` true the shape is turned so this library's Y-up becomes STEP's Z-up;
8652
- * `fromRightHanded` skips the mirror that swap otherwise includes. `fileName` names the download
8653
- * and `tryDownload` false skips it. `saveShapeSTEPAndReturn` gives the file's text instead.
9264
+ * With `adjustYtoZ` true, Y and Z swap, which mirrors the shape; to keep it as built, turn it 90
9265
+ * degrees about X with `transforms.rotate` first. `fileName` names the download, `tryDownload`
9266
+ * false skips it, and `saveShapeSTEPAndReturn` gives the text instead.
8654
9267
  */
8655
9268
  "occt.io.saveShapeSTEP": {
8656
9269
  /** The shape written to the file. */
8657
9270
  shape: unknown | PipelineRef;
8658
9271
  /** The name the downloaded file gets; `.step` is appended when missing. */
8659
9272
  fileName?: string | PipelineRef;
8660
- /** When true, the shape is turned so this library's Y-up becomes STEP's Z-up. */
9273
+ /**
9274
+ * When true, Y and Z swap so Y-up becomes STEP's Z-up, which mirrors the shape. To keep it as
9275
+ * built, turn it 90 degrees about X with `transforms.rotate` instead.
9276
+ */
8661
9277
  adjustYtoZ?: boolean | PipelineRef;
8662
9278
  /**
8663
- * When true, the axis swap skips its mirror step, for shapes that were built in a right-handed
8664
- * system.
9279
+ * When true, the swap of `adjustYtoZ` becomes a turn of -90 degrees about X: the shape is not
9280
+ * mirrored but stands upside down in a Z-up tool.
8665
9281
  */
8666
9282
  fromRightHanded?: boolean | PipelineRef;
8667
9283
  /**
@@ -8674,20 +9290,23 @@ export interface OperationParams {
8674
9290
  * Writes a shape as STEP, the standard exchange format for exact CAD geometry, and returns the
8675
9291
  * file's text.
8676
9292
  *
8677
- * With `adjustYtoZ` true the shape is turned so this library's Y-up becomes STEP's Z-up;
8678
- * `fromRightHanded` skips the mirror that swap otherwise includes. `fileName` and `tryDownload`
8679
- * matter only where a browser download can be started.
9293
+ * With `adjustYtoZ` true, Y and Z swap so Y-up becomes STEP's Z-up, which mirrors the shape;
9294
+ * turn it 90 degrees about X with `transforms.rotate` first to keep it as built. `fileName` and
9295
+ * `tryDownload` matter only where a browser download can be started.
8680
9296
  */
8681
9297
  "occt.io.saveShapeSTEPAndReturn": {
8682
9298
  /** The shape written to the file. */
8683
9299
  shape: unknown | PipelineRef;
8684
9300
  /** The name the downloaded file gets; `.step` is appended when missing. */
8685
9301
  fileName?: string | PipelineRef;
8686
- /** When true, the shape is turned so this library's Y-up becomes STEP's Z-up. */
9302
+ /**
9303
+ * When true, Y and Z swap so Y-up becomes STEP's Z-up, which mirrors the shape. To keep it as
9304
+ * built, turn it 90 degrees about X with `transforms.rotate` instead.
9305
+ */
8687
9306
  adjustYtoZ?: boolean | PipelineRef;
8688
9307
  /**
8689
- * When true, the axis swap skips its mirror step, for shapes that were built in a right-handed
8690
- * system.
9308
+ * When true, the swap of `adjustYtoZ` becomes a turn of -90 degrees about X: the shape is not
9309
+ * mirrored but stands upside down in a Z-up tool.
8691
9310
  */
8692
9311
  fromRightHanded?: boolean | PipelineRef;
8693
9312
  /**
@@ -8700,9 +9319,9 @@ export interface OperationParams {
8700
9319
  * Triangulates a shape, writes it as STL, the mesh format 3D printers read, and starts a browser
8701
9320
  * download of the file.
8702
9321
  *
8703
- * `precision` is the meshing tolerance in model units, `adjustYtoZ` turns Y-up into Z-up and
8704
- * `binary` writes the smaller binary form. `fileName` names the download, `tryDownload` false
8705
- * skips it. `saveShapeStlAndReturn` gives the file instead.
9322
+ * `precision` is the meshing tolerance in model units, `adjustYtoZ` swaps Y and Z, which
9323
+ * mirrors the shape, and `binary` writes the smaller binary form. `fileName` names the
9324
+ * download, `tryDownload` false skips it. `saveShapeStlAndReturn` gives the file instead.
8706
9325
  */
8707
9326
  "occt.io.saveShapeStl": {
8708
9327
  /** The shape written to the file. */
@@ -8714,7 +9333,10 @@ export interface OperationParams {
8714
9333
  * and makes a bigger file.
8715
9334
  */
8716
9335
  precision?: number | PipelineRef;
8717
- /** When true, the shape is turned so this library's Y-up becomes Z-up. */
9336
+ /**
9337
+ * When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
9338
+ * turn it 90 degrees about X with `transforms.rotate` instead.
9339
+ */
8718
9340
  adjustYtoZ?: boolean | PipelineRef;
8719
9341
  /**
8720
9342
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -8732,8 +9354,8 @@ export interface OperationParams {
8732
9354
  * returning the file's text, or its bytes when `binary` is true.
8733
9355
  *
8734
9356
  * `precision` is the meshing tolerance in model units; smaller values follow curved surfaces
8735
- * more closely. `adjustYtoZ` turns Y-up into Z-up. `fileName` and `tryDownload` only matter
8736
- * where a download can start.
9357
+ * more closely. `adjustYtoZ` swaps Y and Z, which mirrors the shape. `fileName` and
9358
+ * `tryDownload` matter only for a download.
8737
9359
  */
8738
9360
  "occt.io.saveShapeStlAndReturn": {
8739
9361
  /** The shape written to the file. */
@@ -8745,7 +9367,10 @@ export interface OperationParams {
8745
9367
  * and makes a bigger file.
8746
9368
  */
8747
9369
  precision?: number | PipelineRef;
8748
- /** When true, the shape is turned so this library's Y-up becomes Z-up. */
9370
+ /**
9371
+ * When true, Y and Z swap so Y-up becomes Z-up, which mirrors the shape. To keep it as built,
9372
+ * turn it 90 degrees about X with `transforms.rotate` instead.
9373
+ */
8749
9374
  adjustYtoZ?: boolean | PipelineRef;
8750
9375
  /**
8751
9376
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -9141,6 +9766,66 @@ export interface OperationParams {
9141
9766
  */
9142
9767
  endVertex?: [number, number, number] | PipelineRef;
9143
9768
  };
9769
+ /**
9770
+ * Lofts as `loftAdvanced` does, and reports what each section in `shapes` became, as
9771
+ * `loftWithHistory` does: the sides along each section edge, and the caps at the start and end
9772
+ * of a solid.
9773
+ *
9774
+ * A `periodic` loft runs through curves resampled from the sections rather than the sections
9775
+ * themselves, so it has no history to report and is refused.
9776
+ */
9777
+ "occt.operations.loftAdvancedWithHistory": {
9778
+ /** The section wires, or edges, in the order the surface passes through them. */
9779
+ shapes: unknown[] | PipelineRef;
9780
+ /** When true, the loft is capped into a solid; the sections must be closed for that. */
9781
+ makeSolid?: boolean | PipelineRef;
9782
+ /** When true, the surface loops from the last section back to the first. */
9783
+ closed?: boolean | PipelineRef;
9784
+ /**
9785
+ * When true, the closed loop is made smooth across the seam by resampling the sections; needs
9786
+ * `closed`.
9787
+ */
9788
+ periodic?: boolean | PipelineRef;
9789
+ /**
9790
+ * When true, the patches between sections are ruled surfaces with straight lines instead of a
9791
+ * smooth blend.
9792
+ */
9793
+ straight?: boolean | PipelineRef;
9794
+ /** How many points each section is resampled into for a periodic loft. */
9795
+ nrPeriodicSections?: number | PipelineRef;
9796
+ /** When true, the kernel smooths the fitted surface. */
9797
+ useSmoothing?: boolean | PipelineRef;
9798
+ /** The highest polynomial degree the surface may use across the sections. */
9799
+ maxUDegree?: number | PipelineRef;
9800
+ /** How far the fitted surface may stray from the sections, in model units. */
9801
+ tolerance?: number | PipelineRef;
9802
+ /**
9803
+ * How the sections are parametrized before fitting: by chord length, centripetal, or
9804
+ * isoparametric; centripetal handles uneven sections best.
9805
+ */
9806
+ parType?: "approxChordLength" | "approxCentripetal" | "approxIsoParametric" | PipelineRef;
9807
+ /**
9808
+ * A point the loft closes to before the first section, making a pointed end; leave it out for
9809
+ * an open end.
9810
+ */
9811
+ startVertex?: [number, number, number] | PipelineRef;
9812
+ /**
9813
+ * A point the loft closes to after the last section, making a pointed end; leave it out for an
9814
+ * open end.
9815
+ */
9816
+ endVertex?: [number, number, number] | PipelineRef;
9817
+ };
9818
+ /**
9819
+ * Lofts as `loft` does, and reports one history per section: `facesFromEdges` holds the skin
9820
+ * along each section edge, the first section's `firstFaces` and the last's `lastFaces` the caps
9821
+ * of a solid.
9822
+ */
9823
+ "occt.operations.loftWithHistory": {
9824
+ /** The section wires, or edges, in the order the surface passes through them. */
9825
+ shapes: unknown[] | PipelineRef;
9826
+ /** When true, the loft is capped into a solid; the sections must be closed for that. */
9827
+ makeSolid?: boolean | PipelineRef;
9828
+ };
9144
9829
  /**
9145
9830
  * Hollows a solid into a shell of the given wall thickness by removing the listed faces and
9146
9831
  * offsetting the rest.
@@ -9179,6 +9864,41 @@ export interface OperationParams {
9179
9864
  /** When true, the internal edges the offset can leave on the walls are removed from the result. */
9180
9865
  removeIntEdges?: boolean | PipelineRef;
9181
9866
  };
9867
+ /**
9868
+ * Hollows a solid as `makeThickSolidByJoin` does, and reports what became of its faces: each
9869
+ * kept face stays (`faces`) and gains the inner wall offset from it (`facesFromFaces`), and each
9870
+ * removed face becomes the rim left where it was.
9871
+ */
9872
+ "occt.operations.makeThickSolidByJoinWithHistory": {
9873
+ /** The solid to hollow out. */
9874
+ shape: unknown | PipelineRef;
9875
+ /** The faces of the solid to remove, leaving the openings of the shell. */
9876
+ shapes: unknown[] | PipelineRef;
9877
+ /** The wall thickness in model units; negative grows the wall inward. */
9878
+ offset?: number | PipelineRef;
9879
+ /**
9880
+ * How close two points must be to count as the same when the offset walls are joined, in model
9881
+ * units.
9882
+ */
9883
+ tolerance?: number | PipelineRef;
9884
+ /**
9885
+ * When true, the offset faces are intersected with each other rather than joined by their
9886
+ * parallels; the kernel's default is false.
9887
+ */
9888
+ intersection?: boolean | PipelineRef;
9889
+ /**
9890
+ * Whether the kernel should look for self-intersections in the result; not implemented by the
9891
+ * kernel, so leave it false.
9892
+ */
9893
+ selfIntersection?: boolean | PipelineRef;
9894
+ /**
9895
+ * How the offset walls meet at corners: `arc` rounds them, `intersection` extends them to a
9896
+ * sharp corner, `tangent` keeps them tangent.
9897
+ */
9898
+ joinType?: "arc" | "intersection" | "tangent" | PipelineRef;
9899
+ /** When true, the internal edges the offset can leave on the walls are removed from the result. */
9900
+ removeIntEdges?: boolean | PipelineRef;
9901
+ };
9182
9902
  /**
9183
9903
  * Gives a face or shell a thickness, turning it into a solid slab or wall of the given
9184
9904
  * `offset`.
@@ -9196,6 +9916,20 @@ export interface OperationParams {
9196
9916
  */
9197
9917
  offset?: number | PipelineRef;
9198
9918
  };
9919
+ /**
9920
+ * Thickens a shape as `makeThickSolidSimple` does, and reports what became of its faces and
9921
+ * edges: each face stays where it was (`faces`) and gains its offset copy (`facesFromFaces`),
9922
+ * and each free edge raises the wall between the two (`facesFromEdges`).
9923
+ */
9924
+ "occt.operations.makeThickSolidSimpleWithHistory": {
9925
+ /** The face or shell to give a thickness to. */
9926
+ shape: unknown | PipelineRef;
9927
+ /**
9928
+ * The thickness in model units, along the surface normal for a positive value and the other way
9929
+ * for a negative one.
9930
+ */
9931
+ offset?: number | PipelineRef;
9932
+ };
9199
9933
  /**
9200
9934
  * Moves the boundary of a shape outward, or inward for a negative distance, by a fixed
9201
9935
  * distance: a wire grows into a parallel outline, a face or solid into a bigger one.
@@ -9282,12 +10016,11 @@ export interface OperationParams {
9282
10016
  shapes: unknown[] | PipelineRef;
9283
10017
  };
9284
10018
  /**
9285
- * Sweeps a regular polygon along a wire, giving a tube with `nrCorners` flat sides, for
9286
- * instance a hexagonal bar along a path.
10019
+ * Sweeps a regular polygon along a wire, giving a bar with `nrCorners` flat sides.
9287
10020
  *
9288
- * The polygon of `radius` is placed at the start of the wire, perpendicular to it. `makeSolid`
9289
- * gives a solid instead of a shell, `trihedronEnum` chooses how the profile turns along the
9290
- * path, and `forceApproxC1` smooths the result.
10021
+ * The polygon of `radius` starts perpendicular to the wire. `makeSolid` gives a solid instead of
10022
+ * a shell, `trihedronEnum` sets how the profile turns, and `forceApproxC1` smooths the result.
10023
+ * An invalid bar is refused; on a nearly straight path, use the discrete trihedron.
9291
10024
  */
9292
10025
  "occt.operations.pipePolylineWireNGon": {
9293
10026
  /** The path wire the tube follows. */
@@ -9309,9 +10042,9 @@ export interface OperationParams {
9309
10042
  /**
9310
10043
  * Sweeps a circle along a wire, giving a round tube of the given radius that follows the path.
9311
10044
  *
9312
- * The circle is placed at the start of the wire, perpendicular to it. `makeSolid` gives a solid
9313
- * instead of a shell, `trihedronEnum` chooses how the profile turns as it follows the path, and
9314
- * `forceApproxC1` smooths the result.
10045
+ * The circle starts perpendicular to the wire. `makeSolid` gives a solid instead of a shell,
10046
+ * `trihedronEnum` sets how the profile turns, and `forceApproxC1` smooths the result. An invalid
10047
+ * tube is refused; on a nearly straight path, use the discrete trihedron.
9315
10048
  */
9316
10049
  "occt.operations.pipeWireCylindrical": {
9317
10050
  /** The path wire the tube follows. */
@@ -9347,6 +10080,17 @@ export interface OperationParams {
9347
10080
  /** When true, a swept surface that came out with kinks is refitted to be smooth. */
9348
10081
  forceApproxC1?: boolean | PipelineRef;
9349
10082
  };
10083
+ /**
10084
+ * Sweeps profiles along a path as `pipe` does, and reports what each profile became, one
10085
+ * history per profile in the order given: `facesFromEdges` holds the side each profile edge
10086
+ * swept, `firstFaces` and `lastFaces` the caps at the two ends of the path.
10087
+ */
10088
+ "occt.operations.pipeWithHistory": {
10089
+ /** The main shape: the path wire for a pipe, the wire to extend when adding edges. */
10090
+ shape: unknown | PipelineRef;
10091
+ /** The other shapes: the profiles placed on the path, or the edges and wires to add. */
10092
+ shapes: unknown[] | PipelineRef;
10093
+ };
9350
10094
  /**
9351
10095
  * Sweeps a profile along a spine while scaling it, such as a tube that widens toward one end.
9352
10096
  *
@@ -9603,6 +10347,76 @@ export interface OperationParams {
9603
10347
  /** The point the scaled and flipped drawing is moved to. */
9604
10348
  origin?: [number, number, number] | PipelineRef;
9605
10349
  };
10350
+ /**
10351
+ * Builds each root of a recipe as a shape placed by its matrix, in root order.
10352
+ *
10353
+ * Shared steps are built once. A mesh keeps its triangles unless `facetedMeshes` is set or a
10354
+ * boolean needs it. A root that failed, or whose opening failed, throws naming the step; with
10355
+ * `emptyWhenFailed` it comes back empty, or cut by the openings built.
10356
+ */
10357
+ "occt.recipes.build": {
10358
+ /**
10359
+ * The recipe: steps such as polygons, extrusions and cuts, and the roots to build from them, as
10360
+ * a package that describes geometry as data writes it.
10361
+ */
10362
+ recipe: unknown | PipelineRef;
10363
+ /**
10364
+ * When true, each shape turns a quarter turn about X so the recipe's Z points along Y, which is
10365
+ * up when drawn: `(x, y, z)` becomes `(x, z, -y)`.
10366
+ */
10367
+ adjustZtoY?: boolean | PipelineRef;
10368
+ /**
10369
+ * When true, a root that cannot be built comes back as an empty compound and an opening that
10370
+ * cannot is left uncut; when false, either stops the build.
10371
+ */
10372
+ emptyWhenFailed?: boolean | PipelineRef;
10373
+ /**
10374
+ * When true, triangle meshes become faceted solids, flat faces that cut and fillet like any
10375
+ * shape; when false they keep their triangles, which draw, measure and export to STEP faster.
10376
+ */
10377
+ facetedMeshes?: boolean | PipelineRef;
10378
+ /**
10379
+ * The most triangles a mesh built as a faceted solid may hold; a larger one is not built and
10380
+ * counts as a step that failed.
10381
+ */
10382
+ maxTriangles?: number | PipelineRef;
10383
+ };
10384
+ /**
10385
+ * Builds the roots of a recipe into an assembly document, ready to export to STEP.
10386
+ *
10387
+ * Roots sharing the `groupBy` tag form one product named by its `name` tag, with its tags as
10388
+ * properties and its parts coloured by `rgba`. A step only moved and turned is one part placed
10389
+ * by each root. Failures are handled as in `build`.
10390
+ */
10391
+ "occt.recipes.buildDocument": {
10392
+ /**
10393
+ * The recipe: steps such as polygons, extrusions and cuts, and the roots to build from them, as
10394
+ * a package that describes geometry as data writes it.
10395
+ */
10396
+ recipe: unknown | PipelineRef;
10397
+ /** The name of the assembly at the top of the document, which holds every product. */
10398
+ name?: string | PipelineRef;
10399
+ /**
10400
+ * The tag whose value gathers roots into one product, such as the pieces of one element in
10401
+ * different colours. Roots without it are each a product of their own.
10402
+ */
10403
+ groupBy?: string | PipelineRef;
10404
+ /**
10405
+ * When true, a root that cannot be built is left out of the document and an opening that cannot
10406
+ * is left uncut; when false, either stops the build.
10407
+ */
10408
+ emptyWhenFailed?: boolean | PipelineRef;
10409
+ /**
10410
+ * When true, triangle meshes become faceted solids, flat faces that cut and fillet like any
10411
+ * shape; when false they keep their triangles, which draw, measure and export to STEP faster.
10412
+ */
10413
+ facetedMeshes?: boolean | PipelineRef;
10414
+ /**
10415
+ * The most triangles a mesh built as a faceted solid may hold; a larger one is not built and
10416
+ * counts as a step that failed.
10417
+ */
10418
+ maxTriangles?: number | PipelineRef;
10419
+ };
9606
10420
  /**
9607
10421
  * Chooses the straight edges that run within `angle` degrees of `direction`, either way along
9608
10422
  * it: an angle of 0 finds the edges parallel to it.
@@ -12797,8 +13611,11 @@ export interface OperationParams {
12797
13611
  otherShape: unknown | PipelineRef;
12798
13612
  };
12799
13613
  /**
12800
- * Returns the shape as it is; the internal-edge purge is not applied in this version, so the
12801
- * result is the input.
13614
+ * Removes the edges that lie inside a face without bounding it, such as the segment a split
13615
+ * leaves on a face, and rebuilds the faces around them.
13616
+ *
13617
+ * An edge that bounds any face of the shape stays, and a shape with nothing to remove comes
13618
+ * back as it was.
12802
13619
  */
12803
13620
  "occt.shapes.shape.purgeInternalEdges": {
12804
13621
  /** The shape to work on; it is not changed. */
@@ -13290,11 +14107,11 @@ export interface OperationParams {
13290
14107
  extrusionLengthBack?: number | PipelineRef;
13291
14108
  };
13292
14109
  /**
13293
- * Collects diagnostic facts about a solid: whether it is valid, how many faces and edges it
13294
- * has, its surface area and volume, and for every face the surface type, degrees, control point
13295
- * counts, bounds and area.
14110
+ * Collects diagnostic facts about a solid: how many faces and edges it has, its surface area and
14111
+ * volume, and for every face the surface type, degrees, control point counts, bounds and area.
13296
14112
  *
13297
- * An empty or null shape gives a report marked invalid with zero counts.
14113
+ * `valid` is false only for an empty or null shape, which gives zero counts; it does not check
14114
+ * the geometry, which `shapeFix.isValid` does.
13298
14115
  */
13299
14116
  "occt.shapes.solid.debugInfo": {
13300
14117
  /** The shape to work on; it is not changed. */
@@ -14584,13 +15401,19 @@ export interface OperationParams {
14584
15401
  * cusps and overshoot with uneven points, or `uniform`.
14585
15402
  */
14586
15403
  parametrization?: "uniform" | "chordLength" | "centripetal" | PipelineRef;
14587
- /** A direction the curve must leave the first point in; only for open curves. */
15404
+ /**
15405
+ * A direction the curve must leave the first point in, for open curves and with `endTangent` only.
15406
+ * Shorter than `tolerance`, such as `[0, 0, 0]`, it counts as not given.
15407
+ */
14588
15408
  startTangent?: [number, number, number] | PipelineRef;
14589
- /** A direction the curve must arrive at the last point in; only for open curves. */
15409
+ /**
15410
+ * A direction the curve must arrive at the last point in; only for open curves, and only together
15411
+ * with `startTangent`. A tangent shorter than `tolerance` counts as not given.
15412
+ */
14590
15413
  endTangent?: [number, number, number] | PipelineRef;
14591
15414
  /**
14592
- * One direction per point that the curve must follow there, with undefined entries left free;
14593
- * when given, the start and end tangents are ignored.
15415
+ * One direction per point that the curve must follow there, with undefined entries, and entries
15416
+ * shorter than `tolerance`, left free; when given, the start and end tangents are ignored.
14594
15417
  */
14595
15418
  tangents?: [number, number, number][] | PipelineRef;
14596
15419
  };
@@ -15085,6 +15908,16 @@ export interface OperationParams {
15085
15908
  * with more triangles.
15086
15909
  */
15087
15910
  precision?: number | PipelineRef;
15911
+ /**
15912
+ * The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
15913
+ * follows curvature more closely with more triangles.
15914
+ */
15915
+ angularDeflection?: number | PipelineRef;
15916
+ /**
15917
+ * When true, `precision` is a fraction of each edge's and face's size instead of model units, so
15918
+ * small and large parts get triangles in proportion to their size.
15919
+ */
15920
+ relativeDeflection?: boolean | PipelineRef;
15088
15921
  /**
15089
15922
  * When true, the meshes are turned so this library's Y-up becomes Z-up, for tools that treat Z
15090
15923
  * as up.
@@ -15096,18 +15929,18 @@ export interface OperationParams {
15096
15929
  */
15097
15930
  computeMetadata?: boolean | PipelineRef;
15098
15931
  /**
15099
- * When true, the triangulation stays cached on each shape; when false it is cleared afterwards
15100
- * so memory does not grow across calls.
15932
+ * When true, the triangulations stay on the shapes for the next mesh with the same settings to
15933
+ * reuse; when false they are cleared. A mesh retention budget keeps every mesh.
15101
15934
  */
15102
15935
  keepMeshData?: boolean | PipelineRef;
15103
15936
  /**
15104
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
15105
- * for.
15937
+ * When true, a face whose triangulation is not within 10% of the precision it needs is meshed
15938
+ * again; when false, a finer one is kept.
15106
15939
  */
15107
15940
  allowQualityDecrease?: boolean | PipelineRef;
15108
15941
  /**
15109
- * When true, every face is remeshed at the requested precision even when a triangulation is
15110
- * cached.
15942
+ * When true, every face is meshed at exactly the requested precision; when false, a face's
15943
+ * precision is raised to the average of its edges' and to twice its tolerance.
15111
15944
  */
15112
15945
  forceFaceDeflection?: boolean | PipelineRef;
15113
15946
  /**
@@ -15161,6 +15994,16 @@ export interface OperationParams {
15161
15994
  * with more triangles.
15162
15995
  */
15163
15996
  precision?: number | PipelineRef;
15997
+ /**
15998
+ * The largest angle, in radians, a curved face may turn between neighbouring triangles; smaller
15999
+ * follows curvature more closely with more triangles.
16000
+ */
16001
+ angularDeflection?: number | PipelineRef;
16002
+ /**
16003
+ * When true, `precision` is a fraction of each edge's and face's size instead of model units, so
16004
+ * small and large parts get triangles in proportion to their size.
16005
+ */
16006
+ relativeDeflection?: boolean | PipelineRef;
15164
16007
  /**
15165
16008
  * When true, the mesh is turned so this library's Y-up becomes Z-up, for tools that treat Z as
15166
16009
  * up.
@@ -15172,18 +16015,18 @@ export interface OperationParams {
15172
16015
  */
15173
16016
  computeMetadata?: boolean | PipelineRef;
15174
16017
  /**
15175
- * When true, the triangulation stays cached on the shape; when false it is cleared afterwards
15176
- * so memory does not grow across calls.
16018
+ * When true, the triangulation stays on the shape for the next mesh with the same settings to
16019
+ * reuse; when false it is cleared. A mesh retention budget keeps every mesh.
15177
16020
  */
15178
16021
  keepMeshData?: boolean | PipelineRef;
15179
16022
  /**
15180
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
15181
- * for.
16023
+ * When true, a face whose triangulation is not within 10% of the precision it needs is meshed
16024
+ * again; when false, a finer one is kept.
15182
16025
  */
15183
16026
  allowQualityDecrease?: boolean | PipelineRef;
15184
16027
  /**
15185
- * When true, every face is remeshed at the requested precision even when a triangulation is
15186
- * cached.
16028
+ * When true, every face is meshed at exactly the requested precision; when false, a face's
16029
+ * precision is raised to the average of its edges' and to twice its tolerance.
15187
16030
  */
15188
16031
  forceFaceDeflection?: boolean | PipelineRef;
15189
16032
  /**
@@ -16163,6 +17006,24 @@ export interface OperationParams {
16163
17006
  /** Sheet thickness; 0 auto-detects from face pairs */
16164
17007
  thicknessOverride?: number | PipelineRef;
16165
17008
  };
17009
+ /**
17010
+ * Lays out points along the circular arc through three points, from the first through the
17011
+ * second to the third.
17012
+ *
17013
+ * The arc is divided into `segments` equal steps between the given ends. Points on one line fix
17014
+ * no arc and come back as they are.
17015
+ * Example: [1,0,0], [0,1,0] and [-1,0,0] in 2 segments -> [[1,0,0], [0,1,0], [-1,0,0]]
17016
+ */
17017
+ "point.arcThroughThreePoints": {
17018
+ /** Where the arc starts. */
17019
+ start: [number, number, number] | PipelineRef;
17020
+ /** A point the arc passes through on its way, which decides the side it bulges to. */
17021
+ middle: [number, number, number] | PipelineRef;
17022
+ /** Where the arc ends. */
17023
+ end: [number, number, number] | PipelineRef;
17024
+ /** How many equal steps the arc is divided into; more steps follow the circle more closely. */
17025
+ segments?: number | PipelineRef;
17026
+ };
16166
17027
  /**
16167
17028
  * Finds the average of the points, which is their center of mass when they weigh the same.
16168
17029
  *
@@ -16726,6 +17587,28 @@ export interface OperationParams {
16726
17587
  /** Distance, in model units, below which two points count as the same. */
16727
17588
  tolerance?: number | PipelineRef;
16728
17589
  };
17590
+ /**
17591
+ * Measures the area a polyline encloses, read as a closed outline in its own plane.
17592
+ *
17593
+ * The polyline need not repeat its first point at its end. An outline that is not quite flat
17594
+ * gives the area of its outline seen along its normal.
17595
+ * Example: [[0,0,0], [4,0,0], [4,4,0], [0,4,0]] -> 16
17596
+ */
17597
+ "polyline.polygonArea": {
17598
+ /** The polyline object with its points. */
17599
+ polyline: unknown | PipelineRef;
17600
+ };
17601
+ /**
17602
+ * Finds the unit normal of the plane a polyline encloses, read as a closed outline.
17603
+ *
17604
+ * Newell's method makes it hold for an outline that is not convex or not quite flat. It points
17605
+ * the way the outline turns by the right-hand rule; an outline with no area gives undefined.
17606
+ * Example: [[0,0,0], [4,0,0], [4,4,0], [0,4,0]] -> [0, 0, 1]
17607
+ */
17608
+ "polyline.polygonNormal": {
17609
+ /** The polyline object with its points. */
17610
+ polyline: unknown | PipelineRef;
17611
+ };
16729
17612
  /**
16730
17613
  * Finds the points where the polyline crosses itself.
16731
17614
  *
@@ -17835,7 +18718,7 @@ export interface TypedChoiceStep {
17835
18718
  export type TypedPipelineAnyStep = TypedStep | TypedMapStep | TypedChoiceStep;
17836
18719
 
17837
18720
  /** Pipeline output format. */
17838
- export type TypedPipelineOutputFormat = "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf";
18721
+ export type TypedPipelineOutputFormat = "step" | "stpz" | "decomposed-mesh" | "gltf" | "json" | "csv" | "stl" | "3mf" | "brep" | "brep-binary";
17839
18722
 
17840
18723
  /** Output options for a typed pipeline. */
17841
18724
  export interface TypedPipelineOutputOptions {