brepjs 15.1.7 → 15.1.8

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 (89) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{blueprint-xXn5kpyL.js → blueprint-BOICL-YA.js} +9 -9
  4. package/dist/{blueprint-4w3i6ayW.cjs → blueprint-CjWjaFBx.cjs} +9 -9
  5. package/dist/{blueprintFns-Dh7aCCTB.js → blueprintFns-DIDr-6k3.js} +3 -3
  6. package/dist/{blueprintFns-BfxfImfI.cjs → blueprintFns-PEdKpSH9.cjs} +3 -3
  7. package/dist/{boolean2D-C-2D1eJM.cjs → boolean2D-DIrXfRsK.cjs} +12 -12
  8. package/dist/{boolean2D-dM-8lArM.js → boolean2D-rza7Dzie.js} +12 -12
  9. package/dist/{booleanFns-CtB8HSYZ.cjs → booleanFns-BnuuzsmS.cjs} +9 -9
  10. package/dist/{booleanFns-rk8Xn7sF.js → booleanFns-CrxLrhiY.js} +9 -9
  11. package/dist/brepjs.cjs +27 -25
  12. package/dist/brepjs.js +27 -26
  13. package/dist/core.cjs +5 -5
  14. package/dist/core.js +5 -5
  15. package/dist/{cornerFinder-C8VD-Eap.js → cornerFinder-BqBKxpw9.js} +3 -3
  16. package/dist/{cornerFinder-D7Q8B0yg.cjs → cornerFinder-lvtKN6D-.cjs} +3 -3
  17. package/dist/{curveFns-6oIwf4om.cjs → curveFns-BAYdU9o3.cjs} +2 -2
  18. package/dist/{curveFns-JTh5okGu.js → curveFns-ZfTMJwOX.js} +2 -2
  19. package/dist/{drawFns-ByjqoZ3q.cjs → drawFns-Be2-GMV1.cjs} +15 -15
  20. package/dist/{drawFns-EKQejy-Y.js → drawFns-DecOOibJ.js} +15 -15
  21. package/dist/{extrudeFns-xBCFBG7e.js → extrudeFns-BayH4aST.js} +3 -3
  22. package/dist/{extrudeFns-Don0l4Wq.cjs → extrudeFns-r4z8JjXR.cjs} +3 -3
  23. package/dist/{faceFns-CBdCV-j8.js → faceFns-B0abunWd.js} +3 -3
  24. package/dist/{faceFns-Z6uVCQfc.cjs → faceFns-D3Ge4FIP.cjs} +3 -3
  25. package/dist/{helpers-WtVQGyPq.cjs → helpers-BKiwf-pE.cjs} +8 -8
  26. package/dist/{helpers-Cko_0e9R.js → helpers-D4PQ7xhP.js} +8 -8
  27. package/dist/{historyFns-DAwbriEi.js → historyFns-BoRzKlCs.js} +6 -6
  28. package/dist/{historyFns-C6pu-q9C.cjs → historyFns-DUIQaLVi.cjs} +6 -6
  29. package/dist/{importFns-M40taVnq.js → importFns-BUO0pwJ6.js} +4 -4
  30. package/dist/{importFns-CP0NNYks.cjs → importFns-C3q2BF1x.cjs} +4 -4
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/io.cjs +2 -2
  34. package/dist/io.js +2 -2
  35. package/dist/kernel/index.d.ts +2 -0
  36. package/dist/kernel/index.d.ts.map +1 -1
  37. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +3 -0
  38. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -0
  39. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts.map +1 -1
  40. package/dist/kernel/occtWasm/occtWasmAdapter.js +2 -0
  41. package/dist/{measureFns-Dw3gJxtW.cjs → measureFns-CEBFLLb5.cjs} +3 -3
  42. package/dist/{measureFns-Br7xFNAT.js → measureFns-_58_x_YA.js} +3 -3
  43. package/dist/measurement.cjs +1 -1
  44. package/dist/measurement.js +1 -1
  45. package/dist/{meshFns-DjQq5QKD.js → meshFns-Df6b-fuz.js} +3 -3
  46. package/dist/{meshFns-cz1MJEPV.cjs → meshFns-crHPkhoE.cjs} +3 -3
  47. package/dist/occtWasmAdapter-B8K7kN7m.js +3265 -0
  48. package/dist/occtWasmAdapter-DYjViuTQ.cjs +3378 -0
  49. package/dist/operations.cjs +2 -2
  50. package/dist/operations.js +2 -2
  51. package/dist/{planeOps-De5KoY28.js → planeOps-C94s53Ia.js} +3 -3
  52. package/dist/{planeOps-BXsq07La.cjs → planeOps-DoTESDTM.cjs} +3 -3
  53. package/dist/{primitiveFns-C-Z7pzVe.js → primitiveFns-BpSN8ikw.js} +7 -7
  54. package/dist/{primitiveFns-DIKm4sVE.cjs → primitiveFns-D4h33-Zc.cjs} +7 -7
  55. package/dist/query.cjs +2 -2
  56. package/dist/query.js +2 -2
  57. package/dist/result.cjs +1 -1
  58. package/dist/result.js +1 -1
  59. package/dist/{shapeFns-C_gFeOcq.js → shapeFns-CU69rY5c.js} +4 -4
  60. package/dist/{shapeFns-D5WE20WA.cjs → shapeFns-DFey0u1e.cjs} +4 -4
  61. package/dist/shapeRef.cjs +1 -1
  62. package/dist/shapeRef.js +1 -1
  63. package/dist/{shapeRefFns-C-h3UVLi.js → shapeRefFns-BXfiUUBm.js} +3 -3
  64. package/dist/{shapeRefFns-BYkjUjgL.cjs → shapeRefFns-KTeGJjhQ.cjs} +3 -3
  65. package/dist/{shapeTypes-D3seZBe7.js → shapeTypes-Ct7hPC-B.js} +3 -649
  66. package/dist/{shapeTypes-DoBHuzjo.cjs → shapeTypes-DhdxzErV.cjs} +131 -769
  67. package/dist/sketching.cjs +2 -2
  68. package/dist/sketching.js +2 -2
  69. package/dist/{solidBuilders-CJLijwcy.cjs → solidBuilders-QEzWeF-_.cjs} +3 -3
  70. package/dist/{solidBuilders-BIWD6a-a.js → solidBuilders-etpPzJCP.js} +3 -3
  71. package/dist/{surfaceBuilders-DpoOuVmz.cjs → surfaceBuilders-Bret7wF4.cjs} +3 -3
  72. package/dist/{surfaceBuilders-DewviEAb.js → surfaceBuilders-DyR1Pdu_.js} +3 -3
  73. package/dist/topology.cjs +6 -6
  74. package/dist/topology.js +6 -6
  75. package/dist/vectors.cjs +3 -3
  76. package/dist/vectors.js +3 -3
  77. package/dist/worker.cjs +1 -1
  78. package/dist/worker.js +1 -1
  79. package/package.json +10 -10
  80. /package/dist/{arrayAccess-DsvS2R9t.cjs → arrayAccess-CmulMesb.cjs} +0 -0
  81. /package/dist/{arrayAccess-E7Lh-LcJ.js → arrayAccess-xxcB3YNq.js} +0 -0
  82. /package/dist/{errors-9zQcQK1H.cjs → errors-CXRNVCec.cjs} +0 -0
  83. /package/dist/{errors-C-cgQA3w.js → errors-DboJwVCf.js} +0 -0
  84. /package/dist/{types-ETLaP595.js → types-SLY3VwcI.js} +0 -0
  85. /package/dist/{types-TXQ7s56_.cjs → types-hXSlplF3.cjs} +0 -0
  86. /package/dist/{vecOps-EPq_YMgb.cjs → vecOps-BXvBYIor.cjs} +0 -0
  87. /package/dist/{vecOps-DaF0LUsD.js → vecOps-D9etjPgV.js} +0 -0
  88. /package/dist/{workerHandler-Dl5bx8Qj.cjs → workerHandler-C-7OUJsa.cjs} +0 -0
  89. /package/dist/{workerHandler-DHY0IzlP.js → workerHandler-o2xzAfFk.js} +0 -0
package/dist/2d.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-DoBHuzjo.cjs");
3
- const require_errors = require("./errors-9zQcQK1H.cjs");
4
- const require_faceFns = require("./faceFns-Z6uVCQfc.cjs");
5
- const require_boolean2D = require("./boolean2D-C-2D1eJM.cjs");
6
- const require_blueprint = require("./blueprint-4w3i6ayW.cjs");
7
- const require_blueprintFns = require("./blueprintFns-BfxfImfI.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
3
+ const require_errors = require("./errors-CXRNVCec.cjs");
4
+ const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
5
+ const require_boolean2D = require("./boolean2D-DIrXfRsK.cjs");
6
+ const require_blueprint = require("./blueprint-CjWjaFBx.cjs");
7
+ const require_blueprintFns = require("./blueprintFns-PEdKpSH9.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-D3seZBe7.js";
2
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
3
- import { B as kernelCallRaw } from "./faceFns-CBdCV-j8.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-dM-8lArM.js";
5
- import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-xXn5kpyL.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-Dh7aCCTB.js";
1
+ import { B as createKernelHandle, Z as getKernel2D, a as createEdge } from "./shapeTypes-Ct7hPC-B.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DboJwVCf.js";
3
+ import { B as kernelCallRaw } from "./faceFns-B0abunWd.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-rza7Dzie.js";
5
+ import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-BOICL-YA.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-DIDr-6k3.js";
7
7
  //#region src/core/curve2dHandle.ts
8
8
  /**
9
9
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,12 +1,12 @@
1
- import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-D3seZBe7.js";
2
- import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-C-cgQA3w.js";
3
- import { N as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-CBdCV-j8.js";
4
- import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-ETLaP595.js";
5
- import { r as makePlane } from "./planeOps-De5KoY28.js";
6
- import { f as getOrientation } from "./curveFns-JTh5okGu.js";
7
- import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-E7Lh-LcJ.js";
8
- import { r as makeFace } from "./surfaceBuilders-DewviEAb.js";
9
- import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-Cko_0e9R.js";
1
+ import { G as unregisterFromCleanup, U as registerForCleanup, X as getKernel, Z as getKernel2D, a as createEdge, u as createWire } from "./shapeTypes-Ct7hPC-B.js";
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 { N as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-B0abunWd.js";
4
+ import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-SLY3VwcI.js";
5
+ import { r as makePlane } from "./planeOps-C94s53Ia.js";
6
+ import { f as getOrientation } from "./curveFns-ZfTMJwOX.js";
7
+ import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
8
+ import { r as makeFace } from "./surfaceBuilders-DyR1Pdu_.js";
9
+ import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-D4PQ7xhP.js";
10
10
  //#region src/2d/lib/definitions.ts
11
11
  /** Type guard that checks whether a value is a `Point2D`. */
12
12
  function isPoint2D(point) {
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-DoBHuzjo.cjs");
2
- const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-Z6uVCQfc.cjs");
4
- const require_types = require("./types-TXQ7s56_.cjs");
5
- const require_planeOps = require("./planeOps-BXsq07La.cjs");
6
- const require_curveFns = require("./curveFns-6oIwf4om.cjs");
7
- const require_arrayAccess = require("./arrayAccess-DsvS2R9t.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-DpoOuVmz.cjs");
9
- const require_helpers = require("./helpers-WtVQGyPq.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
2
+ const require_errors = require("./errors-CXRNVCec.cjs");
3
+ const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
4
+ const require_types = require("./types-hXSlplF3.cjs");
5
+ const require_planeOps = require("./planeOps-DoTESDTM.cjs");
6
+ const require_curveFns = require("./curveFns-BAYdU9o3.cjs");
7
+ const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
9
+ const require_helpers = require("./helpers-BKiwf-pE.cjs");
10
10
  //#region src/2d/lib/definitions.ts
11
11
  /** Type guard that checks whether a value is a `Point2D`. */
12
12
  function isPoint2D(point) {
@@ -1,6 +1,6 @@
1
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
2
- import { g as CompoundBlueprint } from "./boolean2D-dM-8lArM.js";
3
- import { t as Blueprint } from "./blueprint-xXn5kpyL.js";
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-rza7Dzie.js";
3
+ import { t as Blueprint } from "./blueprint-BOICL-YA.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
- const require_errors = require("./errors-9zQcQK1H.cjs");
2
- const require_boolean2D = require("./boolean2D-C-2D1eJM.cjs");
3
- const require_blueprint = require("./blueprint-4w3i6ayW.cjs");
1
+ const require_errors = require("./errors-CXRNVCec.cjs");
2
+ const require_boolean2D = require("./boolean2D-DIrXfRsK.cjs");
3
+ const require_blueprint = require("./blueprint-CjWjaFBx.cjs");
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,15 +1,15 @@
1
- const require_shapeTypes = require("./shapeTypes-DoBHuzjo.cjs");
2
- const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-Z6uVCQfc.cjs");
4
- const require_types = require("./types-TXQ7s56_.cjs");
5
- const require_vecOps = require("./vecOps-EPq_YMgb.cjs");
6
- const require_planeOps = require("./planeOps-BXsq07La.cjs");
7
- const require_curveFns = require("./curveFns-6oIwf4om.cjs");
8
- const require_arrayAccess = require("./arrayAccess-DsvS2R9t.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-DpoOuVmz.cjs");
10
- const require_helpers = require("./helpers-WtVQGyPq.cjs");
11
- const require_blueprint = require("./blueprint-4w3i6ayW.cjs");
12
- const require_extrudeFns = require("./extrudeFns-Don0l4Wq.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
2
+ const require_errors = require("./errors-CXRNVCec.cjs");
3
+ const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
4
+ const require_types = require("./types-hXSlplF3.cjs");
5
+ const require_vecOps = require("./vecOps-BXvBYIor.cjs");
6
+ const require_planeOps = require("./planeOps-DoTESDTM.cjs");
7
+ const require_curveFns = require("./curveFns-BAYdU9o3.cjs");
8
+ const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
10
+ const require_helpers = require("./helpers-BKiwf-pE.cjs");
11
+ const require_blueprint = require("./blueprint-CjWjaFBx.cjs");
12
+ const require_extrudeFns = require("./extrudeFns-r4z8JjXR.cjs");
13
13
  //#region node_modules/flatqueue/index.js
14
14
  /** @template T */
15
15
  var FlatQueue = class {
@@ -1,15 +1,15 @@
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-D3seZBe7.js";
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-C-cgQA3w.js";
3
- import { P as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-CBdCV-j8.js";
4
- import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-ETLaP595.js";
5
- import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-DaF0LUsD.js";
6
- import { n as createPlane } from "./planeOps-De5KoY28.js";
7
- import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-JTh5okGu.js";
8
- import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-E7Lh-LcJ.js";
9
- import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-DewviEAb.js";
10
- import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-Cko_0e9R.js";
11
- import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-xXn5kpyL.js";
12
- import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-xBCFBG7e.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-Ct7hPC-B.js";
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 { P as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-B0abunWd.js";
4
+ import { i as DEG2RAD, o as RAD2DEG, r as toVec3 } from "./types-SLY3VwcI.js";
5
+ import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-D9etjPgV.js";
6
+ import { n as createPlane } from "./planeOps-C94s53Ia.js";
7
+ import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-ZfTMJwOX.js";
8
+ import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
9
+ import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-DyR1Pdu_.js";
10
+ import { _ as samePoint$1, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-D4PQ7xhP.js";
11
+ import { _ as Curve2D, b as removeDuplicatePoints, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-BOICL-YA.js";
12
+ import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-BayH4aST.js";
13
13
  //#region node_modules/flatqueue/index.js
14
14
  /** @template T */
15
15
  var FlatQueue = class {
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-DoBHuzjo.cjs");
2
- const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-Z6uVCQfc.cjs");
4
- const require_types = require("./types-TXQ7s56_.cjs");
5
- const require_vecOps = require("./vecOps-EPq_YMgb.cjs");
6
- const require_planeOps = require("./planeOps-BXsq07La.cjs");
7
- const require_shapeFns = require("./shapeFns-D5WE20WA.cjs");
8
- const require_arrayAccess = require("./arrayAccess-DsvS2R9t.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-DpoOuVmz.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
2
+ const require_errors = require("./errors-CXRNVCec.cjs");
3
+ const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
4
+ const require_types = require("./types-hXSlplF3.cjs");
5
+ const require_vecOps = require("./vecOps-BXvBYIor.cjs");
6
+ const require_planeOps = require("./planeOps-DoTESDTM.cjs");
7
+ const require_shapeFns = require("./shapeFns-DFey0u1e.cjs");
8
+ const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
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
- import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-D3seZBe7.js";
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-C-cgQA3w.js";
3
- import { C as getVertices, b as getEdges, j as getOrQueryHashCode, w as getWires } from "./faceFns-CBdCV-j8.js";
4
- import { a as HASH_CODE_MAX } from "./types-ETLaP595.js";
5
- import { h as vecScale, t as vecAdd } from "./vecOps-DaF0LUsD.js";
6
- import { o as resolvePlane } from "./planeOps-De5KoY28.js";
7
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-C_gFeOcq.js";
8
- import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-E7Lh-LcJ.js";
9
- import { r as makeFace } from "./surfaceBuilders-DewviEAb.js";
1
+ import { X as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-Ct7hPC-B.js";
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, j as getOrQueryHashCode, w as getWires } from "./faceFns-B0abunWd.js";
4
+ import { a as HASH_CODE_MAX } from "./types-SLY3VwcI.js";
5
+ import { h as vecScale, t as vecAdd } from "./vecOps-D9etjPgV.js";
6
+ import { o as resolvePlane } from "./planeOps-C94s53Ia.js";
7
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-CU69rY5c.js";
8
+ import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
9
+ import { r as makeFace } from "./surfaceBuilders-DyR1Pdu_.js";
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,29 +1,30 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-ByjqoZ3q.cjs");
3
- const require_shapeTypes = require("./shapeTypes-DoBHuzjo.cjs");
4
- const require_errors = require("./errors-9zQcQK1H.cjs");
5
- const require_faceFns = require("./faceFns-Z6uVCQfc.cjs");
6
- const require_types = require("./types-TXQ7s56_.cjs");
7
- const require_vecOps = require("./vecOps-EPq_YMgb.cjs");
8
- const require_planeOps = require("./planeOps-BXsq07La.cjs");
9
- const require_shapeFns = require("./shapeFns-D5WE20WA.cjs");
10
- const require_curveFns = require("./curveFns-6oIwf4om.cjs");
11
- const require_meshFns = require("./meshFns-cz1MJEPV.cjs");
12
- const require_arrayAccess = require("./arrayAccess-DsvS2R9t.cjs");
13
- const require_surfaceBuilders = require("./surfaceBuilders-DpoOuVmz.cjs");
14
- const require_booleanFns = require("./booleanFns-CtB8HSYZ.cjs");
15
- const require_primitiveFns = require("./primitiveFns-DIKm4sVE.cjs");
16
- const require_historyFns = require("./historyFns-C6pu-q9C.cjs");
17
- const require_boolean2D = require("./boolean2D-C-2D1eJM.cjs");
18
- const require_helpers = require("./helpers-WtVQGyPq.cjs");
19
- const require_solidBuilders = require("./solidBuilders-CJLijwcy.cjs");
20
- const require_measureFns = require("./measureFns-Dw3gJxtW.cjs");
21
- const require_cornerFinder = require("./cornerFinder-D7Q8B0yg.cjs");
22
- const require_extrudeFns = require("./extrudeFns-Don0l4Wq.cjs");
23
- const require_blueprintFns = require("./blueprintFns-BfxfImfI.cjs");
24
- const require_importFns = require("./importFns-CP0NNYks.cjs");
25
- const require_shapeRefFns = require("./shapeRefFns-BYkjUjgL.cjs");
26
- const require_workerHandler = require("./workerHandler-Dl5bx8Qj.cjs");
2
+ const require_drawFns = require("./drawFns-Be2-GMV1.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
4
+ const require_occtWasmAdapter = require("./occtWasmAdapter-DYjViuTQ.cjs");
5
+ const require_errors = require("./errors-CXRNVCec.cjs");
6
+ const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
7
+ const require_types = require("./types-hXSlplF3.cjs");
8
+ const require_vecOps = require("./vecOps-BXvBYIor.cjs");
9
+ const require_planeOps = require("./planeOps-DoTESDTM.cjs");
10
+ const require_shapeFns = require("./shapeFns-DFey0u1e.cjs");
11
+ const require_curveFns = require("./curveFns-BAYdU9o3.cjs");
12
+ const require_meshFns = require("./meshFns-crHPkhoE.cjs");
13
+ const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
14
+ const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
15
+ const require_booleanFns = require("./booleanFns-BnuuzsmS.cjs");
16
+ const require_primitiveFns = require("./primitiveFns-D4h33-Zc.cjs");
17
+ const require_historyFns = require("./historyFns-DUIQaLVi.cjs");
18
+ const require_boolean2D = require("./boolean2D-DIrXfRsK.cjs");
19
+ const require_helpers = require("./helpers-BKiwf-pE.cjs");
20
+ const require_solidBuilders = require("./solidBuilders-QEzWeF-_.cjs");
21
+ const require_measureFns = require("./measureFns-CEBFLLb5.cjs");
22
+ const require_cornerFinder = require("./cornerFinder-lvtKN6D-.cjs");
23
+ const require_extrudeFns = require("./extrudeFns-r4z8JjXR.cjs");
24
+ const require_blueprintFns = require("./blueprintFns-PEdKpSH9.cjs");
25
+ const require_importFns = require("./importFns-C3q2BF1x.cjs");
26
+ const require_shapeRefFns = require("./shapeRefFns-KTeGJjhQ.cjs");
27
+ const require_workerHandler = require("./workerHandler-C-7OUJsa.cjs");
27
28
  //#region src/topology/shapeBooleans.ts
28
29
  var BOPAlgo_GlueShift = 1;
29
30
  var BOPAlgo_GlueFull = 2;
@@ -2768,6 +2769,7 @@ exports.DEG2RAD = require_types.DEG2RAD;
2768
2769
  exports.DisposalScope = require_shapeTypes.DisposalScope;
2769
2770
  exports.HASH_CODE_MAX = require_types.HASH_CODE_MAX;
2770
2771
  exports.OK = require_errors.OK;
2772
+ exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
2771
2773
  exports.RAD2DEG = require_types.RAD2DEG;
2772
2774
  exports.Sketch = require_boolean2D.Sketch;
2773
2775
  exports.Sketches = require_drawFns.Sketches;
package/dist/brepjs.js CHANGED
@@ -1,28 +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-D3seZBe7.js";
2
- 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-C-cgQA3w.js";
3
- import { A as vertexPosition, B as kernelCallRaw, C as getVertices, D as iterFaces, E as iterEdges, F as fromBREP, I as isCompSolid, L as iterTopo, M as asTopo, N as cast, O as iterVertices, P as downcast, R as shapeType, T as invalidateShapeCache, V as kernelCallScoped, 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, 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 kernelCall } from "./faceFns-CBdCV-j8.js";
4
- import { a as HASH_CODE_MAX, i as DEG2RAD, n as toVec2, o as RAD2DEG, r as toVec3, t as resolveDirection } from "./types-ETLaP595.js";
5
- 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-DaF0LUsD.js";
6
- import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-De5KoY28.js";
7
- 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-C_gFeOcq.js";
8
- import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-JTh5okGu.js";
9
- 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-DjQq5QKD.js";
10
- import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-E7Lh-LcJ.js";
11
- import { n as fill, r as makeFace } from "./surfaceBuilders-DewviEAb.js";
12
- 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-rk8Xn7sF.js";
13
- 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-C-Z7pzVe.js";
14
- 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-DAwbriEi.js";
15
- 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-dM-8lArM.js";
16
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Cko_0e9R.js";
17
- 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-EKQejy-Y.js";
18
- import { r as makeCylinder } from "./solidBuilders-BIWD6a-a.js";
19
- 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-Br7xFNAT.js";
20
- import { t as cornerFinder } from "./cornerFinder-C8VD-Eap.js";
21
- 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-xBCFBG7e.js";
22
- 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-Dh7aCCTB.js";
23
- 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-M40taVnq.js";
24
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-C-h3UVLi.js";
25
- 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-DHY0IzlP.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-Ct7hPC-B.js";
2
+ import { t as OcctWasmAdapter } from "./occtWasmAdapter-B8K7kN7m.js";
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 kernelCallRaw, C as getVertices, D as iterFaces, E as iterEdges, F as fromBREP, I as isCompSolid, L as iterTopo, M as asTopo, N as cast, O as iterVertices, P as downcast, R as shapeType, T as invalidateShapeCache, V as kernelCallScoped, 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, 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 kernelCall } from "./faceFns-B0abunWd.js";
5
+ import { a as HASH_CODE_MAX, i as DEG2RAD, n as toVec2, o as RAD2DEG, r as toVec3, t as resolveDirection } from "./types-SLY3VwcI.js";
6
+ 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-D9etjPgV.js";
7
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-C94s53Ia.js";
8
+ 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-CU69rY5c.js";
9
+ 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-ZfTMJwOX.js";
10
+ 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-Df6b-fuz.js";
11
+ import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
12
+ import { n as fill, r as makeFace } from "./surfaceBuilders-DyR1Pdu_.js";
13
+ 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-CrxLrhiY.js";
14
+ 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-BpSN8ikw.js";
15
+ 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-BoRzKlCs.js";
16
+ 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-rza7Dzie.js";
17
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-D4PQ7xhP.js";
18
+ 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-DecOOibJ.js";
19
+ import { r as makeCylinder } from "./solidBuilders-etpPzJCP.js";
20
+ 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-_58_x_YA.js";
21
+ import { t as cornerFinder } from "./cornerFinder-BqBKxpw9.js";
22
+ 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-BayH4aST.js";
23
+ 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-DIDr-6k3.js";
24
+ 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-BUO0pwJ6.js";
25
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BXfiUUBm.js";
26
+ 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-o2xzAfFk.js";
26
27
  //#region \0rolldown/runtime.js
27
28
  var __defProp = Object.defineProperty;
28
29
  var __exportAll = (all, no_symbols) => {
@@ -2762,4 +2763,4 @@ var patterns_exports = /* @__PURE__ */ __exportAll({
2762
2763
  linearPattern: () => linearPattern
2763
2764
  });
2764
2765
  //#endregion
2765
- export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, assignRoles, autoHeal, bezier, blueprintToDXF, booleanPipeline, booleans_exports as booleans, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, captureHint, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkBoolean, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, construction_exports as construction, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRef, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutBlueprints, cutWithEvolution, cylinder, defaultScorer, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, extrudeAll, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseBlueprints, fuseWithEvolution, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getOrientation2D, getPerformanceStats, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioNs_exports as io, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, loftAll, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, measurement_exports as measurement, mesh, meshEdges, meshMultiLOD, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifiers_exports as modifiers, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, patterns_exports as patterns, pendingCount, pipeline, pivotPlane, planarFace, planarWire, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, primitives_exports as primitives, projectEdges, projectPointOnFace, query_exports as query, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resetPerformanceStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, resolveRef, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLODGeometryData, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, transforms_exports as transforms, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, updateRoles, uvBounds, uvCoordinates, validSolid, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
2766
+ export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, OcctWasmAdapter, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, assignRoles, autoHeal, bezier, blueprintToDXF, booleanPipeline, booleans_exports as booleans, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, captureHint, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkBoolean, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, construction_exports as construction, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRef, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutBlueprints, cutWithEvolution, cylinder, defaultScorer, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, extrudeAll, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseBlueprints, fuseWithEvolution, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getOrientation2D, getPerformanceStats, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioNs_exports as io, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, loftAll, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, measurement_exports as measurement, mesh, meshEdges, meshMultiLOD, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifiers_exports as modifiers, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, patterns_exports as patterns, pendingCount, pipeline, pivotPlane, planarFace, planarWire, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, primitives_exports as primitives, projectEdges, projectPointOnFace, query_exports as query, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resetPerformanceStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, resolveRef, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLODGeometryData, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, transforms_exports as transforms, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, updateRoles, uvBounds, uvCoordinates, validSolid, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
package/dist/core.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-DoBHuzjo.cjs");
3
- const require_errors = require("./errors-9zQcQK1H.cjs");
4
- const require_types = require("./types-TXQ7s56_.cjs");
5
- const require_vecOps = require("./vecOps-EPq_YMgb.cjs");
6
- const require_planeOps = require("./planeOps-BXsq07La.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
3
+ const require_errors = require("./errors-CXRNVCec.cjs");
4
+ const require_types = require("./types-hXSlplF3.cjs");
5
+ const require_vecOps = require("./vecOps-BXvBYIor.cjs");
6
+ const require_planeOps = require("./planeOps-DoTESDTM.cjs");
7
7
  exports.BrepBugError = require_errors.BrepBugError;
8
8
  exports.DEG2RAD = require_types.DEG2RAD;
9
9
  exports.DisposalScope = require_shapeTypes.DisposalScope;
package/dist/core.js CHANGED
@@ -1,6 +1,6 @@
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-D3seZBe7.js";
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-C-cgQA3w.js";
3
- import { a as HASH_CODE_MAX, i as DEG2RAD, n as toVec2, o as RAD2DEG, r as toVec3, t as resolveDirection } from "./types-ETLaP595.js";
4
- 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-DaF0LUsD.js";
5
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-De5KoY28.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-Ct7hPC-B.js";
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
+ import { a as HASH_CODE_MAX, i as DEG2RAD, n as toVec2, o as RAD2DEG, r as toVec3, t as resolveDirection } from "./types-SLY3VwcI.js";
4
+ 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-D9etjPgV.js";
5
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-C94s53Ia.js";
6
6
  export { BrepBugError, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, andThen, bug, castShape, closedWire, collect, computationError, createHandle, createKernelHandle, createNamedPlane, createPlane, err, flatMap, getShapeKind, ioError, is2D, is3D, isClosedWire, isCompound, isEdge, isErr, isFace, isLive, isManifoldShell, isOk, isOrientedFace, isShape1D, isShape3D, isShell, isSolid, isValidSolid, isVertex, isWire, kernelError, manifoldShell, map, mapErr, match, moduleInitError, ok, orientedFace, pivotPlane, queryError, resolveDirection, resolvePlane, sketcherStateError, toVec2, toVec3, translatePlane, tryCatch, tryCatchAsync, typeCastError, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validSolid, validationError, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, withScope, withScopeResult, withScopeResultAsync };
@@ -1,6 +1,6 @@
1
- import { i as DEG2RAD } from "./types-ETLaP595.js";
2
- import { n as getAtOrThrow } from "./arrayAccess-E7Lh-LcJ.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-Cko_0e9R.js";
1
+ import { i as DEG2RAD } from "./types-SLY3VwcI.js";
2
+ import { n as getAtOrThrow } from "./arrayAccess-xxcB3YNq.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-D4PQ7xhP.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
- const require_types = require("./types-TXQ7s56_.cjs");
2
- const require_arrayAccess = require("./arrayAccess-DsvS2R9t.cjs");
3
- const require_helpers = require("./helpers-WtVQGyPq.cjs");
1
+ const require_types = require("./types-hXSlplF3.cjs");
2
+ const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
3
+ const require_helpers = require("./helpers-BKiwf-pE.cjs");
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,5 +1,5 @@
1
- const require_shapeTypes = require("./shapeTypes-DoBHuzjo.cjs");
2
- const require_errors = require("./errors-9zQcQK1H.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
2
+ const require_errors = require("./errors-CXRNVCec.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
@@ -1,5 +1,5 @@
1
- import { X as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-D3seZBe7.js";
2
- import { A as ok, b as err, l as typeCastError } from "./errors-C-cgQA3w.js";
1
+ import { X as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-Ct7hPC-B.js";
2
+ import { A as ok, b as err, l as typeCastError } from "./errors-DboJwVCf.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
@@ -29,21 +29,21 @@ 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-DoBHuzjo.cjs");
33
- const require_errors = require("./errors-9zQcQK1H.cjs");
34
- const require_faceFns = require("./faceFns-Z6uVCQfc.cjs");
35
- const require_types = require("./types-TXQ7s56_.cjs");
36
- const require_vecOps = require("./vecOps-EPq_YMgb.cjs");
37
- const require_planeOps = require("./planeOps-BXsq07La.cjs");
38
- const require_curveFns = require("./curveFns-6oIwf4om.cjs");
39
- const require_arrayAccess = require("./arrayAccess-DsvS2R9t.cjs");
40
- const require_surfaceBuilders = require("./surfaceBuilders-DpoOuVmz.cjs");
41
- const require_boolean2D = require("./boolean2D-C-2D1eJM.cjs");
42
- const require_helpers = require("./helpers-WtVQGyPq.cjs");
43
- const require_blueprint = require("./blueprint-4w3i6ayW.cjs");
44
- const require_solidBuilders = require("./solidBuilders-CJLijwcy.cjs");
45
- const require_cornerFinder = require("./cornerFinder-D7Q8B0yg.cjs");
46
- const require_extrudeFns = require("./extrudeFns-Don0l4Wq.cjs");
32
+ const require_shapeTypes = require("./shapeTypes-DhdxzErV.cjs");
33
+ const require_errors = require("./errors-CXRNVCec.cjs");
34
+ const require_faceFns = require("./faceFns-D3Ge4FIP.cjs");
35
+ const require_types = require("./types-hXSlplF3.cjs");
36
+ const require_vecOps = require("./vecOps-BXvBYIor.cjs");
37
+ const require_planeOps = require("./planeOps-DoTESDTM.cjs");
38
+ const require_curveFns = require("./curveFns-BAYdU9o3.cjs");
39
+ const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
40
+ const require_surfaceBuilders = require("./surfaceBuilders-Bret7wF4.cjs");
41
+ const require_boolean2D = require("./boolean2D-DIrXfRsK.cjs");
42
+ const require_helpers = require("./helpers-BKiwf-pE.cjs");
43
+ const require_blueprint = require("./blueprint-CjWjaFBx.cjs");
44
+ const require_solidBuilders = require("./solidBuilders-QEzWeF-_.cjs");
45
+ const require_cornerFinder = require("./cornerFinder-lvtKN6D-.cjs");
46
+ const require_extrudeFns = require("./extrudeFns-r4z8JjXR.cjs");
47
47
  let opentype_js = require("opentype.js");
48
48
  opentype_js = __toESM(opentype_js);
49
49
  //#region src/2d/lib/stitching.ts
@@ -1,18 +1,18 @@
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-D3seZBe7.js";
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-C-cgQA3w.js";
3
- import { N as cast, P as downcast, b as getEdges, c as normalAt, l as outerWire, n as faceCenter } from "./faceFns-CBdCV-j8.js";
4
- import { i as DEG2RAD, r as toVec3 } from "./types-ETLaP595.js";
5
- import { c as vecLength, d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-DaF0LUsD.js";
6
- import { a as planeToWorld, o as resolvePlane } from "./planeOps-De5KoY28.js";
7
- import { m as offsetWire2D } from "./curveFns-JTh5okGu.js";
8
- import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-E7Lh-LcJ.js";
9
- import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-DewviEAb.js";
10
- 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-dM-8lArM.js";
11
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-Cko_0e9R.js";
12
- import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-xXn5kpyL.js";
13
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-BIWD6a-a.js";
14
- import { t as cornerFinder } from "./cornerFinder-C8VD-Eap.js";
15
- import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-xBCFBG7e.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-Ct7hPC-B.js";
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 { N as cast, P as downcast, b as getEdges, c as normalAt, l as outerWire, n as faceCenter } from "./faceFns-B0abunWd.js";
4
+ import { i as DEG2RAD, r as toVec3 } from "./types-SLY3VwcI.js";
5
+ import { c as vecLength, d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-D9etjPgV.js";
6
+ import { a as planeToWorld, o as resolvePlane } from "./planeOps-C94s53Ia.js";
7
+ import { m as offsetWire2D } from "./curveFns-ZfTMJwOX.js";
8
+ import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
9
+ import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-DyR1Pdu_.js";
10
+ 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-rza7Dzie.js";
11
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-D4PQ7xhP.js";
12
+ import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-BOICL-YA.js";
13
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-etpPzJCP.js";
14
+ import { t as cornerFinder } from "./cornerFinder-BqBKxpw9.js";
15
+ import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-BayH4aST.js";
16
16
  import opentype from "opentype.js";
17
17
  //#region src/2d/lib/stitching.ts
18
18
  /**