brepjs 15.2.11 → 15.2.12

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 (65) hide show
  1. package/dist/2d.cjs +5 -5
  2. package/dist/2d.js +5 -5
  3. package/dist/{blueprint-BqdFeOSN.js → blueprint-BD4KS3uK.js} +5 -5
  4. package/dist/{blueprint-BkKnM_9w.cjs → blueprint-DRMsvuIW.cjs} +5 -5
  5. package/dist/{blueprintFns-Ds8qYSpU.js → blueprintFns-DSSOMAIL.js} +2 -2
  6. package/dist/{blueprintFns-DMk0Pxr4.cjs → blueprintFns-ixcedxQd.cjs} +2 -2
  7. package/dist/{boolean2D--RWVJEAM.cjs → boolean2D-BwCW-B30.cjs} +7 -7
  8. package/dist/{boolean2D-DEiO0Uct.js → boolean2D-CWNL216K.js} +7 -7
  9. package/dist/{booleanFns-Cstp5Ep1.js → booleanFns-B4ZGNOr3.js} +4 -4
  10. package/dist/{booleanFns-CwHfuxWc.cjs → booleanFns-tCaPENXq.cjs} +4 -4
  11. package/dist/brepjs.cjs +20 -20
  12. package/dist/brepjs.js +20 -20
  13. package/dist/core.cjs +1 -1
  14. package/dist/core.js +1 -1
  15. package/dist/{cornerFinder-K7cjTnkP.js → cornerFinder-C1eCd2NO.js} +1 -1
  16. package/dist/{cornerFinder-DLxiZcyg.cjs → cornerFinder-C606yOAm.cjs} +1 -1
  17. package/dist/{curveFns-D-0yqVb9.js → curveFns-Cuiu9Khj.js} +1 -1
  18. package/dist/{curveFns-CQIv_biC.cjs → curveFns-eR4vAVyT.cjs} +1 -1
  19. package/dist/{drawFns-CZZsnlAR.cjs → drawFns-C4URqqIr.cjs} +11 -11
  20. package/dist/{drawFns-BU7zRJy2.js → drawFns-Di19TRz_.js} +10 -10
  21. package/dist/{extrudeFns-B3qZ8gzq.js → extrudeFns-B-GeC5JR.js} +1 -1
  22. package/dist/{extrudeFns-WHKS4Oef.cjs → extrudeFns-TGgECRPk.cjs} +1 -1
  23. package/dist/{faceFns-BQ7czFFV.js → faceFns-Ce2sfezK.js} +1 -1
  24. package/dist/{faceFns-uX_AVFqu.cjs → faceFns-DP61KiyY.cjs} +1 -1
  25. package/dist/{helpers-C4r8ovx9.js → helpers-BO5KthLn.js} +5 -5
  26. package/dist/{helpers-CM63Nn7A.cjs → helpers-Do57l7FZ.cjs} +5 -5
  27. package/dist/{historyFns-BFuHqN_0.js → historyFns-_ZRHu7mY.js} +4 -4
  28. package/dist/{historyFns-DkDJpwef.cjs → historyFns-xcghTeWT.cjs} +4 -4
  29. package/dist/{importFns--VkKJoDs.js → importFns-BJ5uUwpa.js} +2 -2
  30. package/dist/{importFns--rg42dnv.cjs → importFns-lv_acM3B.cjs} +2 -2
  31. package/dist/io.cjs +2 -2
  32. package/dist/io.js +2 -2
  33. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  34. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  35. package/dist/{measureFns-BxAZf4Mf.cjs → measureFns-Af--KnjE.cjs} +2 -2
  36. package/dist/{measureFns-D5DbMnQY.js → measureFns-Beh8ggjV.js} +2 -2
  37. package/dist/measurement.cjs +1 -1
  38. package/dist/measurement.js +1 -1
  39. package/dist/{meshFns-BdEOTCwK.cjs → meshFns-D_-6BkQl.cjs} +2 -2
  40. package/dist/{meshFns-C9DtKU7q.js → meshFns-fHojyH-k.js} +2 -2
  41. package/dist/{occtWasmAdapter-BRiWV_v0.js → occtWasmAdapter-DLWC3oxC.js} +2 -2
  42. package/dist/{occtWasmAdapter-CPINzXxh.cjs → occtWasmAdapter-DzzTUzYP.cjs} +2 -2
  43. package/dist/operations.cjs +2 -2
  44. package/dist/operations.js +2 -2
  45. package/dist/{primitiveFns-D3FvKWK-.cjs → primitiveFns-CYZuu9Il.cjs} +5 -5
  46. package/dist/{primitiveFns-Bpq2yFqw.js → primitiveFns-DmvY2gVS.js} +5 -5
  47. package/dist/query.cjs +2 -2
  48. package/dist/query.js +2 -2
  49. package/dist/{shapeFns-LgyEtLGl.js → shapeFns-BYOfyHoL.js} +2 -2
  50. package/dist/{shapeFns-Dz2GNg2y.cjs → shapeFns-wvNG7pAU.cjs} +2 -2
  51. package/dist/shapeRef.cjs +1 -1
  52. package/dist/shapeRef.js +1 -1
  53. package/dist/{shapeRefFns-N0wl6XSn.cjs → shapeRefFns-BSqCvOMZ.cjs} +3 -3
  54. package/dist/{shapeRefFns-CgnpumqW.js → shapeRefFns-Cd-zuZ_d.js} +3 -3
  55. package/dist/{shapeTypes-hQK4eaEw.cjs → shapeTypes-0QO9ycMV.cjs} +3 -4
  56. package/dist/{shapeTypes-B9a2ed1X.js → shapeTypes-Tu03ijIx.js} +3 -4
  57. package/dist/sketching.cjs +2 -2
  58. package/dist/sketching.js +2 -2
  59. package/dist/{solidBuilders-DUl2f7gY.cjs → solidBuilders-BJ5gVhvm.cjs} +2 -2
  60. package/dist/{solidBuilders-C_-imolZ.js → solidBuilders-CPWknuQG.js} +2 -2
  61. package/dist/{surfaceBuilders-BY117AaY.js → surfaceBuilders-BDMHU4Ng.js} +2 -2
  62. package/dist/{surfaceBuilders-D_w11wLr.cjs → surfaceBuilders-Do5jrIrG.cjs} +2 -2
  63. package/dist/topology.cjs +6 -6
  64. package/dist/topology.js +6 -6
  65. package/package.json +14 -14
package/dist/2d.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
3
3
  const require_errors = require("./errors-CXRNVCec.cjs");
4
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
5
- const require_boolean2D = require("./boolean2D--RWVJEAM.cjs");
6
- const require_blueprint = require("./blueprint-BkKnM_9w.cjs");
7
- const require_blueprintFns = require("./blueprintFns-DMk0Pxr4.cjs");
4
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
5
+ const require_boolean2D = require("./boolean2D-BwCW-B30.cjs");
6
+ const require_blueprint = require("./blueprint-DRMsvuIW.cjs");
7
+ const require_blueprintFns = require("./blueprintFns-ixcedxQd.cjs");
8
8
  //#region src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
package/dist/2d.js CHANGED
@@ -1,9 +1,9 @@
1
- import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-B9a2ed1X.js";
1
+ import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
3
- import { z as kernelCallRaw } from "./faceFns-BQ7czFFV.js";
4
- import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-DEiO0Uct.js";
5
- import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-BqdFeOSN.js";
6
- 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-Ds8qYSpU.js";
3
+ import { z as kernelCallRaw } from "./faceFns-Ce2sfezK.js";
4
+ import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CWNL216K.js";
5
+ import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-BD4KS3uK.js";
6
+ 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-DSSOMAIL.js";
7
7
  //#region src/core/curve2dHandle.ts
8
8
  /**
9
9
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,13 +1,13 @@
1
- import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-B9a2ed1X.js";
1
+ import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-DboJwVCf.js";
3
- import { M as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-BQ7czFFV.js";
3
+ import { M as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-Ce2sfezK.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-csSEYddm.js";
5
5
  import { r as toVec3 } from "./types--GD-LVc6.js";
6
6
  import { r as makePlane } from "./planeOps-sTrM3dcQ.js";
7
- import { f as getOrientation } from "./curveFns-D-0yqVb9.js";
7
+ import { f as getOrientation } from "./curveFns-Cuiu9Khj.js";
8
8
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
9
- import { r as makeFace } from "./surfaceBuilders-BY117AaY.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-C4r8ovx9.js";
9
+ import { r as makeFace } from "./surfaceBuilders-BDMHU4Ng.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-BO5KthLn.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-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.cjs");
5
5
  const require_types = require("./types-gLi9wL0N.cjs");
6
6
  const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
7
- const require_curveFns = require("./curveFns-CQIv_biC.cjs");
7
+ const require_curveFns = require("./curveFns-eR4vAVyT.cjs");
8
8
  const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-D_w11wLr.cjs");
10
- const require_helpers = require("./helpers-CM63Nn7A.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-Do5jrIrG.cjs");
10
+ const require_helpers = require("./helpers-Do57l7FZ.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
1
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
2
- import { g as CompoundBlueprint } from "./boolean2D-DEiO0Uct.js";
3
- import { t as Blueprint } from "./blueprint-BqdFeOSN.js";
2
+ import { g as CompoundBlueprint } from "./boolean2D-CWNL216K.js";
3
+ import { t as Blueprint } from "./blueprint-BD4KS3uK.js";
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
1
  const require_errors = require("./errors-CXRNVCec.cjs");
2
- const require_boolean2D = require("./boolean2D--RWVJEAM.cjs");
3
- const require_blueprint = require("./blueprint-BkKnM_9w.cjs");
2
+ const require_boolean2D = require("./boolean2D-BwCW-B30.cjs");
3
+ const require_blueprint = require("./blueprint-DRMsvuIW.cjs");
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,16 +1,16 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.cjs");
5
5
  const require_types = require("./types-gLi9wL0N.cjs");
6
6
  const require_vecOps = require("./vecOps-CODplJp3.cjs");
7
7
  const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
8
- const require_curveFns = require("./curveFns-CQIv_biC.cjs");
8
+ const require_curveFns = require("./curveFns-eR4vAVyT.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-D_w11wLr.cjs");
11
- const require_helpers = require("./helpers-CM63Nn7A.cjs");
12
- const require_blueprint = require("./blueprint-BkKnM_9w.cjs");
13
- const require_extrudeFns = require("./extrudeFns-WHKS4Oef.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-Do5jrIrG.cjs");
11
+ const require_helpers = require("./helpers-Do57l7FZ.cjs");
12
+ const require_blueprint = require("./blueprint-DRMsvuIW.cjs");
13
+ const require_extrudeFns = require("./extrudeFns-TGgECRPk.cjs");
14
14
  //#region node_modules/flatqueue/index.js
15
15
  /** @template T */
16
16
  var FlatQueue = class {
@@ -1,16 +1,16 @@
1
- import { R as DisposalScope, X as getKernel, Y as _usingCtx, Z as getKernel2D, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-B9a2ed1X.js";
1
+ import { R as DisposalScope, X as getKernel, Y as _usingCtx, Z as getKernel2D, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, n as computationError, s as safeIndex } from "./errors-DboJwVCf.js";
3
- import { N as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-BQ7czFFV.js";
3
+ import { N as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-Ce2sfezK.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-csSEYddm.js";
5
5
  import { r as toVec3 } from "./types--GD-LVc6.js";
6
6
  import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-B-PCHgyB.js";
7
7
  import { n as createPlane } from "./planeOps-sTrM3dcQ.js";
8
- import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-D-0yqVb9.js";
8
+ import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-Cuiu9Khj.js";
9
9
  import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
10
- import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-BY117AaY.js";
11
- 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-C4r8ovx9.js";
12
- 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-BqdFeOSN.js";
13
- import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-B3qZ8gzq.js";
10
+ import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-BDMHU4Ng.js";
11
+ 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-BO5KthLn.js";
12
+ 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-BD4KS3uK.js";
13
+ import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-B-GeC5JR.js";
14
14
  //#region node_modules/flatqueue/index.js
15
15
  /** @template T */
16
16
  var FlatQueue = class {
@@ -1,12 +1,12 @@
1
- import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DboJwVCf.js";
3
- import { C as getVertices, b as getEdges, w as getWires } from "./faceFns-BQ7czFFV.js";
3
+ import { C as getVertices, b as getEdges, w as getWires } from "./faceFns-Ce2sfezK.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-csSEYddm.js";
5
5
  import { h as vecScale, t as vecAdd } from "./vecOps-B-PCHgyB.js";
6
6
  import { o as resolvePlane } from "./planeOps-sTrM3dcQ.js";
7
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-LgyEtLGl.js";
7
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-BYOfyHoL.js";
8
8
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
9
- import { r as makeFace } from "./surfaceBuilders-BY117AaY.js";
9
+ import { r as makeFace } from "./surfaceBuilders-BDMHU4Ng.js";
10
10
  //#region src/topology/booleanFns.ts
11
11
  /**
12
12
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.cjs");
5
5
  const require_vecOps = require("./vecOps-CODplJp3.cjs");
6
6
  const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
7
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
7
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
8
8
  const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-D_w11wLr.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-Do5jrIrG.cjs");
10
10
  //#region src/topology/booleanFns.ts
11
11
  /**
12
12
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
package/dist/brepjs.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-CZZsnlAR.cjs");
3
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
4
- const require_occtWasmAdapter = require("./occtWasmAdapter-CPINzXxh.cjs");
2
+ const require_drawFns = require("./drawFns-C4URqqIr.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
4
+ const require_occtWasmAdapter = require("./occtWasmAdapter-DzzTUzYP.cjs");
5
5
  const require_errors = require("./errors-CXRNVCec.cjs");
6
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
6
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
7
7
  const require_constants = require("./constants-BNP_xnBN.cjs");
8
8
  const require_types = require("./types-gLi9wL0N.cjs");
9
9
  const require_vecOps = require("./vecOps-CODplJp3.cjs");
10
10
  const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
11
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
12
- const require_curveFns = require("./curveFns-CQIv_biC.cjs");
13
- const require_meshFns = require("./meshFns-BdEOTCwK.cjs");
11
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
12
+ const require_curveFns = require("./curveFns-eR4vAVyT.cjs");
13
+ const require_meshFns = require("./meshFns-D_-6BkQl.cjs");
14
14
  const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
15
- const require_surfaceBuilders = require("./surfaceBuilders-D_w11wLr.cjs");
16
- const require_booleanFns = require("./booleanFns-CwHfuxWc.cjs");
17
- const require_primitiveFns = require("./primitiveFns-D3FvKWK-.cjs");
18
- const require_historyFns = require("./historyFns-DkDJpwef.cjs");
19
- const require_boolean2D = require("./boolean2D--RWVJEAM.cjs");
20
- const require_helpers = require("./helpers-CM63Nn7A.cjs");
21
- const require_solidBuilders = require("./solidBuilders-DUl2f7gY.cjs");
22
- const require_measureFns = require("./measureFns-BxAZf4Mf.cjs");
23
- const require_cornerFinder = require("./cornerFinder-DLxiZcyg.cjs");
24
- const require_extrudeFns = require("./extrudeFns-WHKS4Oef.cjs");
25
- const require_blueprintFns = require("./blueprintFns-DMk0Pxr4.cjs");
26
- const require_importFns = require("./importFns--rg42dnv.cjs");
27
- const require_shapeRefFns = require("./shapeRefFns-N0wl6XSn.cjs");
15
+ const require_surfaceBuilders = require("./surfaceBuilders-Do5jrIrG.cjs");
16
+ const require_booleanFns = require("./booleanFns-tCaPENXq.cjs");
17
+ const require_primitiveFns = require("./primitiveFns-CYZuu9Il.cjs");
18
+ const require_historyFns = require("./historyFns-xcghTeWT.cjs");
19
+ const require_boolean2D = require("./boolean2D-BwCW-B30.cjs");
20
+ const require_helpers = require("./helpers-Do57l7FZ.cjs");
21
+ const require_solidBuilders = require("./solidBuilders-BJ5gVhvm.cjs");
22
+ const require_measureFns = require("./measureFns-Af--KnjE.cjs");
23
+ const require_cornerFinder = require("./cornerFinder-C606yOAm.cjs");
24
+ const require_extrudeFns = require("./extrudeFns-TGgECRPk.cjs");
25
+ const require_blueprintFns = require("./blueprintFns-ixcedxQd.cjs");
26
+ const require_importFns = require("./importFns-lv_acM3B.cjs");
27
+ const require_shapeRefFns = require("./shapeRefFns-BSqCvOMZ.cjs");
28
28
  const require_workerHandler = require("./workerHandler-C-3cFcsQ.cjs");
29
29
  //#region src/topology/shapeBooleans.ts
30
30
  var BOPAlgo_GlueShift = 1;
package/dist/brepjs.js CHANGED
@@ -1,29 +1,29 @@
1
- import { $ as initFromOC, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, Q as init, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getKernel, _ as isSolid, a as createEdge, at as BrepkitAdapter, b as closedWire, c as createSolid, d as isCompound, et as prewarm, 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 withKernel, o as createFace, ot as getPerformanceStats, p as isFace, q as withScopeResult, rt as supportsConstraintSketch, s as createShell, st as resetPerformanceStats, t as castShape, tt as registerKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-B9a2ed1X.js";
2
- import { t as OcctWasmAdapter } from "./occtWasmAdapter-BRiWV_v0.js";
1
+ import { $ as initFromOC, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, Q as init, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getKernel, _ as isSolid, a as createEdge, at as BrepkitAdapter, b as closedWire, c as createSolid, d as isCompound, et as prewarm, 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 withKernel, o as createFace, ot as getPerformanceStats, p as isFace, q as withScopeResult, rt as supportsConstraintSketch, s as createShell, st as resetPerformanceStats, t as castShape, tt as registerKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-Tu03ijIx.js";
2
+ import { t as OcctWasmAdapter } from "./occtWasmAdapter-DLWC3oxC.js";
3
3
  import { A as ok, B as unwrapOr, C as fromNullable, D as mapBoth, E as map, F as tapErr, H as zip, I as tryCatch, L as tryCatchAsync, M as orElse, N as pipeline, O as mapErr, P as tap, R as unwrap, S as flatten, T as isOk, V as unwrapOrElse, _ as all, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, j as or, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-DboJwVCf.js";
4
- import { A as vertexPosition, B as kernelCallScoped, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, R as kernelCall, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as getBounds, h as describe$1, i as faceOrientation, j as asTopo, k as iterWires, 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, w as getWires, x as getFaces, y as getCachedSurfaceType, z as kernelCallRaw } from "./faceFns-BQ7czFFV.js";
4
+ import { A as vertexPosition, B as kernelCallScoped, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, R as kernelCall, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as getBounds, h as describe$1, i as faceOrientation, j as asTopo, k as iterWires, 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, w as getWires, x as getFaces, y as getCachedSurfaceType, z as kernelCallRaw } from "./faceFns-Ce2sfezK.js";
5
5
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-csSEYddm.js";
6
6
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types--GD-LVc6.js";
7
7
  import { 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 } from "./vecOps-B-PCHgyB.js";
8
8
  import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-sTrM3dcQ.js";
9
- import { C as findFacesByTag, D as tagFaces, E as setTagMetadata, O as getFaceOrigins, S as getShapeColor, T as getTagMetadata, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$1, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$1, w as getFaceTags, x as getFaceColor, y as colorFaces } from "./shapeFns-LgyEtLGl.js";
10
- 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-0yqVb9.js";
11
- import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o as meshMultiLOD, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-C9DtKU7q.js";
9
+ import { C as findFacesByTag, D as tagFaces, E as setTagMetadata, O as getFaceOrigins, S as getShapeColor, T as getTagMetadata, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$1, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$1, w as getFaceTags, x as getFaceColor, y as colorFaces } from "./shapeFns-BYOfyHoL.js";
10
+ 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-Cuiu9Khj.js";
11
+ import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o as meshMultiLOD, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-fHojyH-k.js";
12
12
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
13
- import { n as fill, r as makeFace } from "./surfaceBuilders-BY117AaY.js";
14
- import { a as fuseAll, c as sectionToFace$1, i as fuse$1, l as slice$1, n as cut$1, o as intersect$1, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-Cstp5Ep1.js";
15
- import { $ as getNurbsSurfaceData, 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 getNurbsCurveData, 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 wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLODGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-Bpq2yFqw.js";
16
- 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-BFuHqN_0.js";
17
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, h as organiseBlueprints, i as cutBlueprints, m as loftAll, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-DEiO0Uct.js";
18
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-C4r8ovx9.js";
19
- 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-BU7zRJy2.js";
20
- import { r as makeCylinder } from "./solidBuilders-C_-imolZ.js";
21
- 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-D5DbMnQY.js";
22
- import { t as cornerFinder } from "./cornerFinder-K7cjTnkP.js";
23
- import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-B3qZ8gzq.js";
24
- 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-Ds8qYSpU.js";
25
- 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--VkKJoDs.js";
26
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-CgnpumqW.js";
13
+ import { n as fill, r as makeFace } from "./surfaceBuilders-BDMHU4Ng.js";
14
+ import { a as fuseAll, c as sectionToFace$1, i as fuse$1, l as slice$1, n as cut$1, o as intersect$1, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-B4ZGNOr3.js";
15
+ import { $ as getNurbsSurfaceData, 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 getNurbsCurveData, 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 wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLODGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-DmvY2gVS.js";
16
+ 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-_ZRHu7mY.js";
17
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, h as organiseBlueprints, i as cutBlueprints, m as loftAll, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CWNL216K.js";
18
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BO5KthLn.js";
19
+ 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-Di19TRz_.js";
20
+ import { r as makeCylinder } from "./solidBuilders-CPWknuQG.js";
21
+ 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-Beh8ggjV.js";
22
+ import { t as cornerFinder } from "./cornerFinder-C1eCd2NO.js";
23
+ import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-B-GeC5JR.js";
24
+ 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-DSSOMAIL.js";
25
+ 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-BJ5uUwpa.js";
26
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-Cd-zuZ_d.js";
27
27
  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-Dm0_0F8Z.js";
28
28
  //#region \0rolldown/runtime.js
29
29
  var __defProp = Object.defineProperty;
package/dist/core.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
3
3
  const require_errors = require("./errors-CXRNVCec.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.cjs");
5
5
  const require_types = require("./types-gLi9wL0N.cjs");
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ 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 withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-B9a2ed1X.js";
1
+ import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ 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 withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-DboJwVCf.js";
3
3
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-csSEYddm.js";
4
4
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types--GD-LVc6.js";
@@ -1,6 +1,6 @@
1
1
  import { t as DEG2RAD } from "./constants-csSEYddm.js";
2
2
  import { n as getAtOrThrow } from "./arrayAccess-tCIbjLs5.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-C4r8ovx9.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-BO5KthLn.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_constants = require("./constants-BNP_xnBN.cjs");
2
2
  const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
3
- const require_helpers = require("./helpers-CM63Nn7A.cjs");
3
+ const require_helpers = require("./helpers-Do57l7FZ.cjs");
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,4 +1,4 @@
1
- import { X as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, l as typeCastError } from "./errors-DboJwVCf.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -29,24 +29,24 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  enumerable: true
30
30
  }) : target, mod));
31
31
  //#endregion
32
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
32
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
33
33
  const require_errors = require("./errors-CXRNVCec.cjs");
34
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
34
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
35
35
  const require_constants = require("./constants-BNP_xnBN.cjs");
36
36
  const require_types = require("./types-gLi9wL0N.cjs");
37
37
  const require_vecOps = require("./vecOps-CODplJp3.cjs");
38
38
  const require_planeOps = require("./planeOps-BJOIbn4K.cjs");
39
- const require_curveFns = require("./curveFns-CQIv_biC.cjs");
39
+ const require_curveFns = require("./curveFns-eR4vAVyT.cjs");
40
40
  const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
41
- const require_surfaceBuilders = require("./surfaceBuilders-D_w11wLr.cjs");
42
- const require_boolean2D = require("./boolean2D--RWVJEAM.cjs");
43
- const require_helpers = require("./helpers-CM63Nn7A.cjs");
44
- const require_blueprint = require("./blueprint-BkKnM_9w.cjs");
45
- const require_solidBuilders = require("./solidBuilders-DUl2f7gY.cjs");
46
- const require_cornerFinder = require("./cornerFinder-DLxiZcyg.cjs");
47
- const require_extrudeFns = require("./extrudeFns-WHKS4Oef.cjs");
41
+ const require_surfaceBuilders = require("./surfaceBuilders-Do5jrIrG.cjs");
42
+ const require_boolean2D = require("./boolean2D-BwCW-B30.cjs");
43
+ const require_helpers = require("./helpers-Do57l7FZ.cjs");
44
+ const require_blueprint = require("./blueprint-DRMsvuIW.cjs");
45
+ const require_solidBuilders = require("./solidBuilders-BJ5gVhvm.cjs");
46
+ const require_cornerFinder = require("./cornerFinder-C606yOAm.cjs");
47
+ const require_extrudeFns = require("./extrudeFns-TGgECRPk.cjs");
48
48
  let opentype_js = require("opentype.js");
49
- opentype_js = __toESM(opentype_js);
49
+ opentype_js = __toESM(opentype_js, 1);
50
50
  //#region src/2d/lib/stitching.ts
51
51
  /**
52
52
  * Group a flat list of curves into connected chains by matching endpoints.
@@ -1,19 +1,19 @@
1
- import { R as DisposalScope, X as getKernel, Y as _usingCtx, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-B9a2ed1X.js";
1
+ import { R as DisposalScope, X as getKernel, Y as _usingCtx, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, r as ioError, s as safeIndex, t as BrepErrorCode } from "./errors-DboJwVCf.js";
3
- import { M as cast, N as downcast, b as getEdges, c as normalAt, l as outerWire, n as faceCenter } from "./faceFns-BQ7czFFV.js";
3
+ import { M as cast, N as downcast, b as getEdges, c as normalAt, l as outerWire, n as faceCenter } from "./faceFns-Ce2sfezK.js";
4
4
  import { t as DEG2RAD } from "./constants-csSEYddm.js";
5
5
  import { r as toVec3 } from "./types--GD-LVc6.js";
6
6
  import { c as vecLength, d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-B-PCHgyB.js";
7
7
  import { a as planeToWorld, o as resolvePlane } from "./planeOps-sTrM3dcQ.js";
8
- import { m as offsetWire2D } from "./curveFns-D-0yqVb9.js";
8
+ import { m as offsetWire2D } from "./curveFns-Cuiu9Khj.js";
9
9
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-tCIbjLs5.js";
10
- import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-BY117AaY.js";
11
- import { S as Flatbush, _ as Blueprints, b as make2dOffset, c as roundedRectangleBlueprint, f as Sketch, g as CompoundBlueprint, h as organiseBlueprints, l as BaseSketcher2d, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as chamferCurves, x as intersectCurves, y as filletCurves } from "./boolean2D-DEiO0Uct.js";
12
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-C4r8ovx9.js";
13
- 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-BqdFeOSN.js";
14
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-C_-imolZ.js";
15
- import { t as cornerFinder } from "./cornerFinder-K7cjTnkP.js";
16
- import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-B3qZ8gzq.js";
10
+ import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-BDMHU4Ng.js";
11
+ import { S as Flatbush, _ as Blueprints, b as make2dOffset, c as roundedRectangleBlueprint, f as Sketch, g as CompoundBlueprint, h as organiseBlueprints, l as BaseSketcher2d, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as chamferCurves, x as intersectCurves, y as filletCurves } from "./boolean2D-CWNL216K.js";
12
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-BO5KthLn.js";
13
+ 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-BD4KS3uK.js";
14
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-CPWknuQG.js";
15
+ import { t as cornerFinder } from "./cornerFinder-C1eCd2NO.js";
16
+ import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-B-GeC5JR.js";
17
17
  import opentype from "opentype.js";
18
18
  //#region src/2d/lib/stitching.ts
19
19
  /**
@@ -1,4 +1,4 @@
1
- import { X as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DboJwVCf.js";
3
3
  import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-B-PCHgyB.js";
4
4
  //#region src/operations/extrudeUtils.ts
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
3
  const require_vecOps = require("./vecOps-CODplJp3.cjs");
4
4
  //#region src/operations/extrudeUtils.ts
@@ -1,4 +1,4 @@
1
- import { N as getOrQueryType, R as DisposalScope, X as getKernel, Y as _usingCtx, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-B9a2ed1X.js";
1
+ import { N as getOrQueryType, R as DisposalScope, X as getKernel, Y as _usingCtx, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, R as unwrap, b as err, f as getSuggestionForCode, l as typeCastError, p as translateKernelError } from "./errors-DboJwVCf.js";
3
3
  import { r as toVec3 } from "./types--GD-LVc6.js";
4
4
  //#region src/core/kernelCall.ts
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
3
  const require_types = require("./types-gLi9wL0N.cjs");
4
4
  //#region src/core/kernelCall.ts
@@ -1,11 +1,11 @@
1
- import { X as getKernel, p as isFace } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, p as isFace } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DboJwVCf.js";
3
- import { C as getVertices, b as getEdges, c as normalAt, o as getSurfaceType, w as getWires, x as getFaces } from "./faceFns-BQ7czFFV.js";
3
+ import { C as getVertices, b as getEdges, c as normalAt, o as getSurfaceType, w as getWires, x as getFaces } from "./faceFns-Ce2sfezK.js";
4
4
  import { t as DEG2RAD } from "./constants-csSEYddm.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-B-PCHgyB.js";
6
- import { a as isSameShape, n as getHashCode } from "./shapeFns-LgyEtLGl.js";
7
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-D-0yqVb9.js";
8
- import { n as measureArea } from "./measureFns-D5DbMnQY.js";
6
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-BYOfyHoL.js";
7
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-Cuiu9Khj.js";
8
+ import { n as measureArea } from "./measureFns-Beh8ggjV.js";
9
9
  //#region src/utils/vec2d.ts
10
10
  /** Precision for curve intersection and parameter operations. */
11
11
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.cjs");
5
5
  const require_vecOps = require("./vecOps-CODplJp3.cjs");
6
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
7
- const require_curveFns = require("./curveFns-CQIv_biC.cjs");
8
- const require_measureFns = require("./measureFns-BxAZf4Mf.cjs");
6
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
7
+ const require_curveFns = require("./curveFns-eR4vAVyT.cjs");
8
+ const require_measureFns = require("./measureFns-Af--KnjE.cjs");
9
9
  //#region src/utils/vec2d.ts
10
10
  /** Precision for curve intersection and parameter operations. */
11
11
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,9 +1,9 @@
1
- import { B as createKernelHandle, X as getKernel, t as castShape } from "./shapeTypes-B9a2ed1X.js";
1
+ import { B as createKernelHandle, X as getKernel, t as castShape } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DboJwVCf.js";
3
- import { P as fromBREP } from "./faceFns-BQ7czFFV.js";
3
+ import { P as fromBREP } from "./faceFns-Ce2sfezK.js";
4
4
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-B-PCHgyB.js";
5
- import { s as toBREP } from "./shapeFns-LgyEtLGl.js";
6
- import { a as fuseAll } from "./booleanFns-Cstp5Ep1.js";
5
+ import { s as toBREP } from "./shapeFns-BYOfyHoL.js";
6
+ import { a as fuseAll } from "./booleanFns-B4ZGNOr3.js";
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  const require_vecOps = require("./vecOps-CODplJp3.cjs");
5
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
6
- const require_booleanFns = require("./booleanFns-CwHfuxWc.cjs");
5
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
6
+ const require_booleanFns = require("./booleanFns-tCaPENXq.cjs");
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,7 +1,7 @@
1
- import { X as getKernel, t as castShape } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, t as castShape } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
3
3
  import { n as getAtOrThrow } from "./arrayAccess-tCIbjLs5.js";
4
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-BqdFeOSN.js";
4
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-BD4KS3uK.js";
5
5
  //#region src/io/objExportFns.ts
6
6
  /** Read a vec3 from a typed array at the given vertex index. */
7
7
  function vec3At(arr, i) {
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-DsnQpdSD.cjs");
4
- const require_blueprint = require("./blueprint-BkKnM_9w.cjs");
4
+ const require_blueprint = require("./blueprint-DRMsvuIW.cjs");
5
5
  //#region src/io/objExportFns.ts
6
6
  /** Read a vec3 from a typed array at the given vertex index. */
7
7
  function vec3At(arr, i) {
package/dist/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-BdEOTCwK.cjs");
3
- const require_importFns = require("./importFns--rg42dnv.cjs");
2
+ const require_meshFns = require("./meshFns-D_-6BkQl.cjs");
3
+ const require_importFns = require("./importFns-lv_acM3B.cjs");
4
4
  exports.blueprintToDXF = require_importFns.blueprintToDXF;
5
5
  exports.exportDXF = require_importFns.exportDXF;
6
6
  exports.exportGlb = require_importFns.exportGlb;
package/dist/io.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-C9DtKU7q.js";
2
- 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--VkKJoDs.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-fHojyH-k.js";
2
+ 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-BJ5uUwpa.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_occtWasmAdapter = require("../../occtWasmAdapter-CPINzXxh.cjs");
2
+ const require_occtWasmAdapter = require("../../occtWasmAdapter-DzzTUzYP.cjs");
3
3
  exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
@@ -1,2 +1,2 @@
1
- import { t as OcctWasmAdapter } from "../../occtWasmAdapter-BRiWV_v0.js";
1
+ import { t as OcctWasmAdapter } from "../../occtWasmAdapter-DLWC3oxC.js";
2
2
  export { OcctWasmAdapter };
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  //#region src/measurement/measureCache.ts
5
5
  var cache = /* @__PURE__ */ new WeakMap();
6
6
  function getCachedMeasurement(shape, key) {
@@ -1,6 +1,6 @@
1
- import { X as getKernel } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
3
- import { p as uvBounds, z as kernelCallRaw } from "./faceFns-BQ7czFFV.js";
3
+ import { p as uvBounds, z as kernelCallRaw } from "./faceFns-Ce2sfezK.js";
4
4
  //#region src/measurement/measureCache.ts
5
5
  var cache = /* @__PURE__ */ new WeakMap();
6
6
  function getCachedMeasurement(shape, key) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_measureFns = require("./measureFns-BxAZf4Mf.cjs");
2
+ const require_measureFns = require("./measureFns-Af--KnjE.cjs");
3
3
  exports.createDistanceQuery = require_measureFns.createDistanceQuery;
4
4
  exports.measureArea = require_measureFns.measureArea;
5
5
  exports.measureDistance = require_measureFns.measureDistance;
@@ -1,2 +1,2 @@
1
- import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-D5DbMnQY.js";
1
+ import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-Beh8ggjV.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
3
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
- import { X as getKernel } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, r as ioError } from "./errors-DboJwVCf.js";
3
- import { O as getFaceOrigins } from "./shapeFns-LgyEtLGl.js";
3
+ import { O as getFaceOrigins } from "./shapeFns-BYOfyHoL.js";
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -968,13 +968,13 @@ var OcctWasmAdapter = class {
968
968
  }
969
969
  makeCone(radius1, radius2, height, center, direction) {
970
970
  let id = this.k.makeCone(radius1, radius2, height);
971
- if (direction && (direction[0] !== 0 || direction[1] !== 0 || direction[2] !== 1)) {}
971
+ if (direction) id = rotateZToDirection(this.k, id, direction);
972
972
  if (center && (center[0] !== 0 || center[1] !== 0 || center[2] !== 0)) id = this.k.translate(id, center[0], center[1], center[2]);
973
973
  return handle("solid", id);
974
974
  }
975
975
  makeTorus(majorRadius, minorRadius, center, direction) {
976
976
  let id = this.k.makeTorus(majorRadius, minorRadius);
977
- if (direction && (direction[0] !== 0 || direction[1] !== 0 || direction[2] !== 1)) {}
977
+ if (direction) id = rotateZToDirection(this.k, id, direction);
978
978
  if (center && (center[0] !== 0 || center[1] !== 0 || center[2] !== 0)) id = this.k.translate(id, center[0], center[1], center[2]);
979
979
  return handle("solid", id);
980
980
  }
@@ -968,13 +968,13 @@ var OcctWasmAdapter = class {
968
968
  }
969
969
  makeCone(radius1, radius2, height, center, direction) {
970
970
  let id = this.k.makeCone(radius1, radius2, height);
971
- if (direction && (direction[0] !== 0 || direction[1] !== 0 || direction[2] !== 1)) {}
971
+ if (direction) id = rotateZToDirection(this.k, id, direction);
972
972
  if (center && (center[0] !== 0 || center[1] !== 0 || center[2] !== 0)) id = this.k.translate(id, center[0], center[1], center[2]);
973
973
  return handle("solid", id);
974
974
  }
975
975
  makeTorus(majorRadius, minorRadius, center, direction) {
976
976
  let id = this.k.makeTorus(majorRadius, minorRadius);
977
- if (direction && (direction[0] !== 0 || direction[1] !== 0 || direction[2] !== 1)) {}
977
+ if (direction) id = rotateZToDirection(this.k, id, direction);
978
978
  if (center && (center[0] !== 0 || center[1] !== 0 || center[2] !== 0)) id = this.k.translate(id, center[0], center[1], center[2]);
979
979
  return handle("solid", id);
980
980
  }
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-DkDJpwef.cjs");
3
- const require_extrudeFns = require("./extrudeFns-WHKS4Oef.cjs");
2
+ const require_historyFns = require("./historyFns-xcghTeWT.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-TGgECRPk.cjs");
4
4
  exports.addChild = require_historyFns.addChild;
5
5
  exports.addStep = require_historyFns.addStep;
6
6
  exports.circularPattern = require_historyFns.circularPattern;
@@ -1,3 +1,3 @@
1
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, 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-BFuHqN_0.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-B3qZ8gzq.js";
1
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, 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-_ZRHu7mY.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-B-GeC5JR.js";
3
3
  export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -1,10 +1,10 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.cjs");
5
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
6
- const require_surfaceBuilders = require("./surfaceBuilders-D_w11wLr.cjs");
7
- const require_solidBuilders = require("./solidBuilders-DUl2f7gY.cjs");
5
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
6
+ const require_surfaceBuilders = require("./surfaceBuilders-Do5jrIrG.cjs");
7
+ const require_solidBuilders = require("./solidBuilders-BJ5gVhvm.cjs");
8
8
  //#region src/topology/threeHelpers.ts
9
9
  /**
10
10
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,10 +1,10 @@
1
- import { X as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DboJwVCf.js";
3
- import { N as downcast, S as getOrCreateCache, T as invalidateShapeCache, b as getEdges, v as getCachedIsValid, w as getWires, x as getFaces } from "./faceFns-BQ7czFFV.js";
3
+ import { N as downcast, S as getOrCreateCache, T as invalidateShapeCache, b as getEdges, v as getCachedIsValid, w as getWires, x as getFaces } from "./faceFns-Ce2sfezK.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-csSEYddm.js";
5
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-LgyEtLGl.js";
6
- import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-BY117AaY.js";
7
- import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-C_-imolZ.js";
5
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-BYOfyHoL.js";
6
+ import { a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeEllipse, f as makeEllipseArc, g as makeThreePointArc, h as makeTangentArc, i as makeNewFaceWithinFace, l as makeBezierCurve, m as makeLine, o as makePolygon, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-BDMHU4Ng.js";
7
+ import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-CPWknuQG.js";
8
8
  //#region src/topology/threeHelpers.ts
9
9
  /**
10
10
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-CM63Nn7A.cjs");
3
- const require_cornerFinder = require("./cornerFinder-DLxiZcyg.cjs");
2
+ const require_helpers = require("./helpers-Do57l7FZ.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-C606yOAm.cjs");
4
4
  exports.cornerFinder = require_cornerFinder.cornerFinder;
5
5
  exports.edgeFinder = require_helpers.edgeFinder;
6
6
  exports.faceFinder = require_helpers.faceFinder;
package/dist/query.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-C4r8ovx9.js";
2
- import { t as cornerFinder } from "./cornerFinder-K7cjTnkP.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BO5KthLn.js";
2
+ import { t as cornerFinder } from "./cornerFinder-C1eCd2NO.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,6 +1,6 @@
1
- import { X as getKernel, t as castShape } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, t as castShape } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
3
- import { R as kernelCall, S as getOrCreateCache, _ as getCacheEntry, x as getFaces, z as kernelCallRaw } from "./faceFns-BQ7czFFV.js";
3
+ import { R as kernelCall, S as getOrCreateCache, _ as getCacheEntry, x as getFaces, z as kernelCallRaw } from "./faceFns-Ce2sfezK.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-csSEYddm.js";
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  const require_constants = require("./constants-BNP_xnBN.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-N0wl6XSn.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-BSqCvOMZ.cjs");
3
3
  exports.assignRoles = require_shapeRefFns.assignRoles;
4
4
  exports.captureHint = require_shapeRefFns.captureHint;
5
5
  exports.createRef = require_shapeRefFns.createRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-CgnpumqW.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-Cd-zuZ_d.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,6 +1,6 @@
1
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
2
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
3
- const require_measureFns = require("./measureFns-BxAZf4Mf.cjs");
1
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
2
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
3
+ const require_measureFns = require("./measureFns-Af--KnjE.cjs");
4
4
  //#region src/topology/shapeRef/scoring.ts
5
5
  /**
6
6
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,6 +1,6 @@
1
- import { c as normalAt, n as faceCenter, r as faceGeomType, x as getFaces } from "./faceFns-BQ7czFFV.js";
2
- import { n as getHashCode } from "./shapeFns-LgyEtLGl.js";
3
- import { n as measureArea } from "./measureFns-D5DbMnQY.js";
1
+ import { c as normalAt, n as faceCenter, r as faceGeomType, x as getFaces } from "./faceFns-Ce2sfezK.js";
2
+ import { n as getHashCode } from "./shapeFns-BYOfyHoL.js";
3
+ import { n as measureArea } from "./measureFns-Beh8ggjV.js";
4
4
  //#region src/topology/shapeRef/scoring.ts
5
5
  /**
6
6
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,4 +1,4 @@
1
- const require_occtWasmAdapter = require("./occtWasmAdapter-CPINzXxh.cjs");
1
+ const require_occtWasmAdapter = require("./occtWasmAdapter-DzzTUzYP.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
3
  //#region src/kernel/kernel2dTypes.ts
4
4
  /** Check if the kernel supports 2D geometry operations. */
@@ -2458,7 +2458,6 @@ function curveType$1(oc, shape) {
2458
2458
  const adaptor = shape.ShapeType() === oc.TopAbs_ShapeEnum.TopAbs_WIRE ? new oc.BRepAdaptor_CompCurve_2(shape, false) : new oc.BRepAdaptor_Curve_2(shape);
2459
2459
  const typeVal = adaptor.GetType();
2460
2460
  adaptor.delete();
2461
- const idx = typeof typeVal === "number" ? typeVal : Number(typeVal?.value ?? typeVal);
2462
2461
  return {
2463
2462
  0: "LINE",
2464
2463
  1: "CIRCLE",
@@ -2469,7 +2468,7 @@ function curveType$1(oc, shape) {
2469
2468
  6: "BSPLINE_CURVE",
2470
2469
  7: "OFFSET_CURVE",
2471
2470
  8: "OTHER_CURVE"
2472
- }[idx] ?? "OTHER_CURVE";
2471
+ }[typeof typeVal === "number" ? typeVal : Number(typeVal?.value ?? typeVal)] ?? "OTHER_CURVE";
2473
2472
  }
2474
2473
  /** Get the orientation of a shape. */
2475
2474
  function shapeOrientation$1(oc, shape) {
@@ -10919,7 +10918,7 @@ async function init() {
10919
10918
  throw new Error("brepjs: no kernel package found. Install one of:\n npm install brepjs-opencascade (recommended)\n npm install brepkit-wasm\n npm install occt-wasm (requires manual registerKernel)");
10920
10919
  }
10921
10920
  //#endregion
10922
- //#region \0@oxc-project+runtime@0.122.0/helpers/usingCtx.js
10921
+ //#region \0@oxc-project+runtime@0.124.0/helpers/usingCtx.js
10923
10922
  function _usingCtx() {
10924
10923
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
10925
10924
  var n = Error();
@@ -1,4 +1,4 @@
1
- import { _ as serializeCurve2d$2, a as curveTypeName, c as intersectCurves2dFn, d as makeEllipse2d$2, f as makeLine2d$2, g as scaleCurve2d$2, h as rotateCurve2d$2, i as curveBounds, l as makeBezier2d$2, m as mirrorAtPoint, n as addCurveToBBox, o as deserializeCurve2d$2, p as mirrorAcrossAxis, r as createBBox2d, s as evaluateCurve2d$2, u as makeCircle2d$2, v as tangentCurve2d, y as translateCurve2d$2 } from "./occtWasmAdapter-BRiWV_v0.js";
1
+ import { _ as serializeCurve2d$2, a as curveTypeName, c as intersectCurves2dFn, d as makeEllipse2d$2, f as makeLine2d$2, g as scaleCurve2d$2, h as rotateCurve2d$2, i as curveBounds, l as makeBezier2d$2, m as mirrorAtPoint, n as addCurveToBBox, o as deserializeCurve2d$2, p as mirrorAcrossAxis, r as createBBox2d, s as evaluateCurve2d$2, u as makeCircle2d$2, v as tangentCurve2d, y as translateCurve2d$2 } from "./occtWasmAdapter-DLWC3oxC.js";
2
2
  import { A as ok, b as err } from "./errors-DboJwVCf.js";
3
3
  //#region src/kernel/kernel2dTypes.ts
4
4
  /** Check if the kernel supports 2D geometry operations. */
@@ -2458,7 +2458,6 @@ function curveType$1(oc, shape) {
2458
2458
  const adaptor = shape.ShapeType() === oc.TopAbs_ShapeEnum.TopAbs_WIRE ? new oc.BRepAdaptor_CompCurve_2(shape, false) : new oc.BRepAdaptor_Curve_2(shape);
2459
2459
  const typeVal = adaptor.GetType();
2460
2460
  adaptor.delete();
2461
- const idx = typeof typeVal === "number" ? typeVal : Number(typeVal?.value ?? typeVal);
2462
2461
  return {
2463
2462
  0: "LINE",
2464
2463
  1: "CIRCLE",
@@ -2469,7 +2468,7 @@ function curveType$1(oc, shape) {
2469
2468
  6: "BSPLINE_CURVE",
2470
2469
  7: "OFFSET_CURVE",
2471
2470
  8: "OTHER_CURVE"
2472
- }[idx] ?? "OTHER_CURVE";
2471
+ }[typeof typeVal === "number" ? typeVal : Number(typeVal?.value ?? typeVal)] ?? "OTHER_CURVE";
2473
2472
  }
2474
2473
  /** Get the orientation of a shape. */
2475
2474
  function shapeOrientation$1(oc, shape) {
@@ -10911,7 +10910,7 @@ async function init() {
10911
10910
  throw new Error("brepjs: no kernel package found. Install one of:\n npm install brepjs-opencascade (recommended)\n npm install brepkit-wasm\n npm install occt-wasm (requires manual registerKernel)");
10912
10911
  }
10913
10912
  //#endregion
10914
- //#region \0@oxc-project+runtime@0.122.0/helpers/usingCtx.js
10913
+ //#region \0@oxc-project+runtime@0.124.0/helpers/usingCtx.js
10915
10914
  function _usingCtx() {
10916
10915
  var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
10917
10916
  var n = Error();
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-CZZsnlAR.cjs");
3
- const require_boolean2D = require("./boolean2D--RWVJEAM.cjs");
2
+ const require_drawFns = require("./drawFns-C4URqqIr.cjs");
3
+ const require_boolean2D = require("./boolean2D-BwCW-B30.cjs");
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,5 +1,5 @@
1
- import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-DEiO0Uct.js";
2
- import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, 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, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-BU7zRJy2.js";
1
+ import { d as FaceSketcher, f as Sketch, l as BaseSketcher2d, u as BlueprintSketcher } from "./boolean2D-CWNL216K.js";
2
+ import { $ as sketchFaceOffset, A as DrawingPen, B as drawSingleCircle, F as drawParametricFunction, H as drawText, I as drawPointsInterpolation, L as drawPolysides, M as draw, N as drawCircle, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, V as drawSingleEllipse, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, at as Sketcher, 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, k as Drawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-Di19TRz_.js";
3
3
  //#region src/sketching.ts
4
4
  /**
5
5
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, R as unwrap, b as err, l as typeCastError, v as andThen } from "./errors-DboJwVCf.js";
3
- import { M as cast, N as downcast } from "./faceFns-BQ7czFFV.js";
3
+ import { M as cast, N as downcast } from "./faceFns-Ce2sfezK.js";
4
4
  //#region src/topology/shapeUtils.ts
5
5
  /**
6
6
  * Shape assembly utilities — welding and sewing operations.
@@ -1,6 +1,6 @@
1
- import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-B9a2ed1X.js";
1
+ import { X as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-Tu03ijIx.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DboJwVCf.js";
3
- import { M as cast, l as outerWire } from "./faceFns-BQ7czFFV.js";
3
+ import { M as cast, l as outerWire } from "./faceFns-Ce2sfezK.js";
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-hQK4eaEw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-0QO9ycMV.cjs");
2
2
  const require_errors = require("./errors-CXRNVCec.cjs");
3
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
4
4
  //#region src/utils/range.ts
5
5
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
6
6
  function range(len) {
package/dist/topology.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_faceFns = require("./faceFns-uX_AVFqu.cjs");
3
- const require_shapeFns = require("./shapeFns-Dz2GNg2y.cjs");
4
- const require_curveFns = require("./curveFns-CQIv_biC.cjs");
5
- const require_meshFns = require("./meshFns-BdEOTCwK.cjs");
6
- const require_booleanFns = require("./booleanFns-CwHfuxWc.cjs");
7
- const require_primitiveFns = require("./primitiveFns-D3FvKWK-.cjs");
2
+ const require_faceFns = require("./faceFns-DP61KiyY.cjs");
3
+ const require_shapeFns = require("./shapeFns-wvNG7pAU.cjs");
4
+ const require_curveFns = require("./curveFns-eR4vAVyT.cjs");
5
+ const require_meshFns = require("./meshFns-D_-6BkQl.cjs");
6
+ const require_booleanFns = require("./booleanFns-tCaPENXq.cjs");
7
+ const require_primitiveFns = require("./primitiveFns-CYZuu9Il.cjs");
8
8
  exports.addHoles = require_primitiveFns.addHoles;
9
9
  exports.adjacentFaces = require_primitiveFns.adjacentFaces;
10
10
  exports.approximateCurve = require_curveFns.approximateCurve;
package/dist/topology.js CHANGED
@@ -1,7 +1,7 @@
1
- import { A as vertexPosition, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, g as getBounds, i as faceOrientation, j as asTopo, k as iterWires, 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, w as getWires, x as getFaces } from "./faceFns-BQ7czFFV.js";
2
- import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-LgyEtLGl.js";
3
- 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-0yqVb9.js";
4
- import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-C9DtKU7q.js";
5
- import { a as fuseAll, r as cutAll } from "./booleanFns-Cstp5Ep1.js";
6
- import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-Bpq2yFqw.js";
1
+ import { A as vertexPosition, C as getVertices, D as iterFaces, E as iterEdges, F as isCompSolid, I as iterTopo, L as shapeType, M as cast, N as downcast, O as iterVertices, P as fromBREP, T as invalidateShapeCache, a as flipFaceOrientation, b as getEdges, c as normalAt, d as projectPointOnFace, g as getBounds, i as faceOrientation, j as asTopo, k as iterWires, 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, w as getWires, x as getFaces } from "./faceFns-Ce2sfezK.js";
2
+ import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-BYOfyHoL.js";
3
+ 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-Cuiu9Khj.js";
4
+ import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-fHojyH-k.js";
5
+ import { a as fuseAll, r as cutAll } from "./booleanFns-B4ZGNOr3.js";
6
+ import { $ as getNurbsSurfaceData, A as fixShape, C as threePointArc, D as wireLoop, E as wire, G as chamferWithEvolution, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as getNurbsCurveData, S as tangentArc, T as vertex, U as variableFillet, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, ut as toLineGeometryData, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-DmvY2gVS.js";
7
7
  export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brepjs",
3
- "version": "15.2.11",
3
+ "version": "15.2.12",
4
4
  "description": "Web CAD library with pluggable geometry kernel",
5
5
  "keywords": [
6
6
  "cad",
@@ -215,25 +215,25 @@
215
215
  "@commitlint/cli": "20.5.0",
216
216
  "@commitlint/config-conventional": "20.5.0",
217
217
  "@eslint/js": "10.0.1",
218
- "@size-limit/file": "12.0.1",
218
+ "@size-limit/file": "12.1.0",
219
219
  "@types/opentype.js": "1.3.9",
220
- "@vitest/coverage-v8": "4.1.2",
220
+ "@vitest/coverage-v8": "4.1.4",
221
221
  "brepjs-opencascade": "*",
222
- "brepkit-wasm": "2.43.6",
223
- "eslint": "10.2.0",
224
- "fast-check": "4.6.0",
222
+ "brepkit-wasm": "2.43.10",
223
+ "eslint": "10.2.1",
224
+ "fast-check": "4.7.0",
225
225
  "husky": "9.1.7",
226
- "knip": "6.3.0",
226
+ "knip": "6.4.1",
227
227
  "lint-staged": "16.4.0",
228
228
  "occt-wasm": "1.5.0",
229
- "prettier": "3.8.1",
230
- "size-limit": "12.0.1",
231
- "typedoc": "0.28.18",
232
- "typescript": "6.0.2",
233
- "typescript-eslint": "8.58.0",
234
- "vite": "8.0.5",
229
+ "prettier": "3.8.3",
230
+ "size-limit": "12.1.0",
231
+ "typedoc": "0.28.19",
232
+ "typescript": "6.0.3",
233
+ "typescript-eslint": "8.58.2",
234
+ "vite": "8.0.8",
235
235
  "vite-plugin-dts": "4.5.4",
236
- "vitest": "4.1.2"
236
+ "vitest": "4.1.4"
237
237
  },
238
238
  "peerDependencies": {
239
239
  "brepjs-opencascade": "^0.5.1 || ^0.6.0 || ^0.7.0 || ^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^0.14.0 || ^0.15.0",