brepjs 13.0.0 → 13.2.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.
Files changed (110) hide show
  1. package/dist/2d.cjs +3 -3
  2. package/dist/2d.js +3 -3
  3. package/dist/{arrayAccess-CccV7jov.js → arrayAccess-Dps31ERU.js} +3 -3
  4. package/dist/{arrayAccess-BF8Hm4-H.cjs → arrayAccess-peFKE9Ob.cjs} +3 -3
  5. package/dist/{blueprint-mSGgCL3V.js → blueprint-DYCdRlW5.js} +8 -8
  6. package/dist/{blueprint-BP3P8Ado.cjs → blueprint-PLJan-W5.cjs} +8 -8
  7. package/dist/{blueprintFns-BQ-MP_Vy.cjs → blueprintFns-Bsx25BG7.cjs} +3 -3
  8. package/dist/{blueprintFns-DWFkjbDT.js → blueprintFns-eWh7NpZx.js} +3 -3
  9. package/dist/{boolean2D-Cqfwz60G.js → boolean2D-52qVCooY.js} +10 -10
  10. package/dist/{boolean2D-D76Hc7Wx.cjs → boolean2D-CtB21ajK.cjs} +10 -10
  11. package/dist/{booleanFns-CYPXeNVN.cjs → booleanFns-BrptUFkP.cjs} +25 -13
  12. package/dist/{booleanFns-B79ALtKn.js → booleanFns-iM6UPb8e.js} +25 -13
  13. package/dist/brepjs.cjs +43 -311
  14. package/dist/brepjs.js +23 -306
  15. package/dist/core/errors.d.ts +7 -0
  16. package/dist/core/errors.d.ts.map +1 -1
  17. package/dist/core.cjs +3 -3
  18. package/dist/core.js +3 -3
  19. package/dist/{cornerFinder-BSwshSGB.js → cornerFinder-C7aDyYLJ.js} +2 -2
  20. package/dist/{cornerFinder-sg0JNgux.cjs → cornerFinder-SF-xmMO1.cjs} +2 -2
  21. package/dist/{curveFns-D_s3LdNT.js → curveFns-C-jU1_Y_.js} +2 -2
  22. package/dist/{curveFns-CJjkUGyW.cjs → curveFns-ywh7Ctyk.cjs} +2 -2
  23. package/dist/{drawFns-oyqai_HD.js → drawFns-D-0p86Lf.js} +13 -13
  24. package/dist/{drawFns-0CYuQn0J.cjs → drawFns-DknEB-Qs.cjs} +13 -13
  25. package/dist/{errors-B1fl3mAU.js → errors-B_T0aMQF.js} +7 -0
  26. package/dist/{errors-C85KVJr-.cjs → errors-DupKEMqI.cjs} +7 -0
  27. package/dist/{extrudeFns-0kBZvqJz.cjs → extrudeFns-CGCIbydL.cjs} +2 -2
  28. package/dist/{extrudeFns-lDvV4ir2.js → extrudeFns-LsH1rDMa.js} +2 -2
  29. package/dist/{faceFns-8BurpAGN.cjs → faceFns-8dGb8q3J.cjs} +2 -2
  30. package/dist/{faceFns-Bne5RIvn.js → faceFns-EnGcKFAr.js} +2 -2
  31. package/dist/{helpers-CxexSe1n.js → helpers-Rf0vhX6I.js} +6 -6
  32. package/dist/{helpers-D8DIMw2U.cjs → helpers-pQpV9Mwh.cjs} +6 -6
  33. package/dist/{historyFns-BTeasREV.js → historyFns-XkjLAQyu.js} +5 -5
  34. package/dist/{historyFns-BAzQr6EP.cjs → historyFns-lNalnOdR.cjs} +5 -5
  35. package/dist/{importFns-D__wN_Pq.cjs → importFns-BSH9cGIp.cjs} +36 -4
  36. package/dist/{importFns-clldr3EF.js → importFns-Bgs-FYAP.js} +31 -5
  37. package/dist/index.d.ts +8 -1
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/io/stepConfigFns.d.ts +27 -0
  40. package/dist/io/stepConfigFns.d.ts.map +1 -0
  41. package/dist/io.cjs +3 -2
  42. package/dist/io.d.ts +1 -0
  43. package/dist/io.d.ts.map +1 -1
  44. package/dist/io.js +3 -3
  45. package/dist/kernel/brepkit/booleanOps.d.ts +7 -1
  46. package/dist/kernel/brepkit/booleanOps.d.ts.map +1 -1
  47. package/dist/kernel/brepkit/brepkitAdapter.d.ts +5 -4
  48. package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +1 -1
  49. package/dist/kernel/brepkit/evolutionOps.d.ts +4 -4
  50. package/dist/kernel/brepkit/evolutionOps.d.ts.map +1 -1
  51. package/dist/kernel/interfaces/booleanOps.d.ts +3 -1
  52. package/dist/kernel/interfaces/booleanOps.d.ts.map +1 -1
  53. package/dist/kernel/interfaces/evolutionOps.d.ts +4 -4
  54. package/dist/kernel/interfaces/evolutionOps.d.ts.map +1 -1
  55. package/dist/kernel/occt/booleanOps.d.ts +7 -1
  56. package/dist/kernel/occt/booleanOps.d.ts.map +1 -1
  57. package/dist/kernel/occt/defaultAdapter.d.ts +5 -4
  58. package/dist/kernel/occt/defaultAdapter.d.ts.map +1 -1
  59. package/dist/kernel/occt/evolutionOps.d.ts +2 -2
  60. package/dist/kernel/occt/evolutionOps.d.ts.map +1 -1
  61. package/dist/kernel/occt/historyOps.d.ts +4 -4
  62. package/dist/kernel/occt/historyOps.d.ts.map +1 -1
  63. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts +4 -0
  64. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts.map +1 -1
  65. package/dist/kernel/types.d.ts +30 -0
  66. package/dist/kernel/types.d.ts.map +1 -1
  67. package/dist/{measureFns-DrMZGJ6r.cjs → measureFns-CFdHa_fj.cjs} +3 -3
  68. package/dist/{measureFns-C4WqH4OT.js → measureFns-D7J6qUY_.js} +3 -3
  69. package/dist/measurement.cjs +1 -1
  70. package/dist/measurement.js +1 -1
  71. package/dist/{meshFns-DvOM43vV.cjs → meshFns-2XnDXgIh.cjs} +3 -3
  72. package/dist/{meshFns--M5PTyHG.js → meshFns-B7uklc4M.js} +3 -3
  73. package/dist/operations.cjs +2 -2
  74. package/dist/operations.js +2 -2
  75. package/dist/{planeOps-DPintPbl.js → planeOps-BuBXTLBr.js} +1 -1
  76. package/dist/{planeOps-DdkIuVjk.cjs → planeOps-cTxDywpG.cjs} +1 -1
  77. package/dist/primitiveFns-CASk8g16.js +1452 -0
  78. package/dist/primitiveFns-DKtvEA0i.cjs +1817 -0
  79. package/dist/query.cjs +2 -2
  80. package/dist/query.js +2 -2
  81. package/dist/result.cjs +1 -1
  82. package/dist/result.js +1 -1
  83. package/dist/{shapeTypes-GmE4D5Q_.cjs → shapeTypes-CElaawp7.cjs} +114 -9
  84. package/dist/{shapeTypes-D38b_BKF.js → shapeTypes-CYb8Byqj.js} +114 -9
  85. package/dist/sketching.cjs +2 -2
  86. package/dist/sketching.js +2 -2
  87. package/dist/{solidBuilders-FaTmd_PS.js → solidBuilders-ClJxiUa3.js} +3 -3
  88. package/dist/{solidBuilders-BqU0oT2q.cjs → solidBuilders-Cs4XyL58.cjs} +3 -3
  89. package/dist/{surfaceBuilders-DiCVk_Un.js → surfaceBuilders-DnGdDW8i.js} +3 -3
  90. package/dist/{surfaceBuilders-BzDQQ4EG.cjs → surfaceBuilders-ZUTb3z6i.cjs} +3 -3
  91. package/dist/topology/booleanDiagnosticFns.d.ts +18 -0
  92. package/dist/topology/booleanDiagnosticFns.d.ts.map +1 -0
  93. package/dist/topology/booleanFns.d.ts.map +1 -1
  94. package/dist/topology/evolutionFns.d.ts +71 -0
  95. package/dist/topology/evolutionFns.d.ts.map +1 -0
  96. package/dist/topology/healingFns.d.ts +17 -0
  97. package/dist/topology/healingFns.d.ts.map +1 -1
  98. package/dist/topology/modifierFns.d.ts +15 -0
  99. package/dist/topology/modifierFns.d.ts.map +1 -1
  100. package/dist/topology/positionFns.d.ts +15 -0
  101. package/dist/topology/positionFns.d.ts.map +1 -0
  102. package/dist/topology.cjs +18 -6
  103. package/dist/topology.d.ts +6 -1
  104. package/dist/topology.d.ts.map +1 -1
  105. package/dist/topology.js +7 -7
  106. package/dist/vectors.cjs +1 -1
  107. package/dist/vectors.js +1 -1
  108. package/package.json +1 -1
  109. package/dist/primitiveFns-BXufrcii.cjs +0 -1063
  110. package/dist/primitiveFns-u3Bbdvlw.js +0 -806
package/dist/brepjs.js CHANGED
@@ -1,25 +1,25 @@
1
- import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, J as _usingCtx, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as supportsProjection, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as BrepkitAdapter, o as createFace, p as isFace, q as withScopeResultAsync, rt as supportsConstraintSketch, s as createShell, t as castShape, tt as withKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-D38b_BKF.js";
2
- import { A as or, B as unwrapOrElse, C as isErr, D as mapErr, E as mapBoth, F as tryCatch, I as tryCatchAsync, L as unwrap, M as pipeline, N as tap, O as match, P as tapErr, R as unwrapErr, S as fromNullable, T as map, V as zip, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, f as translateKernelError, g as all, h as OK, i as kernelError, j as orElse, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as collect, w as isOk, x as flatten, y as err, z as unwrapOr } from "./errors-B1fl3mAU.js";
1
+ import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, J as _usingCtx, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as supportsProjection, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as BrepkitAdapter, o as createFace, p as isFace, q as withScopeResultAsync, rt as supportsConstraintSketch, s as createShell, t as castShape, tt as withKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-CYb8Byqj.js";
2
+ import { A as or, B as unwrapOrElse, C as isErr, D as mapErr, E as mapBoth, F as tryCatch, I as tryCatchAsync, L as unwrap, M as pipeline, N as tap, O as match, P as tapErr, R as unwrapErr, S as fromNullable, T as map, V as zip, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, f as translateKernelError, g as all, h as OK, i as kernelError, j as orElse, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as collect, w as isOk, x as flatten, y as err, z as unwrapOr } from "./errors-B_T0aMQF.js";
3
3
  import { _ as DEG2RAD, a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate, v as HASH_CODE_MAX, y as RAD2DEG } from "./vecOps-B9-MTeC8.js";
4
4
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-Bb4KK_iG.js";
5
- import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-DPintPbl.js";
6
- import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-Bne5RIvn.js";
7
- import { A as tagFaces, B as invalidateShapeCache, C as colorShape, D as getFaceTags, E as findFacesByTag, F as getEdges, G as vertexPosition, H as iterFaces, I as getFaces, M as setShapeOrigin, N as describe$1, O as getTagMetadata, P as getBounds, R as getVertices, S as colorFaces, T as getShapeColor, U as iterVertices, V as iterEdges, W as iterWires, _ as transformCopy$1, a as getHashCode, b as propagateAllMetadata, c as isSameShape, d as applyMatrix$1, f as composeTransforms, g as scale$1, h as rotate$1, i as clone$1, j as getFaceOrigins, k as setTagMetadata, l as simplify$1, m as resize, n as getAtOrThrow, o as isEmpty$2, p as mirror$1, s as isEqualShape, t as firstOrThrow, u as toBREP$1, v as translate$1, w as getFaceColor, y as collectInputFaceHashes, z as getWires } from "./arrayAccess-CccV7jov.js";
8
- import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-D_s3LdNT.js";
9
- import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns--M5PTyHG.js";
10
- import { n as fill, r as makeFace } from "./surfaceBuilders-DiCVk_Un.js";
11
- import { a as intersect$1, c as slice$1, i as fuseAll, l as split$1, n as cutAll, o as section$1, r as fuse$1, s as sectionToFace$1, t as cut$1 } from "./booleanFns-B79ALtKn.js";
12
- import { A as healFace, B as chamferDistAngle, C as threePointArc, D as wireLoop, E as wire, F as edgesOfFace, H as toGroupedBufferGeometryData, I as facesOfEdge, L as sharedEdges, M as healWire, N as isValid$1, O as autoHeal, P as adjacentFaces, R as verticesOfEdge, S as tangentArc, T as vertex, U as toLineGeometryData, V as toBufferGeometryData, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, j as healSolid, k as heal$1, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as wiresOfFace } from "./primitiveFns-u3Bbdvlw.js";
13
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-BTeasREV.js";
14
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-Cqfwz60G.js";
15
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CxexSe1n.js";
16
- import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-oyqai_HD.js";
17
- import { r as makeCylinder } from "./solidBuilders-FaTmd_PS.js";
18
- import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-C4WqH4OT.js";
19
- import { t as cornerFinder } from "./cornerFinder-BSwshSGB.js";
20
- import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as revolve$1, o as supportExtrude, r as complexExtrude, s as sweep, t as extrude$1 } from "./extrudeFns-lDvV4ir2.js";
21
- import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-DWFkjbDT.js";
22
- import { a as importSVGPathD, c as exportDXF, d as exportOBJ, i as importSVG, l as exportGlb, n as importSTEP, o as exportThreeMF, r as importSTL, s as blueprintToDXF, t as importIGES, u as exportGltf } from "./importFns-clldr3EF.js";
5
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-BuBXTLBr.js";
6
+ import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-EnGcKFAr.js";
7
+ import { A as tagFaces, B as invalidateShapeCache, C as colorShape, D as getFaceTags, E as findFacesByTag, F as getEdges, G as vertexPosition, H as iterFaces, I as getFaces, M as setShapeOrigin, N as describe$1, O as getTagMetadata, P as getBounds, R as getVertices, S as colorFaces, T as getShapeColor, U as iterVertices, V as iterEdges, W as iterWires, _ as transformCopy$1, a as getHashCode, c as isSameShape, d as applyMatrix$1, f as composeTransforms, g as scale$1, h as rotate$1, i as clone$1, j as getFaceOrigins, k as setTagMetadata, l as simplify$1, m as resize, n as getAtOrThrow, o as isEmpty$2, p as mirror$1, s as isEqualShape, t as firstOrThrow, u as toBREP$1, v as translate$1, w as getFaceColor, z as getWires } from "./arrayAccess-Dps31ERU.js";
8
+ import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-C-jU1_Y_.js";
9
+ import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-B7uklc4M.js";
10
+ import { n as fill, r as makeFace } from "./surfaceBuilders-DnGdDW8i.js";
11
+ import { a as intersect$1, c as slice$1, i as fuseAll, l as split$1, n as cutAll, o as section$1, r as fuse$1, s as sectionToFace$1, t as cut$1 } from "./booleanFns-iM6UPb8e.js";
12
+ import { $ as edgesOfFace, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as adjacentFaces, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as toBufferGeometryData, b as sphere, c as cylinder, d as ellipsoid, et as facesOfEdge, f as face, g as offsetFace, h as line, i as bsplineApprox, it as chamferDistAngle, j as heal$1, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as verticesOfEdge, o as compound, ot as toGroupedBufferGeometryData, p as filledFace, q as filletWithEvolution, r as box, rt as wiresOfFace, s as cone, st as toLineGeometryData, t as addHoles, tt as sharedEdges, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-CASk8g16.js";
13
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-XkjLAQyu.js";
14
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-52qVCooY.js";
15
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Rf0vhX6I.js";
16
+ import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-D-0p86Lf.js";
17
+ import { r as makeCylinder } from "./solidBuilders-ClJxiUa3.js";
18
+ import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-D7J6qUY_.js";
19
+ import { t as cornerFinder } from "./cornerFinder-C7aDyYLJ.js";
20
+ import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as revolve$1, o as supportExtrude, r as complexExtrude, s as sweep, t as extrude$1 } from "./extrudeFns-LsH1rDMa.js";
21
+ import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-eWh7NpZx.js";
22
+ import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-Bgs-FYAP.js";
23
23
  import { a as createTaskQueue, c as isEmpty$1, d as isDisposeRequest, f as isErrorResponse, h as isSuccessResponse, i as createWorkerClient, l as pendingCount, m as isOperationRequest, n as createWorkerHandler, o as dequeueTask, p as isInitRequest, r as registerHandler, s as enqueueTask, t as createOperationRegistry, u as rejectAll } from "./workerHandler-BrOTzYRI.js";
24
24
  //#region src/core/kernelCall.ts
25
25
  var errorFactories = {
@@ -445,7 +445,7 @@ async function surfaceFromImage(blob, options = {}) {
445
445
  *
446
446
  * Computes the 3D convex hull of one or more shapes using QuickHull.
447
447
  */
448
- function validateNotNull$1(shape, label) {
448
+ function validateNotNull(shape, label) {
449
449
  if (getKernel().isNull(shape.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, `${label} is a null shape`));
450
450
  return ok(void 0);
451
451
  }
@@ -460,7 +460,7 @@ function validateNotNull$1(shape, label) {
460
460
  function hull(shapes, options = {}) {
461
461
  if (shapes.length === 0) return err(validationError(BrepErrorCode.HULL_EMPTY_INPUT, "hull: at least one shape is required", void 0, void 0, "Provide one or more shapes to compute a convex hull"));
462
462
  for (const [i, shape] of shapes.entries()) {
463
- const check = validateNotNull$1(shape, `hull: shapes[${i}]`);
463
+ const check = validateNotNull(shape, `hull: shapes[${i}]`);
464
464
  if (isErr(check)) return check;
465
465
  }
466
466
  const tolerance = options.tolerance ?? .1;
@@ -2088,289 +2088,6 @@ function resolve3D(s) {
2088
2088
  return resolve(s);
2089
2089
  }
2090
2090
  //#endregion
2091
- //#region src/topology/modifierFns.ts
2092
- /**
2093
- * Functional modifier operations — fillet, chamfer, shell, thicken, offset, draft.
2094
- *
2095
- * These are standalone functions that operate on branded shape types
2096
- * and return Result values.
2097
- */
2098
- function validateNotNull(shape, label) {
2099
- if (getKernel().isNull(shape.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, `${label} is a null shape`));
2100
- return ok(void 0);
2101
- }
2102
- /**
2103
- * Validate that a scalar or `[a, b]` pair is positive.
2104
- * Returns an Err Result on failure, `undefined` on success.
2105
- *
2106
- * Function-type values (per-edge callbacks) are intentionally skipped here --
2107
- * they are validated lazily in {@link resolveEdgeCallback} when each edge is processed.
2108
- */
2109
- function validatePositiveParam(value, msgs) {
2110
- if (typeof value === "number" && value <= 0) return err(validationError(msgs.code, msgs.scalar, void 0, void 0, msgs.scalarHint));
2111
- if (Array.isArray(value) && (value[0] <= 0 || value[1] <= 0)) return err(validationError(msgs.code, msgs.pair, void 0, void 0, msgs.pairHint));
2112
- }
2113
- /**
2114
- * When the user supplies a per-edge callback, pre-filter edges and build a
2115
- * hash-indexed lookup for the kernel. Returns `null` if no edges survive.
2116
- */
2117
- function resolveEdgeCallback(selectedEdges, callbackFn) {
2118
- const filteredEdges = [];
2119
- const hashToValue = /* @__PURE__ */ new Map();
2120
- for (const edge of selectedEdges) {
2121
- const val = callbackFn(edge) ?? 0;
2122
- if (typeof val === "number" && val <= 0) continue;
2123
- if (Array.isArray(val) && (val[0] <= 0 || val[1] <= 0)) continue;
2124
- filteredEdges.push(edge);
2125
- hashToValue.set(getKernel().hashCode(edge.wrapped, HASH_CODE_MAX), val);
2126
- }
2127
- if (filteredEdges.length === 0) return null;
2128
- const kernelParam = (ocEdge) => {
2129
- return hashToValue.get(ocEdge.HashCode(2147483647)) ?? 1;
2130
- };
2131
- return {
2132
- edges: filteredEdges,
2133
- kernelParam
2134
- };
2135
- }
2136
- /**
2137
- * Cast a kernel result to a Shape3D, propagate metadata, and wrap in `ok()`.
2138
- * Returns an error if the result is not a 3D shape.
2139
- */
2140
- function finalizeShape3D(evolution, resultShape, inputs, not3dCode, not3dMessage) {
2141
- const cast = castShape(resultShape);
2142
- if (!isShape3D(cast)) return err(kernelError(not3dCode, not3dMessage));
2143
- propagateAllMetadata(evolution, inputs, cast);
2144
- return ok(cast);
2145
- }
2146
- /**
2147
- * When the user supplies a per-face callback for draft angle, pre-filter
2148
- * faces and build a hash-indexed lookup for the kernel.
2149
- */
2150
- function resolveDraftCallback(faces, angle) {
2151
- if (typeof angle !== "function") return {
2152
- filteredFaces: [...faces],
2153
- kernelAngle: angle
2154
- };
2155
- const filteredFaces = [];
2156
- const hashToAngle = /* @__PURE__ */ new Map();
2157
- for (const face of faces) {
2158
- const a = angle(face);
2159
- if (a === null || a === 0 || Math.abs(a) >= 90) continue;
2160
- filteredFaces.push(face);
2161
- hashToAngle.set(getKernel().hashCode(face.wrapped, HASH_CODE_MAX), a);
2162
- }
2163
- const kernelAngle = (ocFace) => {
2164
- const a = hashToAngle.get(ocFace.HashCode(HASH_CODE_MAX));
2165
- if (a === void 0) throw new Error("draft: face hash not found — possible hash collision");
2166
- return a;
2167
- };
2168
- return {
2169
- filteredFaces,
2170
- kernelAngle
2171
- };
2172
- }
2173
- /**
2174
- * Thickens a surface (face or shell) into a solid by offsetting it.
2175
- *
2176
- * Takes a planar or non-planar surface shape and creates a solid
2177
- * by offsetting it by the given thickness. Positive thickness offsets
2178
- * along the surface normal; negative thickness offsets against it.
2179
- */
2180
- function thicken$1(shape, thickness) {
2181
- const check = validateNotNull(shape, "thicken: shape");
2182
- if (isErr(check)) return check;
2183
- try {
2184
- const inputFaceHashes = collectInputFaceHashes([shape]);
2185
- const { shape: resultShape, evolution } = getKernel().thickenWithHistory(shape.wrapped, thickness, inputFaceHashes, HASH_CODE_MAX);
2186
- const cast = castShape(resultShape);
2187
- propagateAllMetadata(evolution, [shape], cast);
2188
- return ok(cast);
2189
- } catch (e) {
2190
- return err(kernelError("THICKEN_FAILED", `Thicken operation failed: ${e instanceof Error ? e.message : String(e)}`, e));
2191
- }
2192
- }
2193
- /**
2194
- * Apply a fillet (rounded edge) to selected edges of a 3D shape.
2195
- *
2196
- * @param shape - The shape to modify.
2197
- * @param edges - Edges to fillet. Pass `undefined` to fillet all edges.
2198
- * @param radius - Constant radius, variable radius `[r1, r2]`, or per-edge callback.
2199
- */
2200
- function fillet$1(shape, edges, radius) {
2201
- const check = validateNotNull(shape, "fillet: shape");
2202
- if (isErr(check)) return check;
2203
- const paramErr = validatePositiveParam(radius, {
2204
- code: "INVALID_FILLET_RADIUS",
2205
- scalar: "Fillet radius must be positive",
2206
- pair: "Fillet radii must both be positive",
2207
- scalarHint: "Provide a positive radius value greater than 0",
2208
- pairHint: "Both radius values must be greater than 0"
2209
- });
2210
- if (paramErr) return paramErr;
2211
- const selectedEdges = edges ?? getEdges(shape);
2212
- if (selectedEdges.length === 0) return err(validationError(BrepErrorCode.FILLET_NO_EDGES, "No edges found for fillet", void 0, void 0, "Check that the shape has edges, or adjust your edge finder criteria"));
2213
- try {
2214
- let filteredEdges;
2215
- let kernelRadius;
2216
- if (typeof radius === "function") {
2217
- const resolved = resolveEdgeCallback(selectedEdges, radius);
2218
- if (!resolved) return err(validationError(BrepErrorCode.FILLET_NO_EDGES, "No edges with positive radius for fillet", void 0, void 0, "Check that the radius callback returns positive values"));
2219
- filteredEdges = resolved.edges;
2220
- kernelRadius = resolved.kernelParam;
2221
- } else {
2222
- filteredEdges = [...selectedEdges];
2223
- kernelRadius = radius;
2224
- }
2225
- const inputFaceHashes = collectInputFaceHashes([shape]);
2226
- const { shape: resultShape, evolution } = getKernel().filletWithHistory(shape.wrapped, filteredEdges.map((e) => e.wrapped), kernelRadius, inputFaceHashes, HASH_CODE_MAX);
2227
- return finalizeShape3D(evolution, resultShape, [shape], BrepErrorCode.FILLET_NOT_3D, "Fillet result is not a 3D shape");
2228
- } catch (e) {
2229
- return err(kernelError("FILLET_FAILED", `Fillet operation failed: ${e instanceof Error ? e.message : String(e)}`, e, {
2230
- operation: "fillet",
2231
- edgeCount: selectedEdges.length,
2232
- radius
2233
- }));
2234
- }
2235
- }
2236
- /**
2237
- * Apply a chamfer (beveled edge) to selected edges of a 3D shape.
2238
- *
2239
- * @param shape - The shape to modify.
2240
- * @param edges - Edges to chamfer. Pass `undefined` to chamfer all edges.
2241
- * @param distance - Symmetric distance, asymmetric `[d1, d2]`, or per-edge callback.
2242
- */
2243
- function chamfer$1(shape, edges, distance) {
2244
- const check = validateNotNull(shape, "chamfer: shape");
2245
- if (isErr(check)) return check;
2246
- const paramErr = validatePositiveParam(distance, {
2247
- code: "INVALID_CHAMFER_DISTANCE",
2248
- scalar: "Chamfer distance must be positive",
2249
- pair: "Chamfer distances must both be positive",
2250
- scalarHint: "Provide a positive distance value greater than 0",
2251
- pairHint: "Both distance values must be greater than 0"
2252
- });
2253
- if (paramErr) return paramErr;
2254
- const selectedEdges = edges ?? getEdges(shape);
2255
- if (selectedEdges.length === 0) return err(validationError(BrepErrorCode.CHAMFER_NO_EDGES, "No edges found for chamfer"));
2256
- try {
2257
- let filteredEdges;
2258
- let kernelDistance;
2259
- if (typeof distance === "function") {
2260
- const resolved = resolveEdgeCallback(selectedEdges, distance);
2261
- if (!resolved) return err(validationError(BrepErrorCode.CHAMFER_NO_EDGES, "No edges with positive distance for chamfer"));
2262
- filteredEdges = resolved.edges;
2263
- kernelDistance = resolved.kernelParam;
2264
- } else {
2265
- filteredEdges = [...selectedEdges];
2266
- kernelDistance = distance;
2267
- }
2268
- const inputFaceHashes = collectInputFaceHashes([shape]);
2269
- const { shape: resultShape, evolution } = getKernel().chamferWithHistory(shape.wrapped, filteredEdges.map((e) => e.wrapped), kernelDistance, inputFaceHashes, HASH_CODE_MAX);
2270
- return finalizeShape3D(evolution, resultShape, [shape], BrepErrorCode.CHAMFER_NOT_3D, "Chamfer result is not a 3D shape");
2271
- } catch (e) {
2272
- return err(kernelError("CHAMFER_FAILED", `Chamfer operation failed: ${e instanceof Error ? e.message : String(e)}`, e, {
2273
- operation: "chamfer",
2274
- edgeCount: selectedEdges.length,
2275
- distance
2276
- }));
2277
- }
2278
- }
2279
- /**
2280
- * Create a hollow shell by removing faces and offsetting remaining walls.
2281
- *
2282
- * @param shape - The solid to hollow out.
2283
- * @param faces - Faces to remove.
2284
- * @param thickness - Wall thickness.
2285
- * @param tolerance - Shell operation tolerance (default 1e-3).
2286
- */
2287
- function shell$1(shape, faces, thickness, tolerance = .001) {
2288
- const check = validateNotNull(shape, "shell: shape");
2289
- if (isErr(check)) return check;
2290
- if (thickness <= 0) return err(validationError("INVALID_THICKNESS", "Shell thickness must be positive"));
2291
- if (faces.length === 0) return err(validationError("NO_FACES", "At least one face must be specified for shell"));
2292
- try {
2293
- const inputFaceHashes = collectInputFaceHashes([shape]);
2294
- const { shape: resultShape, evolution } = getKernel().shellWithHistory(shape.wrapped, faces.map((f) => f.wrapped), thickness, inputFaceHashes, HASH_CODE_MAX, tolerance);
2295
- const cast = castShape(resultShape);
2296
- if (!isShape3D(cast)) return err(kernelError("SHELL_RESULT_NOT_3D", "Shell result is not a 3D shape"));
2297
- propagateAllMetadata(evolution, [shape], cast);
2298
- return ok(cast);
2299
- } catch (e) {
2300
- return err(kernelError("SHELL_FAILED", `Shell operation failed: ${e instanceof Error ? e.message : String(e)}`, e, {
2301
- operation: "shell",
2302
- faceCount: faces.length,
2303
- thickness
2304
- }));
2305
- }
2306
- }
2307
- /**
2308
- * Offset all faces of a shape by a given distance.
2309
- *
2310
- * @param shape - The shape to offset (must be a 3D shape with faces).
2311
- * @param distance - Offset distance (positive = outward, negative = inward).
2312
- * @param tolerance - Offset tolerance (default 1e-6).
2313
- */
2314
- function offset$1(shape, distance, tolerance = 1e-6) {
2315
- const check = validateNotNull(shape, "offset: shape");
2316
- if (isErr(check)) return check;
2317
- if (distance === 0) return err(validationError("ZERO_OFFSET", "Offset distance cannot be zero"));
2318
- try {
2319
- const inputFaceHashes = collectInputFaceHashes([shape]);
2320
- const { shape: resultShape, evolution } = getKernel().offsetWithHistory(shape.wrapped, distance, inputFaceHashes, HASH_CODE_MAX, tolerance);
2321
- const cast = castShape(resultShape);
2322
- if (!isShape3D(cast)) return err(kernelError("OFFSET_RESULT_NOT_3D", "Offset result is not a 3D shape"));
2323
- propagateAllMetadata(evolution, [shape], cast);
2324
- return ok(cast);
2325
- } catch (e) {
2326
- return err(kernelError("OFFSET_FAILED", `Offset operation failed: ${e instanceof Error ? e.message : String(e)}`, e));
2327
- }
2328
- }
2329
- /**
2330
- * Apply a draft (taper) to selected faces of a 3D shape.
2331
- *
2332
- * Draft tilts faces by a specified angle relative to a pull direction,
2333
- * pivoting about a neutral plane. This is essential for injection molding
2334
- * and casting workflows where parts must release from a mold.
2335
- *
2336
- * @param shape - The solid to modify.
2337
- * @param faces - Faces to draft.
2338
- * @param pullDirection - Mold opening direction vector.
2339
- * @param neutralPlane - A point on the plane where faces are not displaced.
2340
- * @param angle - Constant angle in degrees, or per-face callback returning degrees (null to skip).
2341
- */
2342
- function draft$1(shape, faces, pullDirection, neutralPlane, angle) {
2343
- const check = validateNotNull(shape, "draft: shape");
2344
- if (isErr(check)) return check;
2345
- if (typeof angle === "number") {
2346
- if (angle === 0) return err(validationError(BrepErrorCode.DRAFT_INVALID_ANGLE, "Draft angle cannot be zero", void 0, void 0, "Provide a non-zero angle in degrees"));
2347
- if (Math.abs(angle) >= 90) return err(validationError(BrepErrorCode.DRAFT_INVALID_ANGLE, "Draft angle must be between -90 and 90 degrees (exclusive)", void 0, void 0, "Typical draft angles are 1-5 degrees for injection molding"));
2348
- }
2349
- if (faces.length === 0) return err(validationError(BrepErrorCode.DRAFT_NO_FACES, "No faces specified for draft", void 0, void 0, "Select at least one face to apply the draft angle to"));
2350
- try {
2351
- const { filteredFaces, kernelAngle } = resolveDraftCallback(faces, angle);
2352
- if (filteredFaces.length === 0) return err(validationError(BrepErrorCode.DRAFT_NO_FACES, "No faces with valid draft angle", void 0, void 0, "Check that the angle callback returns non-zero values between -90 and 90 degrees"));
2353
- const inputFaceHashes = collectInputFaceHashes([shape]);
2354
- const { shape: resultShape, evolution } = getKernel().draftWithHistory(shape.wrapped, filteredFaces.map((f) => f.wrapped), [
2355
- pullDirection[0],
2356
- pullDirection[1],
2357
- pullDirection[2]
2358
- ], [
2359
- neutralPlane[0],
2360
- neutralPlane[1],
2361
- neutralPlane[2]
2362
- ], kernelAngle, inputFaceHashes, HASH_CODE_MAX);
2363
- return finalizeShape3D(evolution, resultShape, [shape], BrepErrorCode.DRAFT_NOT_3D, "Draft result is not a 3D shape");
2364
- } catch (e) {
2365
- const raw = e instanceof Error ? e.message : String(e);
2366
- return err(kernelError(BrepErrorCode.DRAFT_FAILED, `Draft operation failed: ${raw}`, e, {
2367
- operation: "draft",
2368
- faceCount: faces.length,
2369
- angle
2370
- }));
2371
- }
2372
- }
2373
- //#endregion
2374
2091
  //#region src/topology/api.ts
2375
2092
  /** Translate a shape by a vector. Returns a new shape. */
2376
2093
  function translate(shape, v) {
@@ -3003,4 +2720,4 @@ function shape(s) {
3003
2720
  throw new Error("shape() requires a Sketch or branded shape type");
3004
2721
  }
3005
2722
  //#endregion
3006
- export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, autoHeal, bezier, blueprintToDXF, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, checkAllInterferences, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutBlueprints, cylinder, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTL, exportThreeMF, extrude, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, findFacesByTag, findNode, findStep, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseBlueprints, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getOrientation, getOrientation2D, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, invalidateShapeCache, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, mesh, meshEdges, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, pendingCount, pipeline, pivotPlane, planarFace, planarWire, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, prewarm, projectEdges, projectPointOnFace, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, uvBounds, uvCoordinates, validSolid, validationError, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
2723
+ export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, autoHeal, bezier, blueprintToDXF, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkBoolean, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutBlueprints, cutWithEvolution, cylinder, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseBlueprints, fuseWithEvolution, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getOrientation, getOrientation2D, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, mesh, meshEdges, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, pendingCount, pipeline, pivotPlane, planarFace, planarWire, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, projectEdges, projectPointOnFace, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, uvBounds, uvCoordinates, validSolid, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
@@ -15,6 +15,12 @@ export declare const BrepErrorCode: {
15
15
  readonly FUSE_FAILED: "FUSE_FAILED";
16
16
  readonly CUT_FAILED: "CUT_FAILED";
17
17
  readonly HEAL_NO_EFFECT: "HEAL_NO_EFFECT";
18
+ readonly BOOLEAN_HAS_ERRORS: "BOOLEAN_HAS_ERRORS";
19
+ readonly VARIABLE_FILLET_FAILED: "VARIABLE_FILLET_FAILED";
20
+ readonly POSITION_ON_CURVE_FAILED: "POSITION_ON_CURVE_FAILED";
21
+ readonly FIX_SHAPE_FAILED: "FIX_SHAPE_FAILED";
22
+ readonly SOLID_FROM_SHELL_FAILED: "SOLID_FROM_SHELL_FAILED";
23
+ readonly FIX_SELF_INTERSECTION_FAILED: "FIX_SELF_INTERSECTION_FAILED";
18
24
  readonly ELLIPSE_RADII: "ELLIPSE_RADII";
19
25
  readonly FUSE_ALL_EMPTY: "FUSE_ALL_EMPTY";
20
26
  readonly FILLET_NO_EDGES: "FILLET_NO_EDGES";
@@ -64,6 +70,7 @@ export declare const BrepErrorCode: {
64
70
  readonly SWEEP_START_NOT_WIRE: "SWEEP_START_NOT_WIRE";
65
71
  readonly SWEEP_END_NOT_WIRE: "SWEEP_END_NOT_WIRE";
66
72
  readonly STEP_EXPORT_FAILED: "STEP_EXPORT_FAILED";
73
+ readonly STEP_EXPORT_CONFIGURED_FAILED: "STEP_EXPORT_CONFIGURED_FAILED";
67
74
  readonly STEP_FILE_READ_ERROR: "STEP_FILE_READ_ERROR";
68
75
  readonly STL_EXPORT_FAILED: "STL_EXPORT_FAILED";
69
76
  readonly STL_FILE_READ_ERROR: "STL_FILE_READ_ERROR";
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,CAAC;AAM7B,8CAA8C;AAC9C,MAAM,MAAM,aAAa,GACrB,kBAAkB,GAClB,YAAY,GACZ,WAAW,GACX,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,IAAI,GACJ,OAAO,GACP,aAAa,CAAC;AAMlB;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8IhB,CAAC;AAEX,qDAAqD;AACrD,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAM/E;;;;;;;;GAQG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACvD;AAwBD,4DAA4D;AAC5D,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,KAAK,C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BAAgB,gBAAgB,CAC9B,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,OAAO,EACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,UAAU,CAAC,EAAE,MAAM,GAClB,SAAS,CAEX;AAGD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAMnE;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,CAMlF"}
package/dist/core.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-GmE4D5Q_.cjs");
3
- const require_errors = require("./errors-C85KVJr-.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
3
+ const require_errors = require("./errors-DupKEMqI.cjs");
4
4
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
5
5
  const require_types = require("./types-BD-VVaWB.cjs");
6
- const require_planeOps = require("./planeOps-DdkIuVjk.cjs");
6
+ const require_planeOps = require("./planeOps-cTxDywpG.cjs");
7
7
  exports.BrepBugError = require_errors.BrepBugError;
8
8
  exports.DEG2RAD = require_vecOps.DEG2RAD;
9
9
  exports.DisposalScope = require_shapeTypes.DisposalScope;
package/dist/core.js CHANGED
@@ -1,6 +1,6 @@
1
- import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-D38b_BKF.js";
2
- import { B as unwrapOrElse, C as isErr, D as mapErr, F as tryCatch, I as tryCatchAsync, L as unwrap, O as match, R as unwrapErr, T as map, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, h as OK, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, u as unsupportedError, v as collect, w as isOk, y as err, z as unwrapOr } from "./errors-B1fl3mAU.js";
1
+ import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-CYb8Byqj.js";
2
+ import { B as unwrapOrElse, C as isErr, D as mapErr, F as tryCatch, I as tryCatchAsync, L as unwrap, O as match, R as unwrapErr, T as map, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, h as OK, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, u as unsupportedError, v as collect, w as isOk, y as err, z as unwrapOr } from "./errors-B_T0aMQF.js";
3
3
  import { _ as DEG2RAD, a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate, v as HASH_CODE_MAX, y as RAD2DEG } from "./vecOps-B9-MTeC8.js";
4
4
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-Bb4KK_iG.js";
5
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-DPintPbl.js";
5
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-BuBXTLBr.js";
6
6
  export { BrepBugError, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, andThen, bug, castShape, closedWire, collect, computationError, createHandle, createKernelHandle, createNamedPlane, createPlane, err, flatMap, getShapeKind, ioError, is2D, is3D, isClosedWire, isCompound, isEdge, isErr, isFace, isLive, isManifoldShell, isOk, isOrientedFace, isShape1D, isShape3D, isShell, isSolid, isValidSolid, isVertex, isWire, kernelError, manifoldShell, map, mapErr, match, moduleInitError, ok, orientedFace, pivotPlane, queryError, resolveDirection, resolvePlane, sketcherStateError, toVec2, toVec3, translatePlane, tryCatch, tryCatchAsync, typeCastError, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validSolid, validationError, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, withScope, withScopeResult, withScopeResultAsync };
@@ -1,6 +1,6 @@
1
1
  import { _ as DEG2RAD } from "./vecOps-B9-MTeC8.js";
2
- import { n as getAtOrThrow } from "./arrayAccess-CccV7jov.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-CxexSe1n.js";
2
+ import { n as getAtOrThrow } from "./arrayAccess-Dps31ERU.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-Rf0vhX6I.js";
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,6 +1,6 @@
1
1
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
2
- const require_arrayAccess = require("./arrayAccess-BF8Hm4-H.cjs");
3
- const require_helpers = require("./helpers-D8DIMw2U.cjs");
2
+ const require_arrayAccess = require("./arrayAccess-peFKE9Ob.cjs");
3
+ const require_helpers = require("./helpers-pQpV9Mwh.cjs");
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,5 +1,5 @@
1
- import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-D38b_BKF.js";
2
- import { k as ok, l as typeCastError, y as err } from "./errors-B1fl3mAU.js";
1
+ import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-CYb8Byqj.js";
2
+ import { k as ok, l as typeCastError, y as err } from "./errors-B_T0aMQF.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
@@ -1,5 +1,5 @@
1
- const require_shapeTypes = require("./shapeTypes-GmE4D5Q_.cjs");
2
- const require_errors = require("./errors-C85KVJr-.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
2
+ const require_errors = require("./errors-DupKEMqI.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
@@ -1,18 +1,18 @@
1
- import { J as _usingCtx, L as DisposalScope, Y as getKernel, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-D38b_BKF.js";
2
- import { L as unwrap, d as validationError, k as ok, m as bug, r as ioError, s as safeIndex, t as BrepErrorCode, w as isOk, y as err } from "./errors-B1fl3mAU.js";
1
+ import { J as _usingCtx, L as DisposalScope, Y as getKernel, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-CYb8Byqj.js";
2
+ import { L as unwrap, d as validationError, k as ok, m as bug, r as ioError, s as safeIndex, t as BrepErrorCode, w as isOk, y as err } from "./errors-B_T0aMQF.js";
3
3
  import { _ as DEG2RAD, c as vecLength, d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-B9-MTeC8.js";
4
4
  import { r as toVec3 } from "./types-Bb4KK_iG.js";
5
- import { a as planeToWorld, o as resolvePlane } from "./planeOps-DPintPbl.js";
6
- import { _ as downcast, c as normalAt, g as cast, l as outerWire, n as faceCenter } from "./faceFns-Bne5RIvn.js";
7
- import { F as getEdges, n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-CccV7jov.js";
8
- import { m as offsetWire2D } from "./curveFns-D_s3LdNT.js";
9
- import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-DiCVk_Un.js";
10
- import { _ as chamferCurves, b as intersectCurves, c as roundedRectangleBlueprint, f as Sketch, g as Blueprints, h as CompoundBlueprint, l as BaseSketcher2d, m as organiseBlueprints, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as filletCurves, x as Flatbush, y as make2dOffset } from "./boolean2D-Cqfwz60G.js";
11
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-CxexSe1n.js";
12
- import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-mSGgCL3V.js";
13
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-FaTmd_PS.js";
14
- import { t as cornerFinder } from "./cornerFinder-BSwshSGB.js";
15
- import { c as twistExtrude, n as revolve, r as complexExtrude, t as extrude } from "./extrudeFns-lDvV4ir2.js";
5
+ import { a as planeToWorld, o as resolvePlane } from "./planeOps-BuBXTLBr.js";
6
+ import { _ as downcast, c as normalAt, g as cast, l as outerWire, n as faceCenter } from "./faceFns-EnGcKFAr.js";
7
+ import { F as getEdges, n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-Dps31ERU.js";
8
+ import { m as offsetWire2D } from "./curveFns-C-jU1_Y_.js";
9
+ import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-DnGdDW8i.js";
10
+ import { _ as chamferCurves, b as intersectCurves, c as roundedRectangleBlueprint, f as Sketch, g as Blueprints, h as CompoundBlueprint, l as BaseSketcher2d, m as organiseBlueprints, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as filletCurves, x as Flatbush, y as make2dOffset } from "./boolean2D-52qVCooY.js";
11
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-Rf0vhX6I.js";
12
+ import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-DYCdRlW5.js";
13
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-ClJxiUa3.js";
14
+ import { t as cornerFinder } from "./cornerFinder-C7aDyYLJ.js";
15
+ import { c as twistExtrude, n as revolve, r as complexExtrude, t as extrude } from "./extrudeFns-LsH1rDMa.js";
16
16
  import opentype from "opentype.js";
17
17
  //#region src/2d/lib/stitching.ts
18
18
  /**
@@ -20,21 +20,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
20
20
  enumerable: true
21
21
  }) : target, mod));
22
22
  //#endregion
23
- const require_shapeTypes = require("./shapeTypes-GmE4D5Q_.cjs");
24
- const require_errors = require("./errors-C85KVJr-.cjs");
23
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
24
+ const require_errors = require("./errors-DupKEMqI.cjs");
25
25
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
26
26
  const require_types = require("./types-BD-VVaWB.cjs");
27
- const require_planeOps = require("./planeOps-DdkIuVjk.cjs");
28
- const require_faceFns = require("./faceFns-8BurpAGN.cjs");
29
- const require_arrayAccess = require("./arrayAccess-BF8Hm4-H.cjs");
30
- const require_curveFns = require("./curveFns-CJjkUGyW.cjs");
31
- const require_surfaceBuilders = require("./surfaceBuilders-BzDQQ4EG.cjs");
32
- const require_boolean2D = require("./boolean2D-D76Hc7Wx.cjs");
33
- const require_helpers = require("./helpers-D8DIMw2U.cjs");
34
- const require_blueprint = require("./blueprint-BP3P8Ado.cjs");
35
- const require_solidBuilders = require("./solidBuilders-BqU0oT2q.cjs");
36
- const require_cornerFinder = require("./cornerFinder-sg0JNgux.cjs");
37
- const require_extrudeFns = require("./extrudeFns-0kBZvqJz.cjs");
27
+ const require_planeOps = require("./planeOps-cTxDywpG.cjs");
28
+ const require_faceFns = require("./faceFns-8dGb8q3J.cjs");
29
+ const require_arrayAccess = require("./arrayAccess-peFKE9Ob.cjs");
30
+ const require_curveFns = require("./curveFns-ywh7Ctyk.cjs");
31
+ const require_surfaceBuilders = require("./surfaceBuilders-ZUTb3z6i.cjs");
32
+ const require_boolean2D = require("./boolean2D-CtB21ajK.cjs");
33
+ const require_helpers = require("./helpers-pQpV9Mwh.cjs");
34
+ const require_blueprint = require("./blueprint-PLJan-W5.cjs");
35
+ const require_solidBuilders = require("./solidBuilders-Cs4XyL58.cjs");
36
+ const require_cornerFinder = require("./cornerFinder-SF-xmMO1.cjs");
37
+ const require_extrudeFns = require("./extrudeFns-CGCIbydL.cjs");
38
38
  let opentype_js = require("opentype.js");
39
39
  opentype_js = __toESM(opentype_js);
40
40
  //#region src/2d/lib/stitching.ts
@@ -277,6 +277,12 @@ var BrepErrorCode = {
277
277
  FUSE_FAILED: "FUSE_FAILED",
278
278
  CUT_FAILED: "CUT_FAILED",
279
279
  HEAL_NO_EFFECT: "HEAL_NO_EFFECT",
280
+ BOOLEAN_HAS_ERRORS: "BOOLEAN_HAS_ERRORS",
281
+ VARIABLE_FILLET_FAILED: "VARIABLE_FILLET_FAILED",
282
+ POSITION_ON_CURVE_FAILED: "POSITION_ON_CURVE_FAILED",
283
+ FIX_SHAPE_FAILED: "FIX_SHAPE_FAILED",
284
+ SOLID_FROM_SHELL_FAILED: "SOLID_FROM_SHELL_FAILED",
285
+ FIX_SELF_INTERSECTION_FAILED: "FIX_SELF_INTERSECTION_FAILED",
280
286
  ELLIPSE_RADII: "ELLIPSE_RADII",
281
287
  FUSE_ALL_EMPTY: "FUSE_ALL_EMPTY",
282
288
  FILLET_NO_EDGES: "FILLET_NO_EDGES",
@@ -326,6 +332,7 @@ var BrepErrorCode = {
326
332
  SWEEP_START_NOT_WIRE: "SWEEP_START_NOT_WIRE",
327
333
  SWEEP_END_NOT_WIRE: "SWEEP_END_NOT_WIRE",
328
334
  STEP_EXPORT_FAILED: "STEP_EXPORT_FAILED",
335
+ STEP_EXPORT_CONFIGURED_FAILED: "STEP_EXPORT_CONFIGURED_FAILED",
329
336
  STEP_FILE_READ_ERROR: "STEP_FILE_READ_ERROR",
330
337
  STL_EXPORT_FAILED: "STL_EXPORT_FAILED",
331
338
  STL_FILE_READ_ERROR: "STL_FILE_READ_ERROR",