@bitbybit-dev/cad-cloud-sdk 1.4.0 → 1.5.0-rc.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.0
3
+ // Generated from operation-catalog.json v1.5.0-rc.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"
@@ -886,6 +914,24 @@ export type OperationPath =
886
914
  | "occt.shapesToMeshes"
887
915
  | "occt.shapeToManifoldMesh"
888
916
  | "occt.shapeToMesh"
917
+ | "occt.sketch.commands.bulgeArc"
918
+ | "occt.sketch.commands.chamferCorner"
919
+ | "occt.sketch.commands.close"
920
+ | "occt.sketch.commands.cubic"
921
+ | "occt.sketch.commands.filletCorner"
922
+ | "occt.sketch.commands.hLine"
923
+ | "occt.sketch.commands.line"
924
+ | "occt.sketch.commands.polarLine"
925
+ | "occt.sketch.commands.quadratic"
926
+ | "occt.sketch.commands.sagittaArc"
927
+ | "occt.sketch.commands.tangentArc"
928
+ | "occt.sketch.commands.tangentLine"
929
+ | "occt.sketch.commands.threePointArc"
930
+ | "occt.sketch.commands.vLine"
931
+ | "occt.sketch.hull"
932
+ | "occt.sketch.pen"
933
+ | "occt.sketch.penWithSegments"
934
+ | "occt.sketch.stroke"
889
935
  | "occt.svg.loadSVG"
890
936
  | "occt.svg.loadSVGStructured"
891
937
  | "occt.transforms.align"
@@ -933,6 +979,7 @@ export type OperationPath =
933
979
  | "occtPro.sheetMetal.unfoldFaceToFlat"
934
980
  | "occtPro.sheetMetal.unfoldSolidReport"
935
981
  | "occtPro.sheetMetal.unfoldSolidToFlat"
982
+ | "point.arcThroughThreePoints"
936
983
  | "point.averagePoint"
937
984
  | "point.boundingBoxOfPoints"
938
985
  | "point.closestPointFromPoints"
@@ -971,6 +1018,8 @@ export type OperationPath =
971
1018
  | "polyline.getPoints"
972
1019
  | "polyline.length"
973
1020
  | "polyline.maxFilletsHalfLine"
1021
+ | "polyline.polygonArea"
1022
+ | "polyline.polygonNormal"
974
1023
  | "polyline.polylineSelfIntersection"
975
1024
  | "polyline.polylineToLines"
976
1025
  | "polyline.polylineToSegments"
@@ -3989,6 +4038,26 @@ export interface OperationParams {
3989
4038
  /** The cross-section to work on; it is not changed. */
3990
4039
  crossSection: unknown | PipelineRef;
3991
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
+ };
3992
4061
  /**
3993
4062
  * Moves the outline of a cross-section outward by `delta`, or inward for a negative delta, so
3994
4063
  * an outer contour grows and a hole shrinks.
@@ -4049,6 +4118,31 @@ export interface OperationParams {
4049
4118
  /** Points closer than this, in model units, to the line between their neighbors are dropped. */
4050
4119
  epsilon?: number | PipelineRef;
4051
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
+ };
4052
4146
  /**
4053
4147
  * Creates a circular cross-section of the given radius, centered on the origin and drawn with
4054
4148
  * `circularSegments` straight sides.
@@ -4161,14 +4255,19 @@ export interface OperationParams {
4161
4255
  * Turns a solid into plain mesh data, or a cross-section into its polygons, ready for drawing
4162
4256
  * or export.
4163
4257
  *
4164
- * `normalIdx` names the vertex property channel that holds normals, when the solid carries
4165
- * 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.
4166
4260
  */
4167
4261
  "manifold.decomposeManifoldOrCrossSection": {
4168
4262
  /** The solid or cross-section to turn into plain data. */
4169
4263
  manifoldOrCrossSection: unknown | PipelineRef;
4170
4264
  /** The property channel holding the normals of a solid, when it carries them. */
4171
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;
4172
4271
  };
4173
4272
  /**
4174
4273
  * Turns several solids into mesh data, or cross-sections into polygons, as
@@ -4181,6 +4280,11 @@ export interface OperationParams {
4181
4280
  manifoldsOrCrossSections: unknown[] | PipelineRef;
4182
4281
  /** One normal channel per shape, for the solids that carry normals. */
4183
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;
4184
4288
  };
4185
4289
  /**
4186
4290
  * Frees the memory a solid or a cross-section holds inside the kernel; the object cannot be
@@ -5010,6 +5114,87 @@ export interface OperationParams {
5010
5114
  /** The mesh data, as `manifoldToMesh` hands it out. */
5011
5115
  mesh: unknown | PipelineRef;
5012
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
+ };
5013
5198
  /**
5014
5199
  * Turns a solid into a list of triangles, each three points, the same form
5015
5200
  * `shapes.fromPolygonPoints` reads back.
@@ -5840,6 +6025,17 @@ export interface OperationParams {
5840
6025
  /** The shape to work on; it is not changed. */
5841
6026
  shape: unknown | PipelineRef;
5842
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
+ };
5843
6039
  /**
5844
6040
  * Finds the point of a face nearest each given point, with its (u, v) and the face's normal there.
5845
6041
  *
@@ -5884,10 +6080,10 @@ export interface OperationParams {
5884
6080
  * Builds an assembly document from a structure, or applies the structure to an existing
5885
6081
  * document.
5886
6082
  *
5887
- * With `existingDocument` the labels in `removals` are dropped first, the `partUpdates`
5888
- * applied, then the new parts and nodes added; a structure with neither clears the document
5889
- * unless `clearDocument` is false. `sourceDocuments` supplies the documents imported parts copy
5890
- * 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.
5891
6087
  */
5892
6088
  "occt.assembly.manager.buildAssemblyDocument": {
5893
6089
  /** The parts, nodes and updates to build, from `combineStructure`. */
@@ -6105,6 +6301,11 @@ export interface OperationParams {
6105
6301
  mergeFaces?: boolean | PipelineRef;
6106
6302
  /** When true, texture coordinates are written even for meshes without textures. */
6107
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;
6108
6309
  /** The name the downloaded file gets; it should end in `.glb`. */
6109
6310
  fileName?: string | PipelineRef;
6110
6311
  /**
@@ -6148,6 +6349,11 @@ export interface OperationParams {
6148
6349
  mergeFaces?: boolean | PipelineRef;
6149
6350
  /** When true, texture coordinates are written even for meshes without textures. */
6150
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;
6151
6357
  /** The name the downloaded file gets; it should end in `.glb`. */
6152
6358
  fileName?: string | PipelineRef;
6153
6359
  /**
@@ -6462,6 +6668,21 @@ export interface OperationParams {
6462
6668
  */
6463
6669
  keepEdges?: boolean | PipelineRef;
6464
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
+ };
6465
6686
  /**
6466
6687
  * Finds where the surface of one shape crosses the surfaces of several others by triangulating
6467
6688
  * them all and intersecting the triangles, and returns the crossing lines as lists of points.
@@ -6863,6 +7084,131 @@ export interface OperationParams {
6863
7084
  /** The shapes to work on, in the order the results should come back. */
6864
7085
  shapes: unknown[] | PipelineRef;
6865
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
+ };
6866
7212
  /**
6867
7213
  * Draws a pin, a line from a start point to an end point with a text label at the end, for
6868
7214
  * pointing at a spot on a model and naming it.
@@ -7023,6 +7369,16 @@ export interface OperationParams {
7023
7369
  * with more triangles.
7024
7370
  */
7025
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;
7026
7382
  /**
7027
7383
  * When true, the mesh is turned so this library's Y-up becomes Z-up, for tools that treat Z as
7028
7384
  * up.
@@ -7034,18 +7390,18 @@ export interface OperationParams {
7034
7390
  */
7035
7391
  computeMetadata?: boolean | PipelineRef;
7036
7392
  /**
7037
- * When true, the triangulation stays cached on the shapes; when false it is cleared afterwards
7038
- * 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.
7039
7395
  */
7040
7396
  keepMeshData?: boolean | PipelineRef;
7041
7397
  /**
7042
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
7043
- * 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.
7044
7400
  */
7045
7401
  allowQualityDecrease?: boolean | PipelineRef;
7046
7402
  /**
7047
- * When true, every face is remeshed at the requested precision even when a triangulation is
7048
- * 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.
7049
7405
  */
7050
7406
  forceFaceDeflection?: boolean | PipelineRef;
7051
7407
  };
@@ -7064,6 +7420,16 @@ export interface OperationParams {
7064
7420
  * with more triangles.
7065
7421
  */
7066
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;
7067
7433
  /**
7068
7434
  * When true, the meshes are turned so this library's Y-up becomes Z-up, for tools that treat Z
7069
7435
  * as up.
@@ -7075,18 +7441,18 @@ export interface OperationParams {
7075
7441
  */
7076
7442
  computeMetadata?: boolean | PipelineRef;
7077
7443
  /**
7078
- * When true, the triangulation stays cached on the shapes; when false it is cleared afterwards
7079
- * 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.
7080
7446
  */
7081
7447
  keepMeshData?: boolean | PipelineRef;
7082
7448
  /**
7083
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
7084
- * 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.
7085
7451
  */
7086
7452
  allowQualityDecrease?: boolean | PipelineRef;
7087
7453
  /**
7088
- * When true, every face is remeshed at the requested precision even when a triangulation is
7089
- * 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.
7090
7456
  */
7091
7457
  forceFaceDeflection?: boolean | PipelineRef;
7092
7458
  };
@@ -7190,6 +7556,35 @@ export interface OperationParams {
7190
7556
  */
7191
7557
  untilFaceIndex?: number | PipelineRef;
7192
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
+ };
7193
7588
  /**
7194
7589
  * Drills holes as `holes` does, each with a wider, flat-bottomed counterbore at its mouth that
7195
7590
  * sinks a screw head below the surface.
@@ -7225,6 +7620,40 @@ export interface OperationParams {
7225
7620
  */
7226
7621
  counterboreDepth?: number | PipelineRef;
7227
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
+ };
7228
7657
  /**
7229
7658
  * Drills holes as `holes` does, each with a cone-shaped countersink at its mouth that sinks a
7230
7659
  * flat screw head flush with the surface.
@@ -7263,6 +7692,43 @@ export interface OperationParams {
7263
7692
  */
7264
7693
  countersinkAngle?: number | PipelineRef;
7265
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
+ };
7266
7732
  /**
7267
7733
  * Cuts a groove into a base: the part of the base's section on the left of a wire as it runs,
7268
7734
  * seen from the side the frame's normal points to, removed across the plane.
@@ -7322,6 +7788,33 @@ export interface OperationParams {
7322
7788
  */
7323
7789
  tipAngle?: number | PipelineRef;
7324
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
+ };
7325
7818
  /**
7326
7819
  * Cuts a pocket into a base by sweeping a profile face that lies on one of its faces along
7327
7820
  * `direction`, which points into the base.
@@ -7351,6 +7844,35 @@ export interface OperationParams {
7351
7844
  */
7352
7845
  untilFaceIndex?: number | PipelineRef;
7353
7846
  };
7847
+ /**
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.
7850
+ *
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.
7853
+ */
7854
+ "occt.features.pocketWithHistory": {
7855
+ /** The base shape the feature is built on. */
7856
+ shape: unknown | PipelineRef;
7857
+ /** The face to sweep; it must lie on the face of the base that `sketchFaceIndex` names. */
7858
+ profile: unknown | PipelineRef;
7859
+ /** The face of the base the profile lies on, counted from 0 as `shapes.face.getFaces` lists them. */
7860
+ sketchFaceIndex?: number | PipelineRef;
7861
+ /** The direction the profile travels in: away from the base for a boss, into it for a pocket. */
7862
+ direction?: [number, number, number] | PipelineRef;
7863
+ /**
7864
+ * Where the feature stops: after `length`, at the face `untilFaceIndex` names, or once it has
7865
+ * passed through the whole base.
7866
+ */
7867
+ extent?: "length" | "untilFace" | "throughAll" | PipelineRef;
7868
+ /** How far the profile travels when `extent` is `length`, in model units. */
7869
+ length?: number | PipelineRef;
7870
+ /**
7871
+ * The face the feature stops at when `extent` is `untilFace`: one the profile meets on its way,
7872
+ * such as the underside of an overhang or a void's ceiling.
7873
+ */
7874
+ untilFaceIndex?: number | PipelineRef;
7875
+ };
7354
7876
  /**
7355
7877
  * Moves faces of a shape along their outward normals and stretches the faces around them to
7356
7878
  * follow, such as raising the top of a block.
@@ -7374,6 +7896,26 @@ export interface OperationParams {
7374
7896
  */
7375
7897
  distances?: number[] | PipelineRef;
7376
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
+ };
7377
7919
  /**
7378
7920
  * Removes faces from a solid and closes the gap by extending the faces around them, as when a
7379
7921
  * hole or a rounded edge is deleted from a part.
@@ -7387,6 +7929,16 @@ export interface OperationParams {
7387
7929
  /** The faces to remove, counted from 0 as `shapes.face.getFaces` lists them. */
7388
7930
  indexes: number[] | PipelineRef;
7389
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
+ };
7390
7942
  /**
7391
7943
  * Adds a ring to a base by turning a profile face about an axis, such as a collar round a shaft:
7392
7944
  * the profile lies on a face of the base, in a plane through the axis.
@@ -7737,9 +8289,9 @@ export interface OperationParams {
7737
8289
  /**
7738
8290
  * Rounds the corners of a flat wire or face with arcs of a given radius.
7739
8291
  *
7740
- * Without `indexes` every corner is rounded with `radius`. With `indexes`, counted from 1 along
7741
- * the outline, only those corners are rounded, each with `radius` or the matching entry of
7742
- * `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`.
7743
8295
  */
7744
8296
  "occt.fillets.fillet2d": {
7745
8297
  /** The shape whose edges, or whose corners for a flat wire or face, are rounded. */
@@ -8435,6 +8987,16 @@ export interface OperationParams {
8435
8987
  /** The BREP file's text, or a File or Blob that holds it. */
8436
8988
  brepData: unknown | PipelineRef;
8437
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
+ };
8438
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). */
8439
9001
  "occt.io.loadSTEPorIGES": {
8440
9002
  /** File content: string for plain text files (.step, .stp, .iges, .igs), or base64-encoded ArrayBuffer for compressed files (.stpz, .igz). */
@@ -8498,6 +9060,11 @@ export interface OperationParams {
8498
9060
  * itself only returns the text.
8499
9061
  */
8500
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;
8501
9068
  };
8502
9069
  /**
8503
9070
  * Writes a shape as BREP, the text format that keeps its exact geometry and topology, and
@@ -8516,14 +9083,65 @@ export interface OperationParams {
8516
9083
  * itself only returns the text.
8517
9084
  */
8518
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;
8519
9137
  };
8520
9138
  /**
8521
9139
  * Triangulates a shape, writes it as OBJ, the mesh format most 3D programs read, and starts a
8522
9140
  * browser download of the file.
8523
9141
  *
8524
- * `precision` is the meshing tolerance in model units and `adjustYtoZ` turns Y-up into Z-up. The
8525
- * file name may hold no spaces or slashes; `tryDownload` false skips the download, and
8526
- * `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.
8527
9145
  */
8528
9146
  "occt.io.saveShapeObj": {
8529
9147
  /** The shape written to the file. */
@@ -8538,7 +9156,10 @@ export interface OperationParams {
8538
9156
  * and makes a bigger file.
8539
9157
  */
8540
9158
  precision?: number | PipelineRef;
8541
- /** 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
+ */
8542
9163
  adjustYtoZ?: boolean | PipelineRef;
8543
9164
  /**
8544
9165
  * When true, a browser download of the OBJ file and of any material library is started where
@@ -8550,9 +9171,9 @@ export interface OperationParams {
8550
9171
  * Triangulates a shape and writes it as OBJ, the mesh format most 3D programs read, returning
8551
9172
  * the file's text.
8552
9173
  *
8553
- * `precision` is the meshing tolerance in model units, `adjustYtoZ` turns Y-up into Z-up, and
8554
- * coordinates keep six decimals. `mtl` stays empty, since a shape carries no colors;
8555
- * `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.
8556
9177
  */
8557
9178
  "occt.io.saveShapeObjAndReturn": {
8558
9179
  /** The shape written to the file. */
@@ -8567,7 +9188,10 @@ export interface OperationParams {
8567
9188
  * and makes a bigger file.
8568
9189
  */
8569
9190
  precision?: number | PipelineRef;
8570
- /** 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
+ */
8571
9195
  adjustYtoZ?: boolean | PipelineRef;
8572
9196
  /**
8573
9197
  * When true, a browser download of the OBJ file and of any material library is started where
@@ -8579,9 +9203,9 @@ export interface OperationParams {
8579
9203
  * Triangulates a shape, writes it as ASCII PLY with a normal per vertex, and starts a browser
8580
9204
  * download of the file.
8581
9205
  *
8582
- * `precision` is the meshing tolerance in model units and `adjustYtoZ` turns Y-up into Z-up.
8583
- * `fileName` names the download and `tryDownload` false skips it; `saveShapePlyAndReturn` gives
8584
- * 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.
8585
9209
  */
8586
9210
  "occt.io.saveShapePly": {
8587
9211
  /** The shape written to the file. */
@@ -8593,7 +9217,10 @@ export interface OperationParams {
8593
9217
  * and makes a bigger file.
8594
9218
  */
8595
9219
  precision?: number | PipelineRef;
8596
- /** 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
+ */
8597
9224
  adjustYtoZ?: boolean | PipelineRef;
8598
9225
  /**
8599
9226
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -8606,7 +9233,8 @@ export interface OperationParams {
8606
9233
  * scanning tools read, returning the file's text.
8607
9234
  *
8608
9235
  * Coordinates keep six significant digits, so past 1000 units they keep two decimals.
8609
- * `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.
8610
9238
  */
8611
9239
  "occt.io.saveShapePlyAndReturn": {
8612
9240
  /** The shape written to the file. */
@@ -8618,7 +9246,10 @@ export interface OperationParams {
8618
9246
  * and makes a bigger file.
8619
9247
  */
8620
9248
  precision?: number | PipelineRef;
8621
- /** 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
+ */
8622
9253
  adjustYtoZ?: boolean | PipelineRef;
8623
9254
  /**
8624
9255
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -8630,20 +9261,23 @@ export interface OperationParams {
8630
9261
  * Writes a shape as STEP, the standard exchange format for exact CAD geometry, and starts a
8631
9262
  * browser download of the file.
8632
9263
  *
8633
- * With `adjustYtoZ` true the shape is turned so this library's Y-up becomes STEP's Z-up;
8634
- * `fromRightHanded` skips the mirror that swap otherwise includes. `fileName` names the download
8635
- * 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.
8636
9267
  */
8637
9268
  "occt.io.saveShapeSTEP": {
8638
9269
  /** The shape written to the file. */
8639
9270
  shape: unknown | PipelineRef;
8640
9271
  /** The name the downloaded file gets; `.step` is appended when missing. */
8641
9272
  fileName?: string | PipelineRef;
8642
- /** 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
+ */
8643
9277
  adjustYtoZ?: boolean | PipelineRef;
8644
9278
  /**
8645
- * When true, the axis swap skips its mirror step, for shapes that were built in a right-handed
8646
- * 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.
8647
9281
  */
8648
9282
  fromRightHanded?: boolean | PipelineRef;
8649
9283
  /**
@@ -8656,20 +9290,23 @@ export interface OperationParams {
8656
9290
  * Writes a shape as STEP, the standard exchange format for exact CAD geometry, and returns the
8657
9291
  * file's text.
8658
9292
  *
8659
- * With `adjustYtoZ` true the shape is turned so this library's Y-up becomes STEP's Z-up;
8660
- * `fromRightHanded` skips the mirror that swap otherwise includes. `fileName` and `tryDownload`
8661
- * 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.
8662
9296
  */
8663
9297
  "occt.io.saveShapeSTEPAndReturn": {
8664
9298
  /** The shape written to the file. */
8665
9299
  shape: unknown | PipelineRef;
8666
9300
  /** The name the downloaded file gets; `.step` is appended when missing. */
8667
9301
  fileName?: string | PipelineRef;
8668
- /** 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
+ */
8669
9306
  adjustYtoZ?: boolean | PipelineRef;
8670
9307
  /**
8671
- * When true, the axis swap skips its mirror step, for shapes that were built in a right-handed
8672
- * 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.
8673
9310
  */
8674
9311
  fromRightHanded?: boolean | PipelineRef;
8675
9312
  /**
@@ -8682,9 +9319,9 @@ export interface OperationParams {
8682
9319
  * Triangulates a shape, writes it as STL, the mesh format 3D printers read, and starts a browser
8683
9320
  * download of the file.
8684
9321
  *
8685
- * `precision` is the meshing tolerance in model units, `adjustYtoZ` turns Y-up into Z-up and
8686
- * `binary` writes the smaller binary form. `fileName` names the download, `tryDownload` false
8687
- * 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.
8688
9325
  */
8689
9326
  "occt.io.saveShapeStl": {
8690
9327
  /** The shape written to the file. */
@@ -8696,7 +9333,10 @@ export interface OperationParams {
8696
9333
  * and makes a bigger file.
8697
9334
  */
8698
9335
  precision?: number | PipelineRef;
8699
- /** 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
+ */
8700
9340
  adjustYtoZ?: boolean | PipelineRef;
8701
9341
  /**
8702
9342
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -8714,8 +9354,8 @@ export interface OperationParams {
8714
9354
  * returning the file's text, or its bytes when `binary` is true.
8715
9355
  *
8716
9356
  * `precision` is the meshing tolerance in model units; smaller values follow curved surfaces
8717
- * more closely. `adjustYtoZ` turns Y-up into Z-up. `fileName` and `tryDownload` only matter
8718
- * 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.
8719
9359
  */
8720
9360
  "occt.io.saveShapeStlAndReturn": {
8721
9361
  /** The shape written to the file. */
@@ -8727,7 +9367,10 @@ export interface OperationParams {
8727
9367
  * and makes a bigger file.
8728
9368
  */
8729
9369
  precision?: number | PipelineRef;
8730
- /** 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
+ */
8731
9374
  adjustYtoZ?: boolean | PipelineRef;
8732
9375
  /**
8733
9376
  * When true, a browser download of the file is started where that is possible; the kernel
@@ -9045,44 +9688,93 @@ export interface OperationParams {
9045
9688
  */
9046
9689
  smoothEdges?: boolean | PipelineRef;
9047
9690
  /**
9048
- * When true, the edges that faces cover are collected in `hidden`; when false, `hidden` stays
9049
- * empty.
9691
+ * When true, the edges that faces cover are collected in `hidden`; when false, `hidden` stays
9692
+ * empty.
9693
+ */
9694
+ hiddenEdges?: boolean | PipelineRef;
9695
+ /**
9696
+ * How far the eye sits from the frame's origin along its normal for a perspective, in model
9697
+ * units; 0 draws a parallel view. A perspective needs `exact`.
9698
+ */
9699
+ focus?: number | PipelineRef;
9700
+ /**
9701
+ * The meshing tolerance in model units when `exact` is false; a smaller value follows curved
9702
+ * faces more closely.
9703
+ */
9704
+ precision?: number | PipelineRef;
9705
+ };
9706
+ /**
9707
+ * Builds a surface through a series of wires, like skin stretched over ribs: each wire is one
9708
+ * section and the surface passes through them in list order.
9709
+ *
9710
+ * Edges are accepted as single-edge wires. With `makeSolid` true and closed sections the result
9711
+ * is capped into a solid; otherwise it is a shell. Sections match up best with equal edge
9712
+ * counts.
9713
+ */
9714
+ "occt.operations.loft": {
9715
+ /** The section wires, or edges, in the order the surface passes through them. */
9716
+ shapes: unknown[] | PipelineRef;
9717
+ /** When true, the loft is capped into a solid; the sections must be closed for that. */
9718
+ makeSolid?: boolean | PipelineRef;
9719
+ };
9720
+ /**
9721
+ * Builds a surface through a series of wires like `loft`, with control over how the skin is
9722
+ * fitted.
9723
+ *
9724
+ * `straight` makes ruled patches between sections instead of a smooth blend; `closed` loops the
9725
+ * surface from the last section back to the first, and `periodic` makes that loop smooth by
9726
+ * resampling the sections. `startVertex` and `endVertex` close the ends to points.
9727
+ */
9728
+ "occt.operations.loftAdvanced": {
9729
+ /** The section wires, or edges, in the order the surface passes through them. */
9730
+ shapes: unknown[] | PipelineRef;
9731
+ /** When true, the loft is capped into a solid; the sections must be closed for that. */
9732
+ makeSolid?: boolean | PipelineRef;
9733
+ /** When true, the surface loops from the last section back to the first. */
9734
+ closed?: boolean | PipelineRef;
9735
+ /**
9736
+ * When true, the closed loop is made smooth across the seam by resampling the sections; needs
9737
+ * `closed`.
9738
+ */
9739
+ periodic?: boolean | PipelineRef;
9740
+ /**
9741
+ * When true, the patches between sections are ruled surfaces with straight lines instead of a
9742
+ * smooth blend.
9743
+ */
9744
+ straight?: boolean | PipelineRef;
9745
+ /** How many points each section is resampled into for a periodic loft. */
9746
+ nrPeriodicSections?: number | PipelineRef;
9747
+ /** When true, the kernel smooths the fitted surface. */
9748
+ useSmoothing?: boolean | PipelineRef;
9749
+ /** The highest polynomial degree the surface may use across the sections. */
9750
+ maxUDegree?: number | PipelineRef;
9751
+ /** How far the fitted surface may stray from the sections, in model units. */
9752
+ tolerance?: number | PipelineRef;
9753
+ /**
9754
+ * How the sections are parametrized before fitting: by chord length, centripetal, or
9755
+ * isoparametric; centripetal handles uneven sections best.
9050
9756
  */
9051
- hiddenEdges?: boolean | PipelineRef;
9757
+ parType?: "approxChordLength" | "approxCentripetal" | "approxIsoParametric" | PipelineRef;
9052
9758
  /**
9053
- * How far the eye sits from the frame's origin along its normal for a perspective, in model
9054
- * units; 0 draws a parallel view. A perspective needs `exact`.
9759
+ * A point the loft closes to before the first section, making a pointed end; leave it out for
9760
+ * an open end.
9055
9761
  */
9056
- focus?: number | PipelineRef;
9762
+ startVertex?: [number, number, number] | PipelineRef;
9057
9763
  /**
9058
- * The meshing tolerance in model units when `exact` is false; a smaller value follows curved
9059
- * faces more closely.
9764
+ * A point the loft closes to after the last section, making a pointed end; leave it out for an
9765
+ * open end.
9060
9766
  */
9061
- precision?: number | PipelineRef;
9062
- };
9063
- /**
9064
- * Builds a surface through a series of wires, like skin stretched over ribs: each wire is one
9065
- * section and the surface passes through them in list order.
9066
- *
9067
- * Edges are accepted as single-edge wires. With `makeSolid` true and closed sections the result
9068
- * is capped into a solid; otherwise it is a shell. Sections match up best with equal edge
9069
- * counts.
9070
- */
9071
- "occt.operations.loft": {
9072
- /** The section wires, or edges, in the order the surface passes through them. */
9073
- shapes: unknown[] | PipelineRef;
9074
- /** When true, the loft is capped into a solid; the sections must be closed for that. */
9075
- makeSolid?: boolean | PipelineRef;
9767
+ endVertex?: [number, number, number] | PipelineRef;
9076
9768
  };
9077
9769
  /**
9078
- * Builds a surface through a series of wires like `loft`, with control over how the skin is
9079
- * fitted.
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.
9080
9773
  *
9081
- * `straight` makes ruled patches between sections instead of a smooth blend; `closed` loops the
9082
- * surface from the last section back to the first, and `periodic` makes that loop smooth by
9083
- * resampling the sections. `startVertex` and `endVertex` close the ends to points.
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.
9084
9776
  */
9085
- "occt.operations.loftAdvanced": {
9777
+ "occt.operations.loftAdvancedWithHistory": {
9086
9778
  /** The section wires, or edges, in the order the surface passes through them. */
9087
9779
  shapes: unknown[] | PipelineRef;
9088
9780
  /** When true, the loft is capped into a solid; the sections must be closed for that. */
@@ -9123,6 +9815,17 @@ export interface OperationParams {
9123
9815
  */
9124
9816
  endVertex?: [number, number, number] | PipelineRef;
9125
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
+ };
9126
9829
  /**
9127
9830
  * Hollows a solid into a shell of the given wall thickness by removing the listed faces and
9128
9831
  * offsetting the rest.
@@ -9161,6 +9864,41 @@ export interface OperationParams {
9161
9864
  /** When true, the internal edges the offset can leave on the walls are removed from the result. */
9162
9865
  removeIntEdges?: boolean | PipelineRef;
9163
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
+ };
9164
9902
  /**
9165
9903
  * Gives a face or shell a thickness, turning it into a solid slab or wall of the given
9166
9904
  * `offset`.
@@ -9178,6 +9916,20 @@ export interface OperationParams {
9178
9916
  */
9179
9917
  offset?: number | PipelineRef;
9180
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
+ };
9181
9933
  /**
9182
9934
  * Moves the boundary of a shape outward, or inward for a negative distance, by a fixed
9183
9935
  * distance: a wire grows into a parallel outline, a face or solid into a bigger one.
@@ -9264,12 +10016,11 @@ export interface OperationParams {
9264
10016
  shapes: unknown[] | PipelineRef;
9265
10017
  };
9266
10018
  /**
9267
- * Sweeps a regular polygon along a wire, giving a tube with `nrCorners` flat sides, for
9268
- * instance a hexagonal bar along a path.
10019
+ * Sweeps a regular polygon along a wire, giving a bar with `nrCorners` flat sides.
9269
10020
  *
9270
- * The polygon of `radius` is placed at the start of the wire, perpendicular to it. `makeSolid`
9271
- * gives a solid instead of a shell, `trihedronEnum` chooses how the profile turns along the
9272
- * 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.
9273
10024
  */
9274
10025
  "occt.operations.pipePolylineWireNGon": {
9275
10026
  /** The path wire the tube follows. */
@@ -9291,9 +10042,9 @@ export interface OperationParams {
9291
10042
  /**
9292
10043
  * Sweeps a circle along a wire, giving a round tube of the given radius that follows the path.
9293
10044
  *
9294
- * The circle is placed at the start of the wire, perpendicular to it. `makeSolid` gives a solid
9295
- * instead of a shell, `trihedronEnum` chooses how the profile turns as it follows the path, and
9296
- * `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.
9297
10048
  */
9298
10049
  "occt.operations.pipeWireCylindrical": {
9299
10050
  /** The path wire the tube follows. */
@@ -9329,6 +10080,17 @@ export interface OperationParams {
9329
10080
  /** When true, a swept surface that came out with kinks is refitted to be smooth. */
9330
10081
  forceApproxC1?: boolean | PipelineRef;
9331
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
+ };
9332
10094
  /**
9333
10095
  * Sweeps a profile along a spine while scaling it, such as a tube that widens toward one end.
9334
10096
  *
@@ -9585,6 +10347,76 @@ export interface OperationParams {
9585
10347
  /** The point the scaled and flipped drawing is moved to. */
9586
10348
  origin?: [number, number, number] | PipelineRef;
9587
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
+ };
9588
10420
  /**
9589
10421
  * Chooses the straight edges that run within `angle` degrees of `direction`, either way along
9590
10422
  * it: an angle of 0 finds the edges parallel to it.
@@ -12779,8 +13611,11 @@ export interface OperationParams {
12779
13611
  otherShape: unknown | PipelineRef;
12780
13612
  };
12781
13613
  /**
12782
- * Returns the shape as it is; the internal-edge purge is not applied in this version, so the
12783
- * 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.
12784
13619
  */
12785
13620
  "occt.shapes.shape.purgeInternalEdges": {
12786
13621
  /** The shape to work on; it is not changed. */
@@ -13272,11 +14107,11 @@ export interface OperationParams {
13272
14107
  extrusionLengthBack?: number | PipelineRef;
13273
14108
  };
13274
14109
  /**
13275
- * Collects diagnostic facts about a solid: whether it is valid, how many faces and edges it
13276
- * has, its surface area and volume, and for every face the surface type, degrees, control point
13277
- * 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.
13278
14112
  *
13279
- * 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.
13280
14115
  */
13281
14116
  "occt.shapes.solid.debugInfo": {
13282
14117
  /** The shape to work on; it is not changed. */
@@ -14566,13 +15401,19 @@ export interface OperationParams {
14566
15401
  * cusps and overshoot with uneven points, or `uniform`.
14567
15402
  */
14568
15403
  parametrization?: "uniform" | "chordLength" | "centripetal" | PipelineRef;
14569
- /** 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
+ */
14570
15408
  startTangent?: [number, number, number] | PipelineRef;
14571
- /** 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
+ */
14572
15413
  endTangent?: [number, number, number] | PipelineRef;
14573
15414
  /**
14574
- * One direction per point that the curve must follow there, with undefined entries left free;
14575
- * 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.
14576
15417
  */
14577
15418
  tangents?: [number, number, number][] | PipelineRef;
14578
15419
  };
@@ -15067,6 +15908,16 @@ export interface OperationParams {
15067
15908
  * with more triangles.
15068
15909
  */
15069
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;
15070
15921
  /**
15071
15922
  * When true, the meshes are turned so this library's Y-up becomes Z-up, for tools that treat Z
15072
15923
  * as up.
@@ -15078,18 +15929,18 @@ export interface OperationParams {
15078
15929
  */
15079
15930
  computeMetadata?: boolean | PipelineRef;
15080
15931
  /**
15081
- * When true, the triangulation stays cached on each shape; when false it is cleared afterwards
15082
- * 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.
15083
15934
  */
15084
15935
  keepMeshData?: boolean | PipelineRef;
15085
15936
  /**
15086
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
15087
- * 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.
15088
15939
  */
15089
15940
  allowQualityDecrease?: boolean | PipelineRef;
15090
15941
  /**
15091
- * When true, every face is remeshed at the requested precision even when a triangulation is
15092
- * 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.
15093
15944
  */
15094
15945
  forceFaceDeflection?: boolean | PipelineRef;
15095
15946
  /**
@@ -15143,6 +15994,16 @@ export interface OperationParams {
15143
15994
  * with more triangles.
15144
15995
  */
15145
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;
15146
16007
  /**
15147
16008
  * When true, the mesh is turned so this library's Y-up becomes Z-up, for tools that treat Z as
15148
16009
  * up.
@@ -15154,18 +16015,18 @@ export interface OperationParams {
15154
16015
  */
15155
16016
  computeMetadata?: boolean | PipelineRef;
15156
16017
  /**
15157
- * When true, the triangulation stays cached on the shape; when false it is cleared afterwards
15158
- * 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.
15159
16020
  */
15160
16021
  keepMeshData?: boolean | PipelineRef;
15161
16022
  /**
15162
- * When true, a shape already meshed more finely may be remeshed at the coarser precision asked
15163
- * 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.
15164
16025
  */
15165
16026
  allowQualityDecrease?: boolean | PipelineRef;
15166
16027
  /**
15167
- * When true, every face is remeshed at the requested precision even when a triangulation is
15168
- * 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.
15169
16030
  */
15170
16031
  forceFaceDeflection?: boolean | PipelineRef;
15171
16032
  /**
@@ -15186,6 +16047,289 @@ export interface OperationParams {
15186
16047
  /** The pull direction the draft angles are measured against; read only by `draftAngle`. */
15187
16048
  draftDirection?: [number, number, number] | PipelineRef;
15188
16049
  };
16050
+ /**
16051
+ * Makes a command that draws a circular arc to a point, given by its bulge as DXF files write
16052
+ * arcs.
16053
+ *
16054
+ * `bulge` is the tangent of a quarter of the angle swept: positive turns counterclockwise, 1
16055
+ * draws a half circle and 0 is refused, being a straight line.
16056
+ */
16057
+ "occt.sketch.commands.bulgeArc": {
16058
+ /** Where the arc ends, in the sketch's x and y. */
16059
+ to?: [number, number] | PipelineRef;
16060
+ /**
16061
+ * The tangent of a quarter of the angle the arc sweeps: positive turns counterclockwise, 1 is a
16062
+ * half circle, and 0 would be a straight line.
16063
+ */
16064
+ bulge?: number | PipelineRef;
16065
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
16066
+ relative?: boolean | PipelineRef;
16067
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16068
+ id?: string | PipelineRef;
16069
+ };
16070
+ /**
16071
+ * Makes a command that bevels the corner between the segment before it and the segment after it,
16072
+ * cutting the same distance off each.
16073
+ *
16074
+ * `distance` is measured along each segment. Placed after `close`, it bevels the corner at the
16075
+ * start point; only lines and circular arcs take a corner.
16076
+ */
16077
+ "occt.sketch.commands.chamferCorner": {
16078
+ /** How much the bevel cuts off each segment, in model units, measured along the segment. */
16079
+ distance?: number | PipelineRef;
16080
+ /** A name for the command, reported with the segment it draws; leave it out to be named by position. */
16081
+ id?: string | PipelineRef;
16082
+ };
16083
+ /**
16084
+ * Makes a command that closes the outline with a straight segment back to the start point.
16085
+ *
16086
+ * Only corner commands may follow it. When the pen is already at the start point it draws
16087
+ * nothing and only closes the outline.
16088
+ */
16089
+ "occt.sketch.commands.close": {
16090
+ /** A name for the command, reported with the edge it draws; leave it out to be named by position. */
16091
+ id?: string | PipelineRef;
16092
+ };
16093
+ /**
16094
+ * Makes a command that draws a cubic Bezier curve to a point, shaped by two control points.
16095
+ *
16096
+ * The curve leaves toward `control1` and arrives from `control2`; with `relative` true all three
16097
+ * points are offsets from where the pen is.
16098
+ */
16099
+ "occt.sketch.commands.cubic": {
16100
+ /** The point the curve leaves toward, in the sketch's x and y. */
16101
+ control1?: [number, number] | PipelineRef;
16102
+ /** The point the curve arrives from, in the sketch's x and y. */
16103
+ control2?: [number, number] | PipelineRef;
16104
+ /** Where the curve ends, in the sketch's x and y. */
16105
+ to?: [number, number] | PipelineRef;
16106
+ /**
16107
+ * When true, the control points and `to` are offsets from where the pen is rather than points of
16108
+ * the sketch.
16109
+ */
16110
+ relative?: boolean | PipelineRef;
16111
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16112
+ id?: string | PipelineRef;
16113
+ };
16114
+ /**
16115
+ * Makes a command that rounds the corner between the segment before it and the segment after
16116
+ * it with an arc of a given radius.
16117
+ *
16118
+ * Placed after `close`, it rounds the corner at the start point. Only lines and circular arcs
16119
+ * take a corner, and a radius too large for them is refused.
16120
+ */
16121
+ "occt.sketch.commands.filletCorner": {
16122
+ /** The radius of the rounding arc, in model units. */
16123
+ radius?: number | PipelineRef;
16124
+ /** A name for the command, reported with the arc it draws; leave it out to be named by position. */
16125
+ id?: string | PipelineRef;
16126
+ };
16127
+ /**
16128
+ * Makes a command that draws a straight segment along the sketch's x axis.
16129
+ *
16130
+ * A negative `length` draws in the negative x direction.
16131
+ */
16132
+ "occt.sketch.commands.hLine": {
16133
+ /** How far to draw along the sketch's x axis, in model units; negative draws the other way. */
16134
+ length?: number | PipelineRef;
16135
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16136
+ id?: string | PipelineRef;
16137
+ };
16138
+ /**
16139
+ * Makes a command that draws a straight segment to a point.
16140
+ *
16141
+ * `to` is a point in the sketch's x and y, or an offset from where the pen is when `relative`
16142
+ * is true.
16143
+ */
16144
+ "occt.sketch.commands.line": {
16145
+ /** Where the segment ends, in the sketch's x and y. */
16146
+ to?: [number, number] | PipelineRef;
16147
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
16148
+ relative?: boolean | PipelineRef;
16149
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16150
+ id?: string | PipelineRef;
16151
+ };
16152
+ /**
16153
+ * Makes a command that draws a straight segment of a given length at an angle.
16154
+ *
16155
+ * `angle` is in degrees from the sketch's x axis, counterclockwise; a negative `length` draws
16156
+ * the opposite way.
16157
+ */
16158
+ "occt.sketch.commands.polarLine": {
16159
+ /** How far to draw, in model units; negative draws the opposite way. */
16160
+ length?: number | PipelineRef;
16161
+ /** The direction to draw in, in degrees from the sketch's x axis, counterclockwise. */
16162
+ angle?: number | PipelineRef;
16163
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16164
+ id?: string | PipelineRef;
16165
+ };
16166
+ /**
16167
+ * Makes a command that draws a quadratic Bezier curve to a point, pulled toward a control point.
16168
+ *
16169
+ * With `relative` true, `control` and `to` are offsets from where the pen is.
16170
+ */
16171
+ "occt.sketch.commands.quadratic": {
16172
+ /** The point the curve is pulled toward, in the sketch's x and y. */
16173
+ control?: [number, number] | PipelineRef;
16174
+ /** Where the curve ends, in the sketch's x and y. */
16175
+ to?: [number, number] | PipelineRef;
16176
+ /** When true, `control` and `to` are offsets from where the pen is rather than points of the sketch. */
16177
+ relative?: boolean | PipelineRef;
16178
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16179
+ id?: string | PipelineRef;
16180
+ };
16181
+ /**
16182
+ * Makes a command that draws a circular arc to a point, bowed out by a given distance.
16183
+ *
16184
+ * `sagitta` is how far the middle of the arc stands off the straight line to `to`: positive to
16185
+ * the left of the direction of travel, negative to the right.
16186
+ */
16187
+ "occt.sketch.commands.sagittaArc": {
16188
+ /** Where the arc ends, in the sketch's x and y. */
16189
+ to?: [number, number] | PipelineRef;
16190
+ /**
16191
+ * How far the arc's middle stands off the straight line between its ends, in model units:
16192
+ * positive to the left of travel, negative to the right.
16193
+ */
16194
+ sagitta?: number | PipelineRef;
16195
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
16196
+ relative?: boolean | PipelineRef;
16197
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16198
+ id?: string | PipelineRef;
16199
+ };
16200
+ /**
16201
+ * Makes a command that draws a circular arc to a point, leaving in the direction the previous
16202
+ * segment ended in.
16203
+ *
16204
+ * It needs a segment before it. The arc's radius follows from where it ends; an end straight
16205
+ * ahead is refused, as `tangentLine` draws that.
16206
+ */
16207
+ "occt.sketch.commands.tangentArc": {
16208
+ /** Where the arc ends, in the sketch's x and y. */
16209
+ to?: [number, number] | PipelineRef;
16210
+ /** When true, `to` is an offset from where the pen is rather than a point of the sketch. */
16211
+ relative?: boolean | PipelineRef;
16212
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16213
+ id?: string | PipelineRef;
16214
+ };
16215
+ /**
16216
+ * Makes a command that draws straight on in the direction the previous segment ended in.
16217
+ *
16218
+ * It needs a segment before it, and is how a straight run leaves an arc smoothly.
16219
+ */
16220
+ "occt.sketch.commands.tangentLine": {
16221
+ /** How far to carry on, in model units. */
16222
+ length?: number | PipelineRef;
16223
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16224
+ id?: string | PipelineRef;
16225
+ };
16226
+ /**
16227
+ * Makes a command that draws a circular arc through one point to another.
16228
+ *
16229
+ * The arc turns whichever way takes it from where the pen is through `through` to `to`; the
16230
+ * three points must not lie on one line.
16231
+ */
16232
+ "occt.sketch.commands.threePointArc": {
16233
+ /** A point the arc passes through between its ends, in the sketch's x and y. */
16234
+ through?: [number, number] | PipelineRef;
16235
+ /** Where the arc ends, in the sketch's x and y. */
16236
+ to?: [number, number] | PipelineRef;
16237
+ /** When true, `through` and `to` are offsets from where the pen is rather than points of the sketch. */
16238
+ relative?: boolean | PipelineRef;
16239
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16240
+ id?: string | PipelineRef;
16241
+ };
16242
+ /**
16243
+ * Makes a command that draws a straight segment along the sketch's y axis.
16244
+ *
16245
+ * A negative `length` draws in the negative y direction.
16246
+ */
16247
+ "occt.sketch.commands.vLine": {
16248
+ /** How far to draw along the sketch's y axis, in model units; negative draws the other way. */
16249
+ length?: number | PipelineRef;
16250
+ /** A name for the command, reported with the edges it draws; leave it out to be named by position. */
16251
+ id?: string | PipelineRef;
16252
+ };
16253
+ /**
16254
+ * Wraps vertices, straight edges and circular edges lying in a frame's plane in the tightest
16255
+ * convex outline around them.
16256
+ *
16257
+ * The outline is exact: straight where it spans between shapes, following a circle where a circle
16258
+ * or an arc bulges out. Other curves are refused, as are shapes off the frame's plane or circles
16259
+ * tilted out of it.
16260
+ */
16261
+ "occt.sketch.hull": {
16262
+ /** The vertices, edges and wires to wrap; their edges must be straight or circular. */
16263
+ shapes: unknown[] | PipelineRef;
16264
+ /** The frame whose plane the shapes lie in. Leave it out for the ground plane. */
16265
+ frame?: unknown | PipelineRef;
16266
+ /** When true, the hull becomes a face whose normal is the frame's normal. */
16267
+ makeFace?: boolean | PipelineRef;
16268
+ };
16269
+ /**
16270
+ * Draws an outline with a pen, from a start point through a list of moves, in a frame's plane.
16271
+ *
16272
+ * Each command draws on from where the previous one ended, and lines and arcs come out as exact
16273
+ * lines and circles. `makeFace` turns a closed outline into a face facing along the frame's
16274
+ * normal; one that crosses itself is refused.
16275
+ */
16276
+ "occt.sketch.pen": {
16277
+ /** The moves of the pen, drawn one after another from `start`. */
16278
+ commands: unknown[] | PipelineRef;
16279
+ /** Where the pen starts, in the sketch's x and y. */
16280
+ start?: [number, number] | PipelineRef;
16281
+ /**
16282
+ * The frame the sketch lies in, its direction the sketch's x axis and its normal out of the face.
16283
+ * Left out, the ground, with the sketch's y axis along -Z.
16284
+ */
16285
+ frame?: unknown | PipelineRef;
16286
+ /** When true, the closed outline becomes a face whose normal is the frame's normal. */
16287
+ makeFace?: boolean | PipelineRef;
16288
+ };
16289
+ /**
16290
+ * Draws an outline as `pen` does and reports which edges each command drew, so later steps can
16291
+ * find the edges and faces a command made by its `id`.
16292
+ *
16293
+ * Edges are numbered as `shapes.edge.getEdges` numbers them on the result. A command without an
16294
+ * `id` is named by its position, and a command that drew nothing is left out.
16295
+ */
16296
+ "occt.sketch.penWithSegments": {
16297
+ /** The moves of the pen, drawn one after another from `start`. */
16298
+ commands: unknown[] | PipelineRef;
16299
+ /** Where the pen starts, in the sketch's x and y. */
16300
+ start?: [number, number] | PipelineRef;
16301
+ /**
16302
+ * The frame the sketch lies in, its direction the sketch's x axis and its normal out of the face.
16303
+ * Left out, the ground, with the sketch's y axis along -Z.
16304
+ */
16305
+ frame?: unknown | PipelineRef;
16306
+ /** When true, the closed outline becomes a face whose normal is the frame's normal. */
16307
+ makeFace?: boolean | PipelineRef;
16308
+ };
16309
+ /**
16310
+ * Outlines a wire as if it were drawn with a pen of a given width, in a frame's plane.
16311
+ *
16312
+ * Half of `width` lies to each side; `cap` finishes an open wire's ends and `join` its corners.
16313
+ * A closed wire gives a ring: a face with one hole, or its two wires in a compound without
16314
+ * `makeFace`.
16315
+ */
16316
+ "occt.sketch.stroke": {
16317
+ /** The wire or edge to outline, lying in the frame's plane. */
16318
+ shape: unknown | PipelineRef;
16319
+ /** How wide the stroke is, in model units; it reaches half the width to each side. */
16320
+ width?: number | PipelineRef;
16321
+ /** How the two ends of an open wire are finished; a closed wire has no ends. */
16322
+ cap?: "flat" | "round" | "square" | PipelineRef;
16323
+ /**
16324
+ * How the outline goes around the wire's corners: `arc` rounds them, `intersection` keeps them
16325
+ * sharp, `tangent` continues each side tangentially.
16326
+ */
16327
+ join?: "arc" | "intersection" | "tangent" | PipelineRef;
16328
+ /** The frame whose plane the wire lies in. Leave it out for the ground plane. */
16329
+ frame?: unknown | PipelineRef;
16330
+ /** When true, the outline becomes a face; a closed wire gives a ring, a face with one hole. */
16331
+ makeFace?: boolean | PipelineRef;
16332
+ };
15189
16333
  /**
15190
16334
  * Parses an SVG document and builds every drawable element into one compound shape on the
15191
16335
  * ground plane, ready to draw, extrude or transform as a whole.
@@ -15862,6 +17006,24 @@ export interface OperationParams {
15862
17006
  /** Sheet thickness; 0 auto-detects from face pairs */
15863
17007
  thicknessOverride?: number | PipelineRef;
15864
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
+ };
15865
17027
  /**
15866
17028
  * Finds the average of the points, which is their center of mass when they weigh the same.
15867
17029
  *
@@ -16425,6 +17587,28 @@ export interface OperationParams {
16425
17587
  /** Distance, in model units, below which two points count as the same. */
16426
17588
  tolerance?: number | PipelineRef;
16427
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
+ };
16428
17612
  /**
16429
17613
  * Finds the points where the polyline crosses itself.
16430
17614
  *
@@ -17534,7 +18718,7 @@ export interface TypedChoiceStep {
17534
18718
  export type TypedPipelineAnyStep = TypedStep | TypedMapStep | TypedChoiceStep;
17535
18719
 
17536
18720
  /** Pipeline output format. */
17537
- 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";
17538
18722
 
17539
18723
  /** Output options for a typed pipeline. */
17540
18724
  export interface TypedPipelineOutputOptions {