brepjs 13.1.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 (96) hide show
  1. package/dist/2d.cjs +3 -3
  2. package/dist/2d.js +3 -3
  3. package/dist/{arrayAccess-Bz2OkAF_.js → arrayAccess-Dps31ERU.js} +3 -3
  4. package/dist/{arrayAccess-FwdVX3Nh.cjs → arrayAccess-peFKE9Ob.cjs} +3 -3
  5. package/dist/{blueprint-Bpa-w3WF.js → blueprint-DYCdRlW5.js} +8 -8
  6. package/dist/{blueprint-YPV8lQqg.cjs → blueprint-PLJan-W5.cjs} +8 -8
  7. package/dist/{blueprintFns-iQsyPfTY.cjs → blueprintFns-Bsx25BG7.cjs} +3 -3
  8. package/dist/{blueprintFns-D0RopDZS.js → blueprintFns-eWh7NpZx.js} +3 -3
  9. package/dist/{boolean2D-D_yuF0kT.js → boolean2D-52qVCooY.js} +10 -10
  10. package/dist/{boolean2D-CMXMxTgD.cjs → boolean2D-CtB21ajK.cjs} +10 -10
  11. package/dist/{booleanFns-o7EsqNGM.cjs → booleanFns-BrptUFkP.cjs} +25 -13
  12. package/dist/{booleanFns-omB4YLGU.js → booleanFns-iM6UPb8e.js} +25 -13
  13. package/dist/brepjs.cjs +21 -20
  14. package/dist/brepjs.js +21 -21
  15. package/dist/core/errors.d.ts +1 -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-nn_mma6p.js → cornerFinder-C7aDyYLJ.js} +2 -2
  20. package/dist/{cornerFinder-E2w1gRI3.cjs → cornerFinder-SF-xmMO1.cjs} +2 -2
  21. package/dist/{curveFns-CzcOFFDX.js → curveFns-C-jU1_Y_.js} +2 -2
  22. package/dist/{curveFns-DHFAK2lD.cjs → curveFns-ywh7Ctyk.cjs} +2 -2
  23. package/dist/{drawFns-4x9wOpZ3.js → drawFns-D-0p86Lf.js} +13 -13
  24. package/dist/{drawFns-DLPEVSbK.cjs → drawFns-DknEB-Qs.cjs} +13 -13
  25. package/dist/{errors-D7ZQfeqv.js → errors-B_T0aMQF.js} +1 -0
  26. package/dist/{errors-BDTFTJ22.cjs → errors-DupKEMqI.cjs} +1 -0
  27. package/dist/{extrudeFns-CqKzY5BT.cjs → extrudeFns-CGCIbydL.cjs} +2 -2
  28. package/dist/{extrudeFns-CDWViQSe.js → extrudeFns-LsH1rDMa.js} +2 -2
  29. package/dist/{faceFns-DSUZvptN.cjs → faceFns-8dGb8q3J.cjs} +2 -2
  30. package/dist/{faceFns-6mY9O_5h.js → faceFns-EnGcKFAr.js} +2 -2
  31. package/dist/{helpers-C9PtrI6D.js → helpers-Rf0vhX6I.js} +6 -6
  32. package/dist/{helpers-BWZ7h12W.cjs → helpers-pQpV9Mwh.cjs} +6 -6
  33. package/dist/{historyFns-r1owwcvA.js → historyFns-XkjLAQyu.js} +5 -5
  34. package/dist/{historyFns-DIUNWvA3.cjs → historyFns-lNalnOdR.cjs} +5 -5
  35. package/dist/{importFns-CeDf0HmX.cjs → importFns-BSH9cGIp.cjs} +4 -4
  36. package/dist/{importFns-xg7LSAv6.js → importFns-Bgs-FYAP.js} +4 -4
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/io.cjs +2 -2
  40. package/dist/io.js +2 -2
  41. package/dist/kernel/brepkit/booleanOps.d.ts +7 -1
  42. package/dist/kernel/brepkit/booleanOps.d.ts.map +1 -1
  43. package/dist/kernel/brepkit/brepkitAdapter.d.ts +5 -4
  44. package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +1 -1
  45. package/dist/kernel/brepkit/evolutionOps.d.ts +4 -4
  46. package/dist/kernel/brepkit/evolutionOps.d.ts.map +1 -1
  47. package/dist/kernel/interfaces/booleanOps.d.ts +3 -1
  48. package/dist/kernel/interfaces/booleanOps.d.ts.map +1 -1
  49. package/dist/kernel/interfaces/evolutionOps.d.ts +4 -4
  50. package/dist/kernel/interfaces/evolutionOps.d.ts.map +1 -1
  51. package/dist/kernel/occt/booleanOps.d.ts +7 -1
  52. package/dist/kernel/occt/booleanOps.d.ts.map +1 -1
  53. package/dist/kernel/occt/defaultAdapter.d.ts +5 -4
  54. package/dist/kernel/occt/defaultAdapter.d.ts.map +1 -1
  55. package/dist/kernel/occt/evolutionOps.d.ts +2 -2
  56. package/dist/kernel/occt/evolutionOps.d.ts.map +1 -1
  57. package/dist/kernel/occt/historyOps.d.ts +4 -4
  58. package/dist/kernel/occt/historyOps.d.ts.map +1 -1
  59. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts +4 -0
  60. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts.map +1 -1
  61. package/dist/kernel/types.d.ts +30 -0
  62. package/dist/kernel/types.d.ts.map +1 -1
  63. package/dist/{measureFns-Dp2Znpf_.cjs → measureFns-CFdHa_fj.cjs} +3 -3
  64. package/dist/{measureFns-B7pm7ulJ.js → measureFns-D7J6qUY_.js} +3 -3
  65. package/dist/measurement.cjs +1 -1
  66. package/dist/measurement.js +1 -1
  67. package/dist/{meshFns-DHS9gepE.cjs → meshFns-2XnDXgIh.cjs} +3 -3
  68. package/dist/{meshFns-1ARDwoZ4.js → meshFns-B7uklc4M.js} +3 -3
  69. package/dist/operations.cjs +2 -2
  70. package/dist/operations.js +2 -2
  71. package/dist/{planeOps-D4THn1al.js → planeOps-BuBXTLBr.js} +1 -1
  72. package/dist/{planeOps-DA5DmML2.cjs → planeOps-cTxDywpG.cjs} +1 -1
  73. package/dist/{primitiveFns-CfCgkRwY.js → primitiveFns-CASk8g16.js} +29 -7
  74. package/dist/{primitiveFns-DtAy6t6n.cjs → primitiveFns-DKtvEA0i.cjs} +34 -6
  75. package/dist/query.cjs +2 -2
  76. package/dist/query.js +2 -2
  77. package/dist/result.cjs +1 -1
  78. package/dist/result.js +1 -1
  79. package/dist/{shapeTypes-Du2qyM2n.cjs → shapeTypes-CElaawp7.cjs} +114 -9
  80. package/dist/{shapeTypes-Beo7ikOL.js → shapeTypes-CYb8Byqj.js} +114 -9
  81. package/dist/sketching.cjs +2 -2
  82. package/dist/sketching.js +2 -2
  83. package/dist/{solidBuilders-8CBjeBfT.js → solidBuilders-ClJxiUa3.js} +3 -3
  84. package/dist/{solidBuilders-BePRwqfJ.cjs → solidBuilders-Cs4XyL58.cjs} +3 -3
  85. package/dist/{surfaceBuilders-BC0MvMK1.js → surfaceBuilders-DnGdDW8i.js} +3 -3
  86. package/dist/{surfaceBuilders-BCiMuuGV.cjs → surfaceBuilders-ZUTb3z6i.cjs} +3 -3
  87. package/dist/topology/booleanDiagnosticFns.d.ts +18 -0
  88. package/dist/topology/booleanDiagnosticFns.d.ts.map +1 -0
  89. package/dist/topology/booleanFns.d.ts.map +1 -1
  90. package/dist/topology.cjs +7 -6
  91. package/dist/topology.d.ts +1 -0
  92. package/dist/topology.d.ts.map +1 -1
  93. package/dist/topology.js +7 -7
  94. package/dist/vectors.cjs +1 -1
  95. package/dist/vectors.js +1 -1
  96. package/package.json +1 -1
package/dist/2d.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_boolean2D = require("./boolean2D-CMXMxTgD.cjs");
3
- const require_blueprint = require("./blueprint-YPV8lQqg.cjs");
4
- const require_blueprintFns = require("./blueprintFns-iQsyPfTY.cjs");
2
+ const require_boolean2D = require("./boolean2D-CtB21ajK.cjs");
3
+ const require_blueprint = require("./blueprint-PLJan-W5.cjs");
4
+ const require_blueprintFns = require("./blueprintFns-Bsx25BG7.cjs");
5
5
  exports.Blueprint = require_blueprint.Blueprint;
6
6
  exports.Blueprints = require_boolean2D.Blueprints;
7
7
  exports.BoundingBox2d = require_blueprint.BoundingBox2d;
package/dist/2d.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, g as Blueprints, h as CompoundBlueprint, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D_yuF0kT.js";
2
- import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-Bpa-w3WF.js";
3
- 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, 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-D0RopDZS.js";
1
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, g as Blueprints, h as CompoundBlueprint, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-52qVCooY.js";
2
+ import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-DYCdRlW5.js";
3
+ 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, 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";
4
4
  export { Blueprint, Blueprints, BoundingBox2d, CompoundBlueprint, Curve2D, createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, cut2D, cutBlueprints, fuse2D, fuseBlueprints, getBounds2D, getOrientation2D, intersect2D, intersectBlueprints, isInside2D, mirror2D, organiseBlueprints, polysidesBlueprint, reverseCurve, rotate2D, roundedRectangleBlueprint, scale2D, sketchOnFace2D, sketchOnPlane2D, stretch2D, toSVGPathD, translate2D };
@@ -1,7 +1,7 @@
1
- import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-Beo7ikOL.js";
2
- import { L as unwrap, d as validationError, k as ok, t as BrepErrorCode, y as err } from "./errors-D7ZQfeqv.js";
1
+ import { Y as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-CYb8Byqj.js";
2
+ import { L as unwrap, d as validationError, k as ok, t as BrepErrorCode, y as err } from "./errors-B_T0aMQF.js";
3
3
  import { _ as DEG2RAD, v as HASH_CODE_MAX } from "./vecOps-B9-MTeC8.js";
4
- import { _ as downcast } from "./faceFns-6mY9O_5h.js";
4
+ import { _ as downcast } from "./faceFns-EnGcKFAr.js";
5
5
  //#region src/topology/topologyQueryFns.ts
6
6
  /**
7
7
  * Topology query functions — extract sub-shapes, compute bounds, and
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
2
- const require_errors = require("./errors-BDTFTJ22.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
2
+ const require_errors = require("./errors-DupKEMqI.cjs");
3
3
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
4
- const require_faceFns = require("./faceFns-DSUZvptN.cjs");
4
+ const require_faceFns = require("./faceFns-8dGb8q3J.cjs");
5
5
  //#region src/topology/topologyQueryFns.ts
6
6
  /**
7
7
  * Topology query functions — extract sub-shapes, compute bounds, and
@@ -1,13 +1,13 @@
1
- import { H as registerForCleanup, W as unregisterFromCleanup, X as getKernel2D, Y as getKernel, a as createEdge, u as createWire } from "./shapeTypes-Beo7ikOL.js";
2
- import { L as unwrap, d as validationError, k as ok, m as bug, n as computationError, y as err } from "./errors-D7ZQfeqv.js";
1
+ import { H as registerForCleanup, W as unregisterFromCleanup, X as getKernel2D, Y as getKernel, a as createEdge, u as createWire } from "./shapeTypes-CYb8Byqj.js";
2
+ import { L as unwrap, d as validationError, k as ok, m as bug, n as computationError, y as err } from "./errors-B_T0aMQF.js";
3
3
  import { _ as DEG2RAD, y as RAD2DEG } from "./vecOps-B9-MTeC8.js";
4
4
  import { r as toVec3 } from "./types-Bb4KK_iG.js";
5
- import { r as makePlane } from "./planeOps-D4THn1al.js";
6
- import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-6mY9O_5h.js";
7
- import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-Bz2OkAF_.js";
8
- import { f as getOrientation } from "./curveFns-CzcOFFDX.js";
9
- import { r as makeFace } from "./surfaceBuilders-BC0MvMK1.js";
10
- import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-C9PtrI6D.js";
5
+ import { r as makePlane } from "./planeOps-BuBXTLBr.js";
6
+ import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-EnGcKFAr.js";
7
+ import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-Dps31ERU.js";
8
+ import { f as getOrientation } from "./curveFns-C-jU1_Y_.js";
9
+ import { r as makeFace } from "./surfaceBuilders-DnGdDW8i.js";
10
+ import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-Rf0vhX6I.js";
11
11
  //#region src/2d/lib/definitions.ts
12
12
  /** Type guard that checks whether a value is a `Point2D`. */
13
13
  function isPoint2D(point) {
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
2
- const require_errors = require("./errors-BDTFTJ22.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
2
+ const require_errors = require("./errors-DupKEMqI.cjs");
3
3
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
4
4
  const require_types = require("./types-BD-VVaWB.cjs");
5
- const require_planeOps = require("./planeOps-DA5DmML2.cjs");
6
- const require_faceFns = require("./faceFns-DSUZvptN.cjs");
7
- const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
8
- const require_curveFns = require("./curveFns-DHFAK2lD.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-BCiMuuGV.cjs");
10
- const require_helpers = require("./helpers-BWZ7h12W.cjs");
5
+ const require_planeOps = require("./planeOps-cTxDywpG.cjs");
6
+ const require_faceFns = require("./faceFns-8dGb8q3J.cjs");
7
+ const require_arrayAccess = require("./arrayAccess-peFKE9Ob.cjs");
8
+ const require_curveFns = require("./curveFns-ywh7Ctyk.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-ZUTb3z6i.cjs");
10
+ const require_helpers = require("./helpers-pQpV9Mwh.cjs");
11
11
  //#region src/2d/lib/definitions.ts
12
12
  /** Type guard that checks whether a value is a `Point2D`. */
13
13
  function isPoint2D(point) {
@@ -1,6 +1,6 @@
1
- const require_errors = require("./errors-BDTFTJ22.cjs");
2
- const require_boolean2D = require("./boolean2D-CMXMxTgD.cjs");
3
- const require_blueprint = require("./blueprint-YPV8lQqg.cjs");
1
+ const require_errors = require("./errors-DupKEMqI.cjs");
2
+ const require_boolean2D = require("./boolean2D-CtB21ajK.cjs");
3
+ const require_blueprint = require("./blueprint-PLJan-W5.cjs");
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,6 +1,6 @@
1
- import { d as validationError, k as ok, t as BrepErrorCode, y as err } from "./errors-D7ZQfeqv.js";
2
- import { h as CompoundBlueprint } from "./boolean2D-D_yuF0kT.js";
3
- import { t as Blueprint } from "./blueprint-Bpa-w3WF.js";
1
+ import { d as validationError, k as ok, t as BrepErrorCode, y as err } from "./errors-B_T0aMQF.js";
2
+ import { h as CompoundBlueprint } from "./boolean2D-52qVCooY.js";
3
+ import { t as Blueprint } from "./blueprint-DYCdRlW5.js";
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,15 +1,15 @@
1
- import { J as _usingCtx, L as DisposalScope, X as getKernel2D, Y as getKernel, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-Beo7ikOL.js";
2
- import { L as unwrap, d as validationError, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, s as safeIndex, w as isOk, y as err } from "./errors-D7ZQfeqv.js";
1
+ import { J as _usingCtx, L as DisposalScope, X as getKernel2D, Y as getKernel, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-CYb8Byqj.js";
2
+ import { L as unwrap, d as validationError, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, s as safeIndex, w as isOk, y as err } from "./errors-B_T0aMQF.js";
3
3
  import { _ as DEG2RAD, d as vecNormalize, h as vecScale, r as vecCross, y as RAD2DEG } from "./vecOps-B9-MTeC8.js";
4
4
  import { r as toVec3 } from "./types-Bb4KK_iG.js";
5
- import { n as createPlane } from "./planeOps-D4THn1al.js";
6
- import { _ as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-6mY9O_5h.js";
7
- import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-Bz2OkAF_.js";
8
- import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-CzcOFFDX.js";
9
- import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-BC0MvMK1.js";
10
- import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-C9PtrI6D.js";
11
- import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-Bpa-w3WF.js";
12
- import { c as twistExtrude, n as revolve, r as complexExtrude, s as sweep, t as extrude } from "./extrudeFns-CDWViQSe.js";
5
+ import { n as createPlane } from "./planeOps-BuBXTLBr.js";
6
+ import { _ as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-EnGcKFAr.js";
7
+ import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-Dps31ERU.js";
8
+ import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-C-jU1_Y_.js";
9
+ import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-DnGdDW8i.js";
10
+ import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-Rf0vhX6I.js";
11
+ import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-DYCdRlW5.js";
12
+ import { c as twistExtrude, n as revolve, r as complexExtrude, s as sweep, t as extrude } from "./extrudeFns-LsH1rDMa.js";
13
13
  //#region node_modules/flatqueue/index.js
14
14
  /** @template T */
15
15
  var FlatQueue = class {
@@ -1,15 +1,15 @@
1
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
2
- const require_errors = require("./errors-BDTFTJ22.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
2
+ const require_errors = require("./errors-DupKEMqI.cjs");
3
3
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
4
4
  const require_types = require("./types-BD-VVaWB.cjs");
5
- const require_planeOps = require("./planeOps-DA5DmML2.cjs");
6
- const require_faceFns = require("./faceFns-DSUZvptN.cjs");
7
- const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
8
- const require_curveFns = require("./curveFns-DHFAK2lD.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-BCiMuuGV.cjs");
10
- const require_helpers = require("./helpers-BWZ7h12W.cjs");
11
- const require_blueprint = require("./blueprint-YPV8lQqg.cjs");
12
- const require_extrudeFns = require("./extrudeFns-CqKzY5BT.cjs");
5
+ const require_planeOps = require("./planeOps-cTxDywpG.cjs");
6
+ const require_faceFns = require("./faceFns-8dGb8q3J.cjs");
7
+ const require_arrayAccess = require("./arrayAccess-peFKE9Ob.cjs");
8
+ const require_curveFns = require("./curveFns-ywh7Ctyk.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-ZUTb3z6i.cjs");
10
+ const require_helpers = require("./helpers-pQpV9Mwh.cjs");
11
+ const require_blueprint = require("./blueprint-PLJan-W5.cjs");
12
+ const require_extrudeFns = require("./extrudeFns-CGCIbydL.cjs");
13
13
  //#region node_modules/flatqueue/index.js
14
14
  /** @template T */
15
15
  var FlatQueue = class {
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
2
- const require_errors = require("./errors-BDTFTJ22.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
2
+ const require_errors = require("./errors-DupKEMqI.cjs");
3
3
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
4
- const require_planeOps = require("./planeOps-DA5DmML2.cjs");
5
- const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
6
- const require_surfaceBuilders = require("./surfaceBuilders-BCiMuuGV.cjs");
4
+ const require_planeOps = require("./planeOps-cTxDywpG.cjs");
5
+ const require_arrayAccess = require("./arrayAccess-peFKE9Ob.cjs");
6
+ const require_surfaceBuilders = require("./surfaceBuilders-ZUTb3z6i.cjs");
7
7
  //#region src/topology/booleanFns.ts
8
8
  /**
9
9
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -13,7 +13,7 @@ function validateShape3D(shape, label) {
13
13
  if (require_shapeTypes.getKernel().isNull(shape.wrapped)) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.NULL_SHAPE_INPUT, `${label} is a null shape`));
14
14
  return require_errors.ok(void 0);
15
15
  }
16
- function castToShape3D(shape, errorCode, errorMsg, suggestion) {
16
+ function castToShape3D(shape, errorCode, errorMsg, suggestion, diagnostics) {
17
17
  const wrapped = require_shapeTypes.castShape(shape);
18
18
  if (!require_shapeTypes.isShape3D(wrapped)) {
19
19
  const shapeType = shape.ShapeType();
@@ -29,7 +29,7 @@ function castToShape3D(shape, errorCode, errorMsg, suggestion) {
29
29
  "SHAPE"
30
30
  ][shapeType] ?? `UNKNOWN(${shapeType})`;
31
31
  wrapped[Symbol.dispose]();
32
- return require_errors.err(require_errors.typeCastError(errorCode, `${errorMsg}. Got ${typeName} instead.`, void 0, void 0, suggestion));
32
+ return require_errors.err(require_errors.typeCastError(errorCode, `${errorMsg}. Got ${typeName} instead.`, void 0, diagnostics ? { diagnostics } : void 0, suggestion));
33
33
  }
34
34
  return require_errors.ok(wrapped);
35
35
  }
@@ -40,12 +40,16 @@ function fuse(a, b, { optimisation = "none", simplify = false, signal, fuzzyValu
40
40
  const checkB = validateShape3D(b, "fuse: second operand");
41
41
  if (require_errors.isErr(checkB)) return checkB;
42
42
  const inputFaceHashes = require_arrayAccess.collectInputFaceHashes([a, b]);
43
- const { shape: resultShape, evolution } = require_shapeTypes.getKernel().fuseWithHistory(a.wrapped, b.wrapped, inputFaceHashes, require_vecOps.HASH_CODE_MAX, {
43
+ const { shape: resultShape, evolution, diagnostics } = require_shapeTypes.getKernel().fuseWithHistory(a.wrapped, b.wrapped, inputFaceHashes, require_vecOps.HASH_CODE_MAX, {
44
44
  optimisation,
45
45
  simplify,
46
46
  fuzzyValue
47
47
  });
48
- const fuseResult = castToShape3D(resultShape, "FUSE_NOT_3D", "Fuse did not produce a 3D shape", "Common causes: overlapping coplanar faces, zero-thickness geometry, or non-manifold input. Try autoHeal() on inputs first.");
48
+ if (diagnostics.hasErrors) {
49
+ require_shapeTypes.getKernel().dispose(resultShape);
50
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors. The result may be invalid.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
51
+ }
52
+ const fuseResult = castToShape3D(resultShape, "FUSE_NOT_3D", "Fuse did not produce a 3D shape", "Common causes: overlapping coplanar faces, zero-thickness geometry, or non-manifold input. Try autoHeal() on inputs first.", diagnostics);
49
53
  if (fuseResult.ok) require_arrayAccess.propagateAllMetadata(evolution, [a, b], fuseResult.value);
50
54
  return fuseResult;
51
55
  }
@@ -56,12 +60,16 @@ function cut(base, tool, { optimisation = "none", simplify = false, signal, fuzz
56
60
  const checkTool = validateShape3D(tool, "cut: tool");
57
61
  if (require_errors.isErr(checkTool)) return checkTool;
58
62
  const inputFaceHashes = require_arrayAccess.collectInputFaceHashes([base, tool]);
59
- const { shape: resultShape, evolution } = require_shapeTypes.getKernel().cutWithHistory(base.wrapped, tool.wrapped, inputFaceHashes, require_vecOps.HASH_CODE_MAX, {
63
+ const { shape: resultShape, evolution, diagnostics } = require_shapeTypes.getKernel().cutWithHistory(base.wrapped, tool.wrapped, inputFaceHashes, require_vecOps.HASH_CODE_MAX, {
60
64
  optimisation,
61
65
  simplify,
62
66
  fuzzyValue
63
67
  });
64
- const cutResult = castToShape3D(resultShape, "CUT_NOT_3D", "Cut did not produce a 3D shape", "Common causes: tool does not fully intersect the base, or produces a zero-thickness sliver. Ensure the tool extends through the shape.");
68
+ if (diagnostics.hasErrors) {
69
+ require_shapeTypes.getKernel().dispose(resultShape);
70
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors. The result may be invalid.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
71
+ }
72
+ const cutResult = castToShape3D(resultShape, "CUT_NOT_3D", "Cut did not produce a 3D shape", "Common causes: tool does not fully intersect the base, or produces a zero-thickness sliver. Ensure the tool extends through the shape.", diagnostics);
65
73
  if (cutResult.ok) require_arrayAccess.propagateAllMetadata(evolution, [base, tool], cutResult.value);
66
74
  return cutResult;
67
75
  }
@@ -72,11 +80,15 @@ function intersect(a, b, { simplify = false, signal, fuzzyValue, unsafe: _unsafe
72
80
  const checkB = validateShape3D(b, "intersect: second operand");
73
81
  if (require_errors.isErr(checkB)) return checkB;
74
82
  const inputFaceHashes = require_arrayAccess.collectInputFaceHashes([a, b]);
75
- const { shape: resultShape, evolution } = require_shapeTypes.getKernel().intersectWithHistory(a.wrapped, b.wrapped, inputFaceHashes, require_vecOps.HASH_CODE_MAX, {
83
+ const { shape: resultShape, evolution, diagnostics } = require_shapeTypes.getKernel().intersectWithHistory(a.wrapped, b.wrapped, inputFaceHashes, require_vecOps.HASH_CODE_MAX, {
76
84
  simplify,
77
85
  fuzzyValue
78
86
  });
79
- const intResult = castToShape3D(resultShape, "INTERSECT_NOT_3D", "Intersect did not produce a 3D shape", "Shapes may not overlap. Verify they share a common volume before intersecting.");
87
+ if (diagnostics.hasErrors) {
88
+ require_shapeTypes.getKernel().dispose(resultShape);
89
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors. The result may be invalid.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
90
+ }
91
+ const intResult = castToShape3D(resultShape, "INTERSECT_NOT_3D", "Intersect did not produce a 3D shape", "Shapes may not overlap. Verify they share a common volume before intersecting.", diagnostics);
80
92
  if (intResult.ok) require_arrayAccess.propagateAllMetadata(evolution, [a, b], intResult.value);
81
93
  return intResult;
82
94
  }
@@ -1,9 +1,9 @@
1
- import { Y as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-Beo7ikOL.js";
2
- import { C as isErr, L as unwrap, d as validationError, i as kernelError, k as ok, l as typeCastError, t as BrepErrorCode, y as err } from "./errors-D7ZQfeqv.js";
1
+ import { Y as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-CYb8Byqj.js";
2
+ import { C as isErr, L as unwrap, d as validationError, i as kernelError, k as ok, l as typeCastError, t as BrepErrorCode, y as err } from "./errors-B_T0aMQF.js";
3
3
  import { h as vecScale, t as vecAdd, v as HASH_CODE_MAX } from "./vecOps-B9-MTeC8.js";
4
- import { o as resolvePlane } from "./planeOps-D4THn1al.js";
5
- import { F as getEdges, R as getVertices, b as propagateAllMetadata, n as getAtOrThrow, t as firstOrThrow, x as propagateMetadataByHash, y as collectInputFaceHashes, z as getWires } from "./arrayAccess-Bz2OkAF_.js";
6
- import { r as makeFace } from "./surfaceBuilders-BC0MvMK1.js";
4
+ import { o as resolvePlane } from "./planeOps-BuBXTLBr.js";
5
+ import { F as getEdges, R as getVertices, b as propagateAllMetadata, n as getAtOrThrow, t as firstOrThrow, x as propagateMetadataByHash, y as collectInputFaceHashes, z as getWires } from "./arrayAccess-Dps31ERU.js";
6
+ import { r as makeFace } from "./surfaceBuilders-DnGdDW8i.js";
7
7
  //#region src/topology/booleanFns.ts
8
8
  /**
9
9
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -13,7 +13,7 @@ function validateShape3D(shape, label) {
13
13
  if (getKernel().isNull(shape.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, `${label} is a null shape`));
14
14
  return ok(void 0);
15
15
  }
16
- function castToShape3D(shape, errorCode, errorMsg, suggestion) {
16
+ function castToShape3D(shape, errorCode, errorMsg, suggestion, diagnostics) {
17
17
  const wrapped = castShape(shape);
18
18
  if (!isShape3D(wrapped)) {
19
19
  const shapeType = shape.ShapeType();
@@ -29,7 +29,7 @@ function castToShape3D(shape, errorCode, errorMsg, suggestion) {
29
29
  "SHAPE"
30
30
  ][shapeType] ?? `UNKNOWN(${shapeType})`;
31
31
  wrapped[Symbol.dispose]();
32
- return err(typeCastError(errorCode, `${errorMsg}. Got ${typeName} instead.`, void 0, void 0, suggestion));
32
+ return err(typeCastError(errorCode, `${errorMsg}. Got ${typeName} instead.`, void 0, diagnostics ? { diagnostics } : void 0, suggestion));
33
33
  }
34
34
  return ok(wrapped);
35
35
  }
@@ -40,12 +40,16 @@ function fuse(a, b, { optimisation = "none", simplify = false, signal, fuzzyValu
40
40
  const checkB = validateShape3D(b, "fuse: second operand");
41
41
  if (isErr(checkB)) return checkB;
42
42
  const inputFaceHashes = collectInputFaceHashes([a, b]);
43
- const { shape: resultShape, evolution } = getKernel().fuseWithHistory(a.wrapped, b.wrapped, inputFaceHashes, HASH_CODE_MAX, {
43
+ const { shape: resultShape, evolution, diagnostics } = getKernel().fuseWithHistory(a.wrapped, b.wrapped, inputFaceHashes, HASH_CODE_MAX, {
44
44
  optimisation,
45
45
  simplify,
46
46
  fuzzyValue
47
47
  });
48
- const fuseResult = castToShape3D(resultShape, "FUSE_NOT_3D", "Fuse did not produce a 3D shape", "Common causes: overlapping coplanar faces, zero-thickness geometry, or non-manifold input. Try autoHeal() on inputs first.");
48
+ if (diagnostics.hasErrors) {
49
+ getKernel().dispose(resultShape);
50
+ return err(kernelError(BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors. The result may be invalid.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
51
+ }
52
+ const fuseResult = castToShape3D(resultShape, "FUSE_NOT_3D", "Fuse did not produce a 3D shape", "Common causes: overlapping coplanar faces, zero-thickness geometry, or non-manifold input. Try autoHeal() on inputs first.", diagnostics);
49
53
  if (fuseResult.ok) propagateAllMetadata(evolution, [a, b], fuseResult.value);
50
54
  return fuseResult;
51
55
  }
@@ -56,12 +60,16 @@ function cut(base, tool, { optimisation = "none", simplify = false, signal, fuzz
56
60
  const checkTool = validateShape3D(tool, "cut: tool");
57
61
  if (isErr(checkTool)) return checkTool;
58
62
  const inputFaceHashes = collectInputFaceHashes([base, tool]);
59
- const { shape: resultShape, evolution } = getKernel().cutWithHistory(base.wrapped, tool.wrapped, inputFaceHashes, HASH_CODE_MAX, {
63
+ const { shape: resultShape, evolution, diagnostics } = getKernel().cutWithHistory(base.wrapped, tool.wrapped, inputFaceHashes, HASH_CODE_MAX, {
60
64
  optimisation,
61
65
  simplify,
62
66
  fuzzyValue
63
67
  });
64
- const cutResult = castToShape3D(resultShape, "CUT_NOT_3D", "Cut did not produce a 3D shape", "Common causes: tool does not fully intersect the base, or produces a zero-thickness sliver. Ensure the tool extends through the shape.");
68
+ if (diagnostics.hasErrors) {
69
+ getKernel().dispose(resultShape);
70
+ return err(kernelError(BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors. The result may be invalid.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
71
+ }
72
+ const cutResult = castToShape3D(resultShape, "CUT_NOT_3D", "Cut did not produce a 3D shape", "Common causes: tool does not fully intersect the base, or produces a zero-thickness sliver. Ensure the tool extends through the shape.", diagnostics);
65
73
  if (cutResult.ok) propagateAllMetadata(evolution, [base, tool], cutResult.value);
66
74
  return cutResult;
67
75
  }
@@ -72,11 +80,15 @@ function intersect(a, b, { simplify = false, signal, fuzzyValue, unsafe: _unsafe
72
80
  const checkB = validateShape3D(b, "intersect: second operand");
73
81
  if (isErr(checkB)) return checkB;
74
82
  const inputFaceHashes = collectInputFaceHashes([a, b]);
75
- const { shape: resultShape, evolution } = getKernel().intersectWithHistory(a.wrapped, b.wrapped, inputFaceHashes, HASH_CODE_MAX, {
83
+ const { shape: resultShape, evolution, diagnostics } = getKernel().intersectWithHistory(a.wrapped, b.wrapped, inputFaceHashes, HASH_CODE_MAX, {
76
84
  simplify,
77
85
  fuzzyValue
78
86
  });
79
- const intResult = castToShape3D(resultShape, "INTERSECT_NOT_3D", "Intersect did not produce a 3D shape", "Shapes may not overlap. Verify they share a common volume before intersecting.");
87
+ if (diagnostics.hasErrors) {
88
+ getKernel().dispose(resultShape);
89
+ return err(kernelError(BrepErrorCode.BOOLEAN_HAS_ERRORS, "Boolean operation reported internal errors. The result may be invalid.", void 0, { diagnostics }, "Use checkBoolean() to pre-validate operands, or try autoHeal() on inputs."));
90
+ }
91
+ const intResult = castToShape3D(resultShape, "INTERSECT_NOT_3D", "Intersect did not produce a 3D shape", "Shapes may not overlap. Verify they share a common volume before intersecting.", diagnostics);
80
92
  if (intResult.ok) propagateAllMetadata(evolution, [a, b], intResult.value);
81
93
  return intResult;
82
94
  }
package/dist/brepjs.cjs CHANGED
@@ -1,26 +1,26 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-DLPEVSbK.cjs");
3
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
4
- const require_errors = require("./errors-BDTFTJ22.cjs");
2
+ const require_drawFns = require("./drawFns-DknEB-Qs.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-CElaawp7.cjs");
4
+ const require_errors = require("./errors-DupKEMqI.cjs");
5
5
  const require_vecOps = require("./vecOps-4iBMiet9.cjs");
6
6
  const require_types = require("./types-BD-VVaWB.cjs");
7
- const require_planeOps = require("./planeOps-DA5DmML2.cjs");
8
- const require_faceFns = require("./faceFns-DSUZvptN.cjs");
9
- const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
10
- const require_curveFns = require("./curveFns-DHFAK2lD.cjs");
11
- const require_meshFns = require("./meshFns-DHS9gepE.cjs");
12
- const require_surfaceBuilders = require("./surfaceBuilders-BCiMuuGV.cjs");
13
- const require_booleanFns = require("./booleanFns-o7EsqNGM.cjs");
14
- const require_primitiveFns = require("./primitiveFns-DtAy6t6n.cjs");
15
- const require_historyFns = require("./historyFns-DIUNWvA3.cjs");
16
- const require_boolean2D = require("./boolean2D-CMXMxTgD.cjs");
17
- const require_helpers = require("./helpers-BWZ7h12W.cjs");
18
- const require_solidBuilders = require("./solidBuilders-BePRwqfJ.cjs");
19
- const require_measureFns = require("./measureFns-Dp2Znpf_.cjs");
20
- const require_cornerFinder = require("./cornerFinder-E2w1gRI3.cjs");
21
- const require_extrudeFns = require("./extrudeFns-CqKzY5BT.cjs");
22
- const require_blueprintFns = require("./blueprintFns-iQsyPfTY.cjs");
23
- const require_importFns = require("./importFns-CeDf0HmX.cjs");
7
+ const require_planeOps = require("./planeOps-cTxDywpG.cjs");
8
+ const require_faceFns = require("./faceFns-8dGb8q3J.cjs");
9
+ const require_arrayAccess = require("./arrayAccess-peFKE9Ob.cjs");
10
+ const require_curveFns = require("./curveFns-ywh7Ctyk.cjs");
11
+ const require_meshFns = require("./meshFns-2XnDXgIh.cjs");
12
+ const require_surfaceBuilders = require("./surfaceBuilders-ZUTb3z6i.cjs");
13
+ const require_booleanFns = require("./booleanFns-BrptUFkP.cjs");
14
+ const require_primitiveFns = require("./primitiveFns-DKtvEA0i.cjs");
15
+ const require_historyFns = require("./historyFns-lNalnOdR.cjs");
16
+ const require_boolean2D = require("./boolean2D-CtB21ajK.cjs");
17
+ const require_helpers = require("./helpers-pQpV9Mwh.cjs");
18
+ const require_solidBuilders = require("./solidBuilders-Cs4XyL58.cjs");
19
+ const require_measureFns = require("./measureFns-CFdHa_fj.cjs");
20
+ const require_cornerFinder = require("./cornerFinder-SF-xmMO1.cjs");
21
+ const require_extrudeFns = require("./extrudeFns-CGCIbydL.cjs");
22
+ const require_blueprintFns = require("./blueprintFns-Bsx25BG7.cjs");
23
+ const require_importFns = require("./importFns-BSH9cGIp.cjs");
24
24
  const require_workerHandler = require("./workerHandler-nLkvSOKX.cjs");
25
25
  //#region src/core/kernelCall.ts
26
26
  var errorFactories = {
@@ -2770,6 +2770,7 @@ exports.chamfer = chamfer;
2770
2770
  exports.chamferDistAngleShape = require_primitiveFns.chamferDistAngle;
2771
2771
  exports.chamferWithEvolution = require_primitiveFns.chamferWithEvolution;
2772
2772
  exports.checkAllInterferences = checkAllInterferences;
2773
+ exports.checkBoolean = require_primitiveFns.checkBoolean;
2773
2774
  exports.checkInterference = checkInterference;
2774
2775
  exports.circle = require_primitiveFns.circle;
2775
2776
  exports.circularPattern = require_historyFns.circularPattern;
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-Beo7ikOL.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-D7ZQfeqv.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-D4THn1al.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-6mY9O_5h.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-Bz2OkAF_.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-CzcOFFDX.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-1ARDwoZ4.js";
10
- import { n as fill, r as makeFace } from "./surfaceBuilders-BC0MvMK1.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-omB4YLGU.js";
12
- import { $ as facesOfEdge, 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 edgesOfFace, 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 adjacentFaces, _ as polygon, a as circle, at as toGroupedBufferGeometryData, b as sphere, c as cylinder, d as ellipsoid, et as sharedEdges, f as face, g as offsetFace, h as line, i as bsplineApprox, it as toBufferGeometryData, j as heal$1, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as wiresOfFace, o as compound, ot as toLineGeometryData, p as filledFace, q as filletWithEvolution, r as box, rt as chamferDistAngle, s as cone, t as addHoles, tt as verticesOfEdge, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-CfCgkRwY.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-r1owwcvA.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-D_yuF0kT.js";
15
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-C9PtrI6D.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-4x9wOpZ3.js";
17
- import { r as makeCylinder } from "./solidBuilders-8CBjeBfT.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-B7pm7ulJ.js";
19
- import { t as cornerFinder } from "./cornerFinder-nn_mma6p.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-CDWViQSe.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-D0RopDZS.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-xg7LSAv6.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 = {
@@ -2720,4 +2720,4 @@ function shape(s) {
2720
2720
  throw new Error("shape() requires a Sketch or branded shape type");
2721
2721
  }
2722
2722
  //#endregion
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, 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 };
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,7 @@ 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";
18
19
  readonly VARIABLE_FILLET_FAILED: "VARIABLE_FILLET_FAILED";
19
20
  readonly POSITION_ON_CURVE_FAILED: "POSITION_ON_CURVE_FAILED";
20
21
  readonly FIX_SHAPE_FAILED: "FIX_SHAPE_FAILED";
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"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"}
package/dist/core.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
3
- const require_errors = require("./errors-BDTFTJ22.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-DA5DmML2.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-Beo7ikOL.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-D7ZQfeqv.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-D4THn1al.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-Bz2OkAF_.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-C9PtrI6D.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) {