brepjs 18.118.21 → 18.118.23

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 (87) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-h7eAxaRD.cjs → adjacencyFns-BHTNz8_O.cjs} +3 -3
  4. package/dist/{adjacencyFns-Dgsl8VJ2.js → adjacencyFns-W7QMVMW2.js} +3 -3
  5. package/dist/{blueprint-CwQmYoR4.js → blueprint-CAOmiu7r.js} +5 -5
  6. package/dist/{blueprint-DG-2uqNB.cjs → blueprint-HhixTgBZ.cjs} +5 -5
  7. package/dist/{blueprintFns-aCrK18ZR.js → blueprintFns-DGrnUDEC.js} +2 -2
  8. package/dist/{blueprintFns-FAuYTbQQ.cjs → blueprintFns-Ds_uQ2k9.cjs} +2 -2
  9. package/dist/{blueprintSketcher-k5dNnvzs.cjs → blueprintSketcher-BMy51I6w.cjs} +3 -3
  10. package/dist/{blueprintSketcher-VvIRL3M8.js → blueprintSketcher-DsJQXRpk.js} +3 -3
  11. package/dist/{boolean2D-qYYFeLWX.js → boolean2D-BGMaEgC3.js} +4 -4
  12. package/dist/{boolean2D-BmkwzUgt.cjs → boolean2D-DgyG0o-U.cjs} +4 -4
  13. package/dist/brepjs.cjs +34 -32
  14. package/dist/brepjs.js +34 -32
  15. package/dist/{cameraFns-BZMHFbh9.cjs → cameraFns-DC1Bqs3i.cjs} +3 -3
  16. package/dist/{cameraFns-CYU4C4N6.js → cameraFns-ZCIt2Vwu.js} +3 -3
  17. package/dist/core/disposal.d.ts +15 -0
  18. package/dist/core.cjs +1 -1
  19. package/dist/core.js +1 -1
  20. package/dist/{cornerFinder-BEiSjmuO.cjs → cornerFinder-DLmNe5qH.cjs} +1 -1
  21. package/dist/{cornerFinder-DhOm0L8g.js → cornerFinder-DpOtHhry.js} +1 -1
  22. package/dist/{curveFns-YN8_CsqU.cjs → curveFns-CLG5eRx5.cjs} +1 -1
  23. package/dist/{curveFns-SNQ04JW6.js → curveFns-Sl36NbVb.js} +1 -1
  24. package/dist/{drawFns-Dqsv_t37.cjs → drawFns-Cspcghnk.cjs} +12 -12
  25. package/dist/{drawFns-8zxP0gC5.js → drawFns-D26G4W6g.js} +12 -12
  26. package/dist/{faceFns-C0SwZInk.cjs → faceFns-B4X-xM8V.cjs} +2 -2
  27. package/dist/{faceFns-CCu9ULQm.js → faceFns-Bk5OdHMb.js} +2 -2
  28. package/dist/{healingFns-Bbl5KTIh.cjs → healingFns-B6qvJ_ua.cjs} +5 -5
  29. package/dist/{healingFns-D6Bizorp.js → healingFns-CzAgSI4a.js} +5 -5
  30. package/dist/{helpers-Cv-lOGsc.cjs → helpers-BslGOVYN.cjs} +6 -6
  31. package/dist/{helpers-By-BruMN.js → helpers-D4DOutu7.js} +6 -6
  32. package/dist/{importFns-6eFs1L_G.cjs → importFns-1OeDbirB.cjs} +2 -2
  33. package/dist/{importFns-Bcza0b4Y.js → importFns-BZk3bSlR.js} +2 -2
  34. package/dist/io.cjs +2 -2
  35. package/dist/io.js +2 -2
  36. package/dist/kernel/interfaces/topologyOps.d.ts +13 -0
  37. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  38. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +2 -0
  39. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  40. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +4 -0
  41. package/dist/kernel/occtWasm/topologyOps.d.ts +4 -0
  42. package/dist/{loftFns-Bbe5jRA-.cjs → loftFns-DjHxcgNY.cjs} +1 -1
  43. package/dist/{loftFns-DEReccFa.js → loftFns-RdVrGF1B.js} +1 -1
  44. package/dist/{measureFns-DHj5Z-5c.js → measureFns-Dy4ebDq2.js} +3 -3
  45. package/dist/{measureFns-DMzw5wf0.cjs → measureFns-Vb49femb.cjs} +3 -3
  46. package/dist/measurement.cjs +1 -1
  47. package/dist/measurement.js +1 -1
  48. package/dist/{meshFns-C2nLgSf2.js → meshFns-Bsz0MOp6.js} +3 -3
  49. package/dist/{meshFns-B9pPcwuD.cjs → meshFns-C1-S8YRk.cjs} +3 -3
  50. package/dist/{occtWasmAdapter-5_6aHhcD.js → occtWasmAdapter-CYfezu3P.js} +19 -0
  51. package/dist/{occtWasmAdapter-CIxwUim8.cjs → occtWasmAdapter-Hkzb95Fy.cjs} +19 -0
  52. package/dist/operations.cjs +2 -2
  53. package/dist/operations.js +2 -2
  54. package/dist/{primitiveFns-D2zyQa3w.js → primitiveFns-D8Vwk98k.js} +4 -4
  55. package/dist/{primitiveFns-DZXN7qDb.cjs → primitiveFns-pxjaTk8i.cjs} +4 -4
  56. package/dist/projection.cjs +1 -1
  57. package/dist/projection.js +1 -1
  58. package/dist/query.cjs +2 -2
  59. package/dist/query.js +2 -2
  60. package/dist/{refResolveFns-C_mHlM8R.js → refResolveFns-3u3H3kGf.js} +6 -6
  61. package/dist/{refResolveFns-CHm7tsm2.cjs → refResolveFns-BIhtsmdZ.cjs} +6 -6
  62. package/dist/{shapeFns-BakfS4c9.js → shapeFns-CsNSoHH6.js} +3 -7
  63. package/dist/{shapeFns-DzXcfZHY.cjs → shapeFns-ql8ziUaG.cjs} +3 -7
  64. package/dist/shapeRef.cjs +1 -1
  65. package/dist/shapeRef.js +1 -1
  66. package/dist/{shapeTypes-B5bBKbg9.js → shapeTypes-Cw-8_69M.js} +37 -2
  67. package/dist/{shapeTypes-BfOb9vzc.cjs → shapeTypes-DbUdKYv8.cjs} +42 -1
  68. package/dist/sketching.cjs +3 -3
  69. package/dist/sketching.js +3 -3
  70. package/dist/{solidBuilders-BgrXN-GP.cjs → solidBuilders-BLsga6fa.cjs} +5 -5
  71. package/dist/{solidBuilders-DaTgm_Wj.js → solidBuilders-CVs9uVKO.js} +5 -5
  72. package/dist/{surfaceBuilders-BdUP_OXk.js → surfaceBuilders-DI0oXs1Z.js} +2 -2
  73. package/dist/{surfaceBuilders-CUNhA_3a.cjs → surfaceBuilders-QPtrtoXG.cjs} +2 -2
  74. package/dist/text.cjs +2 -2
  75. package/dist/text.js +2 -2
  76. package/dist/{textBlueprints--5GSuYEm.cjs → textBlueprints-8Z_V9-Ir.cjs} +7 -7
  77. package/dist/{textBlueprints-C_JaAGiG.js → textBlueprints-GmfesKnp.js} +7 -7
  78. package/dist/{textMetrics-CyJlakdR.cjs → textMetrics-CE0SzDYa.cjs} +1 -1
  79. package/dist/{textMetrics-829YpBdN.js → textMetrics-Cj4BPjs4.js} +1 -1
  80. package/dist/{threadFns-H0mRmS6I.js → threadFns-D5BCp0GF.js} +7 -7
  81. package/dist/{threadFns-BBELmTZv.cjs → threadFns-D_wKVcfO.cjs} +7 -7
  82. package/dist/topology/topologyQueryFns.d.ts +17 -1
  83. package/dist/topology.cjs +9 -9
  84. package/dist/topology.js +9 -9
  85. package/dist/{topologyQueryFns-MAUFbsSp.js → topologyQueryFns-BT4CdXa2.js} +38 -6
  86. package/dist/{topologyQueryFns-tns6VXoD.cjs → topologyQueryFns-D5hBmDkc.cjs} +43 -5
  87. package/package.json +1 -1
package/dist/2d.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
3
3
  const require_errors = require("./errors-CJU8CHng.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-k5dNnvzs.cjs");
6
- const require_blueprint = require("./blueprint-DG-2uqNB.cjs");
7
- const require_boolean2D = require("./boolean2D-BmkwzUgt.cjs");
8
- const require_blueprintFns = require("./blueprintFns-FAuYTbQQ.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-D5hBmDkc.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-BMy51I6w.cjs");
6
+ const require_blueprint = require("./blueprint-HhixTgBZ.cjs");
7
+ const require_boolean2D = require("./boolean2D-DgyG0o-U.cjs");
8
+ const require_blueprintFns = require("./blueprintFns-Ds_uQ2k9.cjs");
9
9
  //#region src/core/curve2dHandle.ts
10
10
  /**
11
11
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
package/dist/2d.js CHANGED
@@ -1,10 +1,10 @@
1
- import { K as createKernelHandle, c as createEdge, it as getKernel2D } from "./shapeTypes-B5bBKbg9.js";
1
+ import { K as createKernelHandle, at as getKernel2D, c as createEdge } from "./shapeTypes-Cw-8_69M.js";
2
2
  import { O as ok, d as validationError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.js";
3
- import { w as kernelCallRaw } from "./topologyQueryFns-MAUFbsSp.js";
4
- import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-VvIRL3M8.js";
5
- import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-CwQmYoR4.js";
6
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-qYYFeLWX.js";
7
- 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-aCrK18ZR.js";
3
+ import { T as kernelCallRaw } from "./topologyQueryFns-BT4CdXa2.js";
4
+ import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-DsJQXRpk.js";
5
+ import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-CAOmiu7r.js";
6
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BGMaEgC3.js";
7
+ 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-DGrnUDEC.js";
8
8
  //#region src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
2
- const require_occtWasmAdapter = require("./occtWasmAdapter-CIxwUim8.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
2
+ const require_occtWasmAdapter = require("./occtWasmAdapter-Hkzb95Fy.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-D5hBmDkc.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/adjacencyFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { nt as getActiveKernelId, r as castResultShapeWithKnownType, rt as getKernel, t as borrowShapeWithKnownType } from "./shapeTypes-B5bBKbg9.js";
2
- import { O as isUnsupportedKernelOperationError } from "./occtWasmAdapter-5_6aHhcD.js";
3
- import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-MAUFbsSp.js";
1
+ import { it as getKernel, r as castResultShapeWithKnownType, rt as getActiveKernelId, t as borrowShapeWithKnownType } from "./shapeTypes-Cw-8_69M.js";
2
+ import { O as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CYfezu3P.js";
3
+ import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-BT4CdXa2.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/adjacencyFns.ts
6
6
  /**
@@ -1,14 +1,14 @@
1
- import { Y as registerForCleanup, Z as unregisterFromCleanup, c as createEdge, it as getKernel2D, p as createWire, rt as getKernel } from "./shapeTypes-B5bBKbg9.js";
1
+ import { Y as registerForCleanup, Z as unregisterFromCleanup, at as getKernel2D, c as createEdge, it as getKernel, p as createWire } from "./shapeTypes-Cw-8_69M.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
3
3
  import { I as unwrap, O as ok, d as validationError, n as computationError, v as err } from "./errors-B3CDG537.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { r as toVec3 } from "./types-D24Y27N0.js";
6
6
  import { r as makePlane } from "./planeOps-Cp6GQ23-.js";
7
- import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-CCu9ULQm.js";
8
- import { p as getOrientation } from "./curveFns-SNQ04JW6.js";
7
+ import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-Bk5OdHMb.js";
8
+ import { p as getOrientation } from "./curveFns-Sl36NbVb.js";
9
9
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
10
- import { r as makeFace } from "./surfaceBuilders-BdUP_OXk.js";
11
- import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-By-BruMN.js";
10
+ import { r as makeFace } from "./surfaceBuilders-DI0oXs1Z.js";
11
+ import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-D4DOutu7.js";
12
12
  //#region src/2d/lib/definitions.ts
13
13
  /** Type guard that checks whether a value is a `Point2D`. */
14
14
  function isPoint2D(point) {
@@ -1,14 +1,14 @@
1
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
2
2
  const require_bug = require("./bug-O02CsAmt.cjs");
3
3
  const require_errors = require("./errors-CJU8CHng.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_types = require("./types-KjA8tY4Y.cjs");
6
6
  const require_planeOps = require("./planeOps-Cr25KWWA.cjs");
7
- const require_faceFns = require("./faceFns-C0SwZInk.cjs");
8
- const require_curveFns = require("./curveFns-YN8_CsqU.cjs");
7
+ const require_faceFns = require("./faceFns-B4X-xM8V.cjs");
8
+ const require_curveFns = require("./curveFns-CLG5eRx5.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-CUNhA_3a.cjs");
11
- const require_helpers = require("./helpers-Cv-lOGsc.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-QPtrtoXG.cjs");
11
+ const require_helpers = require("./helpers-BslGOVYN.cjs");
12
12
  //#region src/2d/lib/definitions.ts
13
13
  /** Type guard that checks whether a value is a `Point2D`. */
14
14
  function isPoint2D(point) {
@@ -1,6 +1,6 @@
1
1
  import { O as ok, d as validationError, t as BrepErrorCode, v as err } from "./errors-B3CDG537.js";
2
- import { i as CompoundBlueprint } from "./blueprintSketcher-VvIRL3M8.js";
3
- import { t as Blueprint } from "./blueprint-CwQmYoR4.js";
2
+ import { i as CompoundBlueprint } from "./blueprintSketcher-DsJQXRpk.js";
3
+ import { t as Blueprint } from "./blueprint-CAOmiu7r.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-CJU8CHng.cjs");
2
- const require_blueprintSketcher = require("./blueprintSketcher-k5dNnvzs.cjs");
3
- const require_blueprint = require("./blueprint-DG-2uqNB.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-BMy51I6w.cjs");
3
+ const require_blueprint = require("./blueprint-HhixTgBZ.cjs");
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,10 +1,10 @@
1
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
2
2
  const require_bug = require("./bug-O02CsAmt.cjs");
3
3
  const require_errors = require("./errors-CJU8CHng.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
6
- const require_helpers = require("./helpers-Cv-lOGsc.cjs");
7
- const require_blueprint = require("./blueprint-DG-2uqNB.cjs");
6
+ const require_helpers = require("./helpers-BslGOVYN.cjs");
7
+ const require_blueprint = require("./blueprint-HhixTgBZ.cjs");
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -1,10 +1,10 @@
1
- import { it as getKernel2D, rt as getKernel } from "./shapeTypes-B5bBKbg9.js";
1
+ import { at as getKernel2D, it as getKernel } from "./shapeTypes-Cw-8_69M.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
3
3
  import { C as isOk, I as unwrap, O as ok, n as computationError, s as safeIndex, v as err } from "./errors-B3CDG537.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
6
- import { _ as samePoint, 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, v as scalarMultiply2d } from "./helpers-By-BruMN.js";
7
- import { _ as Curve2D, 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-CwQmYoR4.js";
6
+ import { _ as samePoint, 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, v as scalarMultiply2d } from "./helpers-D4DOutu7.js";
7
+ import { _ as Curve2D, 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-CAOmiu7r.js";
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -1,10 +1,10 @@
1
1
  import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
2
2
  import { I as unwrap, s as safeIndex } from "./errors-B3CDG537.js";
3
3
  import { r as lastOrThrow } from "./arrayAccess-DrUGPADn.js";
4
- import { v as zip } from "./surfaceBuilders-BdUP_OXk.js";
5
- import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-VvIRL3M8.js";
6
- import { _ as samePoint$1, b as subtract2d, f as crossProduct2d, s as PRECISION_INTERSECTION } from "./helpers-By-BruMN.js";
7
- import { b as removeDuplicatePoints, f as make2dSegmentCurve, t as Blueprint } from "./blueprint-CwQmYoR4.js";
4
+ import { v as zip } from "./surfaceBuilders-DI0oXs1Z.js";
5
+ import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-DsJQXRpk.js";
6
+ import { _ as samePoint$1, b as subtract2d, f as crossProduct2d, s as PRECISION_INTERSECTION } from "./helpers-D4DOutu7.js";
7
+ import { b as removeDuplicatePoints, f as make2dSegmentCurve, t as Blueprint } from "./blueprint-CAOmiu7r.js";
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
@@ -1,10 +1,10 @@
1
1
  const require_bug = require("./bug-O02CsAmt.cjs");
2
2
  const require_errors = require("./errors-CJU8CHng.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
4
- const require_surfaceBuilders = require("./surfaceBuilders-CUNhA_3a.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-k5dNnvzs.cjs");
6
- const require_helpers = require("./helpers-Cv-lOGsc.cjs");
7
- const require_blueprint = require("./blueprint-DG-2uqNB.cjs");
4
+ const require_surfaceBuilders = require("./surfaceBuilders-QPtrtoXG.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-BMy51I6w.cjs");
6
+ const require_helpers = require("./helpers-BslGOVYN.cjs");
7
+ const require_blueprint = require("./blueprint-HhixTgBZ.cjs");
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
package/dist/brepjs.cjs CHANGED
@@ -1,38 +1,38 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints--5GSuYEm.cjs");
3
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
4
- const require_occtWasmAdapter = require("./occtWasmAdapter-CIxwUim8.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-8Z_V9-Ir.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
4
+ const require_occtWasmAdapter = require("./occtWasmAdapter-Hkzb95Fy.cjs");
5
5
  const require_bug = require("./bug-O02CsAmt.cjs");
6
6
  const require_errors = require("./errors-CJU8CHng.cjs");
7
- const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
7
+ const require_topologyQueryFns = require("./topologyQueryFns-D5hBmDkc.cjs");
8
8
  const require_constants = require("./constants-BOVyEYGH.cjs");
9
9
  const require_types = require("./types-KjA8tY4Y.cjs");
10
10
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
11
11
  const require_planeOps = require("./planeOps-Cr25KWWA.cjs");
12
- const require_faceFns = require("./faceFns-C0SwZInk.cjs");
13
- const require_shapeFns = require("./shapeFns-DzXcfZHY.cjs");
14
- const require_curveFns = require("./curveFns-YN8_CsqU.cjs");
15
- const require_meshFns = require("./meshFns-B9pPcwuD.cjs");
12
+ const require_faceFns = require("./faceFns-B4X-xM8V.cjs");
13
+ const require_shapeFns = require("./shapeFns-ql8ziUaG.cjs");
14
+ const require_curveFns = require("./curveFns-CLG5eRx5.cjs");
15
+ const require_meshFns = require("./meshFns-C1-S8YRk.cjs");
16
16
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
17
- const require_surfaceBuilders = require("./surfaceBuilders-CUNhA_3a.cjs");
18
- const require_solidBuilders = require("./solidBuilders-BgrXN-GP.cjs");
19
- const require_healingFns = require("./healingFns-Bbl5KTIh.cjs");
20
- const require_threadFns = require("./threadFns-BBELmTZv.cjs");
21
- const require_blueprintSketcher = require("./blueprintSketcher-k5dNnvzs.cjs");
22
- const require_helpers = require("./helpers-Cv-lOGsc.cjs");
23
- const require_drawFns = require("./drawFns-Dqsv_t37.cjs");
24
- const require_measureFns = require("./measureFns-DMzw5wf0.cjs");
25
- const require_cornerFinder = require("./cornerFinder-BEiSjmuO.cjs");
26
- const require_boolean2D = require("./boolean2D-BmkwzUgt.cjs");
27
- const require_blueprintFns = require("./blueprintFns-FAuYTbQQ.cjs");
28
- const require_importFns = require("./importFns-6eFs1L_G.cjs");
29
- const require_loftFns = require("./loftFns-Bbe5jRA-.cjs");
30
- const require_cameraFns = require("./cameraFns-BZMHFbh9.cjs");
31
- const require_textMetrics = require("./textMetrics-CyJlakdR.cjs");
32
- const require_adjacencyFns = require("./adjacencyFns-h7eAxaRD.cjs");
33
- const require_refResolveFns = require("./refResolveFns-CHm7tsm2.cjs");
17
+ const require_surfaceBuilders = require("./surfaceBuilders-QPtrtoXG.cjs");
18
+ const require_solidBuilders = require("./solidBuilders-BLsga6fa.cjs");
19
+ const require_healingFns = require("./healingFns-B6qvJ_ua.cjs");
20
+ const require_threadFns = require("./threadFns-D_wKVcfO.cjs");
21
+ const require_blueprintSketcher = require("./blueprintSketcher-BMy51I6w.cjs");
22
+ const require_helpers = require("./helpers-BslGOVYN.cjs");
23
+ const require_drawFns = require("./drawFns-Cspcghnk.cjs");
24
+ const require_measureFns = require("./measureFns-Vb49femb.cjs");
25
+ const require_cornerFinder = require("./cornerFinder-DLmNe5qH.cjs");
26
+ const require_boolean2D = require("./boolean2D-DgyG0o-U.cjs");
27
+ const require_blueprintFns = require("./blueprintFns-Ds_uQ2k9.cjs");
28
+ const require_importFns = require("./importFns-1OeDbirB.cjs");
29
+ const require_loftFns = require("./loftFns-DjHxcgNY.cjs");
30
+ const require_cameraFns = require("./cameraFns-DC1Bqs3i.cjs");
31
+ const require_textMetrics = require("./textMetrics-CE0SzDYa.cjs");
32
+ const require_adjacencyFns = require("./adjacencyFns-BHTNz8_O.cjs");
33
+ const require_refResolveFns = require("./refResolveFns-BIhtsmdZ.cjs");
34
34
  const require_workerPool = require("./workerPool-D30NsiIW.cjs");
35
- const require_primitiveFns = require("./primitiveFns-DZXN7qDb.cjs");
35
+ const require_primitiveFns = require("./primitiveFns-pxjaTk8i.cjs");
36
36
  //#region src/topology/shapeBooleans.ts
37
37
  var BOPAlgo_GlueShift = 1;
38
38
  var BOPAlgo_GlueFull = 2;
@@ -2851,12 +2851,14 @@ function solveAssembly(assembly) {
2851
2851
  function checkInterference(shape1, shape2, tolerance = 1e-6) {
2852
2852
  if (require_shapeTypes.getKernel().isNull(shape1.wrapped)) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.NULL_SHAPE_INPUT, "checkInterference: first shape is a null shape"));
2853
2853
  if (require_shapeTypes.getKernel().isNull(shape2.wrapped)) return require_errors.err(require_errors.validationError(require_errors.BrepErrorCode.NULL_SHAPE_INPUT, "checkInterference: second shape is a null shape"));
2854
- const dist = require_shapeTypes.getKernel().distance(shape1.wrapped, shape2.wrapped);
2855
- return require_errors.ok({
2856
- hasInterference: dist.value <= tolerance,
2857
- minDistance: dist.value,
2858
- pointOnShape1: dist.point1,
2859
- pointOnShape2: dist.point2
2854
+ return require_shapeTypes.withArenaCheckpoint(() => {
2855
+ const dist = require_shapeTypes.getKernel().distance(shape1.wrapped, shape2.wrapped);
2856
+ return require_errors.ok({
2857
+ hasInterference: dist.value <= tolerance,
2858
+ minDistance: dist.value,
2859
+ pointOnShape1: dist.point1,
2860
+ pointOnShape2: dist.point2
2861
+ });
2860
2862
  });
2861
2863
  }
2862
2864
  /**
package/dist/brepjs.js CHANGED
@@ -1,37 +1,37 @@
1
- import { $ as withScopeResult, A as isPlanarFace, B as as2D, C as isSolid, D as isClosedWire, E as closedWire, F as planarFace, G as createHandle, H as is2D, I as planarWire, J as isLive, K as createKernelHandle, L as validSolid, M as isValidSolid, N as manifoldShell, O as isManifoldShell, P as orientedFace, Q as withScope, R as getShapeKind, S as isShell, St as qualityDeflection, T as isWire, U as is3D, V as as3D, W as DisposalScope, X as resetDisposalStats, _ as isCompound, _t as supportsProjection, a as castShape3D, at as getKernelCapabilities, b as isShape1D, bt as resetPerformanceStats, c as createEdge, ct as initFromManifold, d as createSolid, dt as registerKernel, et as withScopeResultAsync, f as createVertex, ft as registerKernelTier, gt as supportsConstraintSketch, h as disposeResultShape, ht as withTier, i as castShape, j as isPlanarWire, k as isOrientedFace, l as createFace, lt as initFromOC, mt as withQuality, n as castResultShape, nt as getActiveKernelId, ot as getKernelTier, p as createWire, pt as withKernel, q as getDisposalStats, rt as getKernel, s as createCompound, st as init, tt as _usingCtx, u as createShell, ut as prewarm, v as isEdge, vt as BrepkitAdapter, w as isVertex, x as isShape3D, xt as currentQuality, y as isFace, yt as getPerformanceStats } from "./shapeTypes-B5bBKbg9.js";
2
- import { A as EXACT_BREP_CAPABILITIES, k as DEFAULT_CAPABILITIES, t as OcctWasmAdapter } from "./occtWasmAdapter-5_6aHhcD.js";
1
+ import { $ as withScope, A as isPlanarFace, B as as2D, C as isSolid, Ct as qualityDeflection, D as isClosedWire, E as closedWire, F as planarFace, G as createHandle, H as is2D, I as planarWire, J as isLive, K as createKernelHandle, L as validSolid, M as isValidSolid, N as manifoldShell, O as isManifoldShell, P as orientedFace, Q as withArenaCheckpoint, R as getShapeKind, S as isShell, St as currentQuality, T as isWire, U as is3D, V as as3D, W as DisposalScope, X as resetDisposalStats, _ as isCompound, _t as supportsConstraintSketch, a as castShape3D, b as isShape1D, bt as getPerformanceStats, c as createEdge, ct as init, d as createSolid, dt as prewarm, et as withScopeResult, f as createVertex, ft as registerKernel, gt as withTier, h as disposeResultShape, ht as withQuality, i as castShape, it as getKernel, j as isPlanarWire, k as isOrientedFace, l as createFace, lt as initFromManifold, mt as withKernel, n as castResultShape, nt as _usingCtx, ot as getKernelCapabilities, p as createWire, pt as registerKernelTier, q as getDisposalStats, rt as getActiveKernelId, s as createCompound, st as getKernelTier, tt as withScopeResultAsync, u as createShell, ut as initFromOC, v as isEdge, vt as supportsProjection, w as isVertex, x as isShape3D, xt as resetPerformanceStats, y as isFace, yt as BrepkitAdapter } from "./shapeTypes-Cw-8_69M.js";
2
+ import { A as EXACT_BREP_CAPABILITIES, k as DEFAULT_CAPABILITIES, t as OcctWasmAdapter } from "./occtWasmAdapter-CYfezu3P.js";
3
3
  import { i as wasmIndex, n as bug, t as BrepBugError } from "./bug-BdOHwn_e.js";
4
4
  import { A as orElse, B as zip, C as isOk, D as match, E as mapErr, F as tryCatchAsync, I as unwrap, L as unwrapErr, M as tap, N as tapErr, O as ok, P as tryCatch, R as unwrapOr, S as isErr, T as mapBoth, _ as collect, a as moduleInitError, b as flatten, c as sketcherStateError, d as validationError, g as andThen, h as all, i as kernelError, j as pipeline, k as or, l as typeCastError, m as OK, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as err, w as map, x as fromNullable, y as flatMap, z as unwrapOrElse } from "./errors-B3CDG537.js";
5
- import { C as kernelCall, S as vertexPosition, T as kernelCallScoped, _ as iterFaces, a as getCachedSurfaceType, b as iterVertices, c as getFaces, d as getSolids, f as getVertices, g as iterEdges, h as iterCompSolids, m as invalidateShapeCache, n as getBounds, o as getCompSolids, p as getWires, s as getEdges, t as describe$1, u as getShells, v as iterShells, w as kernelCallRaw, x as iterWires, y as iterSolids } from "./topologyQueryFns-MAUFbsSp.js";
5
+ import { C as vertexPosition, E as kernelCallScoped, T as kernelCallRaw, _ as iterFaces, a as getCachedSurfaceType, b as iterVertices, c as getFaces, d as getSolids, f as getVertices, g as iterEdges, h as iterCompSolids, m as invalidateShapeCache, n as getBounds, o as getCompSolids, p as getWires, s as getEdges, t as describe$1, u as getShells, v as iterShells, w as kernelCall, x as iterWires, y as iterSolids } from "./topologyQueryFns-BT4CdXa2.js";
6
6
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
7
7
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
8
8
  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-SKPRvPH-.js";
9
9
  import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-Cp6GQ23-.js";
10
- import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, p as removeHolesFromFace, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-CCu9ULQm.js";
11
- import { A as tagFaces, C as colorShape, D as getFaceTags, E as findFacesByTag, M as setShapeOrigin, O as getTagMetadata, S as colorFaces, T as getShapeColor, a as isSameShape, c as applyMatrix$1, d as mirror$2, f as resize, g as translate$2, h as transformCopy$1, i as isEqualShape, j as getFaceOrigins, k as setTagMetadata, l as composeTransforms, m as scale$3, n as getHashCode, o as simplify$1, p as rotate$2, r as isEmpty$2, s as toBREP$1, t as clone$1, u as locate$1, v as hasAnyMetadata, w as getFaceColor, x as propagateMetadataThroughRelocation } from "./shapeFns-BakfS4c9.js";
12
- import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-SNQ04JW6.js";
13
- import { a as meshEdges$1, c as meshMultiLOD, d as createMeshCache, i as mesh$1, l as buildMeshCacheKey, n as exportSTEP, o as meshLODs, r as exportSTL, s as meshLODsProgressive, t as exportIGES, u as clearMeshCache } from "./meshFns-C2nLgSf2.js";
10
+ import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, p as removeHolesFromFace, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-Bk5OdHMb.js";
11
+ import { A as tagFaces, C as colorShape, D as getFaceTags, E as findFacesByTag, M as setShapeOrigin, O as getTagMetadata, S as colorFaces, T as getShapeColor, a as isSameShape, c as applyMatrix$1, d as mirror$2, f as resize, g as translate$2, h as transformCopy$1, i as isEqualShape, j as getFaceOrigins, k as setTagMetadata, l as composeTransforms, m as scale$3, n as getHashCode, o as simplify$1, p as rotate$2, r as isEmpty$2, s as toBREP$1, t as clone$1, u as locate$1, v as hasAnyMetadata, w as getFaceColor, x as propagateMetadataThroughRelocation } from "./shapeFns-CsNSoHH6.js";
12
+ import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-Sl36NbVb.js";
13
+ import { a as meshEdges$1, c as meshMultiLOD, d as createMeshCache, i as mesh$1, l as buildMeshCacheKey, n as exportSTEP, o as meshLODs, r as exportSTL, s as meshLODsProgressive, t as exportIGES, u as clearMeshCache } from "./meshFns-Bsz0MOp6.js";
14
14
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
15
- import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-BdUP_OXk.js";
16
- import { _ as section$1, b as split$1, d as booleanPipeline, f as cut$2, g as intersect$2, h as fuseAll$2, m as fuse$2, p as cutAll$2, r as makeCylinder, t as makeCompound, v as sectionToFace$1, y as slice$1 } from "./solidBuilders-DaTgm_Wj.js";
17
- import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, M as toLODGeometryData, N as toLODGeometryLevels, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, c as isValid$1, d as draft$1, f as fillet$1, g as variableFillet, h as thicken$1, i as heal$1, j as toGroupedBufferGeometryData, k as chamferDistAngle, l as solidFromShell, m as shell$1, n as fixSelfIntersection, o as healSolid, p as offset$1, r as fixShape, s as healWire, t as autoHeal, u as chamfer$1, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution } from "./healingFns-D6Bizorp.js";
18
- import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatMultiply, G as circularPattern, H as removeChild, I as quatRotate, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, a as deserializeHistory, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, p as serializeHistory, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-H0mRmS6I.js";
19
- import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-VvIRL3M8.js";
20
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-By-BruMN.js";
21
- import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-8zxP0gC5.js";
22
- 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-DHj5Z-5c.js";
23
- import { t as cornerFinder } from "./cornerFinder-DhOm0L8g.js";
24
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-qYYFeLWX.js";
25
- 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-aCrK18ZR.js";
26
- 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-Bcza0b4Y.js";
27
- import { a as revolve$1, c as multiSectionSweep, d as twistExtrude, i as extrudeAll, l as supportExtrude, n as loftAll, o as complexExtrude, r as extrude$1, s as guidedSweep, t as loft$1, u as sweep$1 } from "./loftFns-DEReccFa.js";
28
- import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-C_JaAGiG.js";
29
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CYU4C4N6.js";
30
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-829YpBdN.js";
31
- import { a as sharedEdges, c as wiresOfFace, i as facesOfVertex, n as edgesOfFace, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-Dgsl8VJ2.js";
32
- import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-C_mHlM8R.js";
15
+ import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-DI0oXs1Z.js";
16
+ import { _ as section$1, b as split$1, d as booleanPipeline, f as cut$2, g as intersect$2, h as fuseAll$2, m as fuse$2, p as cutAll$2, r as makeCylinder, t as makeCompound, v as sectionToFace$1, y as slice$1 } from "./solidBuilders-CVs9uVKO.js";
17
+ import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, M as toLODGeometryData, N as toLODGeometryLevels, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, c as isValid$1, d as draft$1, f as fillet$1, g as variableFillet, h as thicken$1, i as heal$1, j as toGroupedBufferGeometryData, k as chamferDistAngle, l as solidFromShell, m as shell$1, n as fixSelfIntersection, o as healSolid, p as offset$1, r as fixShape, s as healWire, t as autoHeal, u as chamfer$1, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution } from "./healingFns-CzAgSI4a.js";
18
+ import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as quatMultiply, G as circularPattern, H as removeChild, I as quatRotate, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, N as quatFromAxisAngle, O as prismaticJoint, P as quatFromTo, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, a as deserializeHistory, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, p as serializeHistory, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-D5BCp0GF.js";
19
+ import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-DsJQXRpk.js";
20
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-D4DOutu7.js";
21
+ import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-D26G4W6g.js";
22
+ 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-Dy4ebDq2.js";
23
+ import { t as cornerFinder } from "./cornerFinder-DpOtHhry.js";
24
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BGMaEgC3.js";
25
+ 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-DGrnUDEC.js";
26
+ 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-BZk3bSlR.js";
27
+ import { a as revolve$1, c as multiSectionSweep, d as twistExtrude, i as extrudeAll, l as supportExtrude, n as loftAll, o as complexExtrude, r as extrude$1, s as guidedSweep, t as loft$1, u as sweep$1 } from "./loftFns-RdVrGF1B.js";
28
+ import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-GmfesKnp.js";
29
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-ZCIt2Vwu.js";
30
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-Cj4BPjs4.js";
31
+ import { a as sharedEdges, c as wiresOfFace, i as facesOfVertex, n as edgesOfFace, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-W7QMVMW2.js";
32
+ import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-3u3H3kGf.js";
33
33
  import { _ as isSuccessResponse, a as createWorkerClient, c as enqueueTask, d as rejectAll, f as isBatchRequest, g as isOperationRequest, h as isInitRequest, i as registerHandler, l as isEmpty$1, m as isErrorResponse, n as createOperationRegistry, o as createTaskQueue, p as isDisposeRequest, r as createWorkerHandler, s as dequeueTask, t as createWorkerPool, u as pendingCount } from "./workerPool-XcYX2UZ0.js";
34
- import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus$1, x as subFace, y as solid } from "./primitiveFns-D2zyQa3w.js";
34
+ import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus$1, x as subFace, y as solid } from "./primitiveFns-D8Vwk98k.js";
35
35
  //#region \0rolldown/runtime.js
36
36
  var __defProp = Object.defineProperty;
37
37
  var __exportAll = (all, no_symbols) => {
@@ -2862,12 +2862,14 @@ function solveAssembly(assembly) {
2862
2862
  function checkInterference(shape1, shape2, tolerance = 1e-6) {
2863
2863
  if (getKernel().isNull(shape1.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, "checkInterference: first shape is a null shape"));
2864
2864
  if (getKernel().isNull(shape2.wrapped)) return err(validationError(BrepErrorCode.NULL_SHAPE_INPUT, "checkInterference: second shape is a null shape"));
2865
- const dist = getKernel().distance(shape1.wrapped, shape2.wrapped);
2866
- return ok({
2867
- hasInterference: dist.value <= tolerance,
2868
- minDistance: dist.value,
2869
- pointOnShape1: dist.point1,
2870
- pointOnShape2: dist.point2
2865
+ return withArenaCheckpoint(() => {
2866
+ const dist = getKernel().distance(shape1.wrapped, shape2.wrapped);
2867
+ return ok({
2868
+ hasInterference: dist.value <= tolerance,
2869
+ minDistance: dist.value,
2870
+ pointOnShape1: dist.point1,
2871
+ pointOnShape2: dist.point2
2872
+ });
2871
2873
  });
2872
2874
  }
2873
2875
  /**
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
2
2
  const require_errors = require("./errors-CJU8CHng.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-D5hBmDkc.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
5
- const require_shapeFns = require("./shapeFns-DzXcfZHY.cjs");
5
+ const require_shapeFns = require("./shapeFns-ql8ziUaG.cjs");
6
6
  //#region src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
@@ -1,8 +1,8 @@
1
- import { n as castResultShape, rt as getKernel, tt as _usingCtx } from "./shapeTypes-B5bBKbg9.js";
1
+ import { it as getKernel, n as castResultShape, nt as _usingCtx } from "./shapeTypes-Cw-8_69M.js";
2
2
  import { I as unwrap, O as ok, d as validationError, v as err } from "./errors-B3CDG537.js";
3
- import { s as getEdges } from "./topologyQueryFns-MAUFbsSp.js";
3
+ import { s as getEdges } from "./topologyQueryFns-BT4CdXa2.js";
4
4
  import { c as vecLength, d as vecNormalize, g as vecSub, r as vecCross } from "./vecOps-SKPRvPH-.js";
5
- import { t as clone } from "./shapeFns-BakfS4c9.js";
5
+ import { t as clone } from "./shapeFns-CsNSoHH6.js";
6
6
  //#region src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
@@ -57,6 +57,21 @@ export declare function createHandle(ocShape: KernelShape): ShapeHandle;
57
57
  * only valid while its owner lives; `clone()`/`copyShape` it to outlive that.
58
58
  */
59
59
  export declare function createBorrowedHandle(ocShape: KernelShape): ShapeHandle;
60
+ /**
61
+ * Run `fn` between an arena checkpoint and restore, reclaiming every slot it
62
+ * allocates — including kernel-internal query temporaries brepjs holds no handle
63
+ * for (e.g. `distance`/`boundingBox` scratch) — in a single `restoreCheckpoint`.
64
+ *
65
+ * **SAFE ONLY when `fn` returns plain data** (numbers, points, arrays): restore
66
+ * frees *every* slot allocated after the checkpoint, so a live shape handle in
67
+ * the return value would dangle. Use for data-returning batch analysis over many
68
+ * bodies; never to wrap a shape builder. Inputs allocated before the call are
69
+ * untouched (restore only frees from the mark forward).
70
+ *
71
+ * No-op wrapper on kernels without arena checkpoints (occt/manifold): `fn` runs
72
+ * directly and those kernels' own disposal applies.
73
+ */
74
+ export declare function withArenaCheckpoint<T>(fn: () => T): T;
60
75
  /** A disposable wrapper for any kernel object. */
61
76
  export interface KernelHandle<T extends Deletable> {
62
77
  readonly value: T;
package/dist/core.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
3
3
  const require_bug = require("./bug-O02CsAmt.cjs");
4
4
  const require_errors = require("./errors-CJU8CHng.cjs");
5
5
  const require_constants = require("./constants-BOVyEYGH.cjs");
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as withScopeResult, C as isSolid, D as isClosedWire, E as closedWire, G as createHandle, H as is2D, J as isLive, K as createKernelHandle, L as validSolid, M as isValidSolid, N as manifoldShell, O as isManifoldShell, P as orientedFace, Q as withScope, R as getShapeKind, S as isShell, T as isWire, U as is3D, W as DisposalScope, _ as isCompound, b as isShape1D, et as withScopeResultAsync, i as castShape, k as isOrientedFace, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-B5bBKbg9.js";
1
+ import { $ as withScope, C as isSolid, D as isClosedWire, E as closedWire, G as createHandle, H as is2D, J as isLive, K as createKernelHandle, L as validSolid, M as isValidSolid, N as manifoldShell, O as isManifoldShell, P as orientedFace, R as getShapeKind, S as isShell, T as isWire, U as is3D, W as DisposalScope, _ as isCompound, b as isShape1D, et as withScopeResult, i as castShape, k as isOrientedFace, tt as withScopeResultAsync, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-Cw-8_69M.js";
2
2
  import { n as bug, t as BrepBugError } from "./bug-BdOHwn_e.js";
3
3
  import { C as isOk, D as match, E as mapErr, F as tryCatchAsync, I as unwrap, L as unwrapErr, O as ok, P as tryCatch, R as unwrapOr, S as isErr, _ as collect, a as moduleInitError, c as sketcherStateError, d as validationError, g as andThen, i as kernelError, l as typeCastError, m as OK, n as computationError, o as queryError, r as ioError, u as unsupportedError, v as err, w as map, y as flatMap, z as unwrapOrElse } from "./errors-B3CDG537.js";
4
4
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
@@ -1,6 +1,6 @@
1
1
  const require_constants = require("./constants-BOVyEYGH.cjs");
2
2
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
3
- const require_helpers = require("./helpers-Cv-lOGsc.cjs");
3
+ const require_helpers = require("./helpers-BslGOVYN.cjs");
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
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
2
2
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-By-BruMN.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-D4DOutu7.js";
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
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
2
2
  const require_errors = require("./errors-CJU8CHng.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { T as isWire, h as disposeResultShape, n as castResultShape, rt as getKernel, v as isEdge } from "./shapeTypes-B5bBKbg9.js";
1
+ import { T as isWire, h as disposeResultShape, it as getKernel, n as castResultShape, v as isEdge } from "./shapeTypes-Cw-8_69M.js";
2
2
  import { O as ok, l as typeCastError, v as err } from "./errors-B3CDG537.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -1,22 +1,22 @@
1
- const require_textBlueprints = require("./textBlueprints--5GSuYEm.cjs");
2
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-8Z_V9-Ir.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
3
3
  const require_bug = require("./bug-O02CsAmt.cjs");
4
4
  const require_errors = require("./errors-CJU8CHng.cjs");
5
- const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
5
+ const require_topologyQueryFns = require("./topologyQueryFns-D5hBmDkc.cjs");
6
6
  const require_constants = require("./constants-BOVyEYGH.cjs");
7
7
  const require_types = require("./types-KjA8tY4Y.cjs");
8
8
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
9
9
  const require_planeOps = require("./planeOps-Cr25KWWA.cjs");
10
- const require_faceFns = require("./faceFns-C0SwZInk.cjs");
11
- const require_curveFns = require("./curveFns-YN8_CsqU.cjs");
10
+ const require_faceFns = require("./faceFns-B4X-xM8V.cjs");
11
+ const require_curveFns = require("./curveFns-CLG5eRx5.cjs");
12
12
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
13
- const require_surfaceBuilders = require("./surfaceBuilders-CUNhA_3a.cjs");
14
- const require_blueprintSketcher = require("./blueprintSketcher-k5dNnvzs.cjs");
15
- const require_helpers = require("./helpers-Cv-lOGsc.cjs");
16
- const require_blueprint = require("./blueprint-DG-2uqNB.cjs");
17
- const require_cornerFinder = require("./cornerFinder-BEiSjmuO.cjs");
18
- const require_boolean2D = require("./boolean2D-BmkwzUgt.cjs");
19
- const require_cameraFns = require("./cameraFns-BZMHFbh9.cjs");
13
+ const require_surfaceBuilders = require("./surfaceBuilders-QPtrtoXG.cjs");
14
+ const require_blueprintSketcher = require("./blueprintSketcher-BMy51I6w.cjs");
15
+ const require_helpers = require("./helpers-BslGOVYN.cjs");
16
+ const require_blueprint = require("./blueprint-HhixTgBZ.cjs");
17
+ const require_cornerFinder = require("./cornerFinder-DLmNe5qH.cjs");
18
+ const require_boolean2D = require("./boolean2D-DgyG0o-U.cjs");
19
+ const require_cameraFns = require("./cameraFns-DC1Bqs3i.cjs");
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
@@ -1,22 +1,22 @@
1
- import { W as DisposalScope, c as createEdge, l as createFace, p as createWire, rt as getKernel, tt as _usingCtx } from "./shapeTypes-B5bBKbg9.js";
1
+ import { W as DisposalScope, c as createEdge, it as getKernel, l as createFace, nt as _usingCtx, p as createWire } from "./shapeTypes-Cw-8_69M.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
3
3
  import { I as unwrap, s as safeIndex } from "./errors-B3CDG537.js";
4
- import { s as getEdges } from "./topologyQueryFns-MAUFbsSp.js";
4
+ import { s as getEdges } from "./topologyQueryFns-BT4CdXa2.js";
5
5
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
6
6
  import { r as toVec3 } from "./types-D24Y27N0.js";
7
7
  import { d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-SKPRvPH-.js";
8
8
  import { a as planeToWorld, o as resolvePlane } from "./planeOps-Cp6GQ23-.js";
9
- import { d as pointOnSurface, l as normalAt, m as uvBounds, r as faceCenter, u as outerWire, v as copyShape, y as downcast } from "./faceFns-CCu9ULQm.js";
10
- import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-SNQ04JW6.js";
9
+ import { d as pointOnSurface, l as normalAt, m as uvBounds, r as faceCenter, u as outerWire, v as copyShape, y as downcast } from "./faceFns-Bk5OdHMb.js";
10
+ import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-Sl36NbVb.js";
11
11
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
12
- import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-BdUP_OXk.js";
13
- import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-VvIRL3M8.js";
14
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-By-BruMN.js";
15
- 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-CwQmYoR4.js";
16
- import { t as cornerFinder } from "./cornerFinder-DhOm0L8g.js";
17
- import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-qYYFeLWX.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-C_JaAGiG.js";
19
- import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-CYU4C4N6.js";
12
+ import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-DI0oXs1Z.js";
13
+ import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-DsJQXRpk.js";
14
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-D4DOutu7.js";
15
+ 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-CAOmiu7r.js";
16
+ import { t as cornerFinder } from "./cornerFinder-DpOtHhry.js";
17
+ import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BGMaEgC3.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-GmfesKnp.js";
19
+ import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-ZCIt2Vwu.js";
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BfOb9vzc.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DbUdKYv8.cjs");
2
2
  const require_errors = require("./errors-CJU8CHng.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-tns6VXoD.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-D5hBmDkc.cjs");
4
4
  const require_types = require("./types-KjA8tY4Y.cjs");
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {