brepjs 18.118.11 → 18.118.13

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 (81) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-BaiFeuKQ.cjs → adjacencyFns-BdxIbZtR.cjs} +2 -2
  4. package/dist/{adjacencyFns-CRqm5AS0.js → adjacencyFns-qxeJWyj-.js} +2 -2
  5. package/dist/{blueprint-xYq-5XuV.js → blueprint-CJ7k25eW.js} +5 -5
  6. package/dist/{blueprint-DI5CF5j9.cjs → blueprint-DF-Ig1SW.cjs} +5 -5
  7. package/dist/{blueprintFns-BIx82gku.js → blueprintFns-BKtVfo16.js} +2 -2
  8. package/dist/{blueprintFns-rkE3w33A.cjs → blueprintFns-CjvHOuIy.cjs} +2 -2
  9. package/dist/{blueprintSketcher-DuNukkBb.js → blueprintSketcher-BIUHqWo9.js} +3 -3
  10. package/dist/{blueprintSketcher-CW1MTtqe.cjs → blueprintSketcher-DRGumaWR.cjs} +3 -3
  11. package/dist/{boolean2D-CstWuqo8.cjs → boolean2D-5WdQm5Kb.cjs} +4 -4
  12. package/dist/{boolean2D-D7WPkRuG.js → boolean2D-Buf04D7l.js} +4 -4
  13. package/dist/brepjs.cjs +40 -28
  14. package/dist/brepjs.js +40 -28
  15. package/dist/{cameraFns-CaG1cMFg.cjs → cameraFns-CiGOarQ4.cjs} +2 -2
  16. package/dist/{cameraFns-B1P5WTCI.js → cameraFns-MViqtlSh.js} +2 -2
  17. package/dist/core.cjs +1 -1
  18. package/dist/core.js +1 -1
  19. package/dist/{cornerFinder-BZqos_kQ.js → cornerFinder-BEe90gzY.js} +1 -1
  20. package/dist/{cornerFinder-Ivo7aISl.cjs → cornerFinder-Bss_mZV9.cjs} +1 -1
  21. package/dist/{curveFns-DDLgrGyy.cjs → curveFns-C2zZ7Xuq.cjs} +1 -1
  22. package/dist/{curveFns-C5qarKS5.js → curveFns-CH6gaGTf.js} +1 -1
  23. package/dist/{drawFns-BU7wz6Sh.js → drawFns-CWfBvGiY.js} +47 -33
  24. package/dist/{drawFns-BX8bt_LP.cjs → drawFns-DZHPT-nb.cjs} +48 -34
  25. package/dist/{faceFns-RZFix5VU.cjs → faceFns-BbmIuuFt.cjs} +2 -2
  26. package/dist/{faceFns-Bkno2HCU.js → faceFns-ClvSac1T.js} +2 -2
  27. package/dist/{healingFns-EW5ihOUV.cjs → healingFns-BZ-TOacm.cjs} +46 -20
  28. package/dist/{healingFns-5U-hverm.js → healingFns-BhB_G0L0.js} +46 -20
  29. package/dist/{helpers-DVMbGdiy.cjs → helpers-D0be4TzF.cjs} +6 -6
  30. package/dist/{helpers-XUoXaD5D.js → helpers-zVYq0h_A.js} +6 -6
  31. package/dist/{importFns-C2z-lgvq.js → importFns-CzBtuX0j.js} +2 -2
  32. package/dist/{importFns-EwV81J0E.cjs → importFns-Tgnymh7F.cjs} +2 -2
  33. package/dist/io.cjs +2 -2
  34. package/dist/io.js +2 -2
  35. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  36. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  37. package/dist/{loftFns-BWaSzS-2.cjs → loftFns-Be0OZxYM.cjs} +1 -1
  38. package/dist/{loftFns-DpQTJQgv.js → loftFns-DxJAP4Qv.js} +1 -1
  39. package/dist/{measureFns-D7FLzPAB.js → measureFns-Bbgcgo9U.js} +3 -3
  40. package/dist/{measureFns-z1j5oyK6.cjs → measureFns-cK6MSs6B.cjs} +3 -3
  41. package/dist/measurement.cjs +1 -1
  42. package/dist/measurement.js +1 -1
  43. package/dist/{meshFns-DqHpJu5I.js → meshFns-CKXYSlFr.js} +3 -3
  44. package/dist/{meshFns-CKOXvMDj.cjs → meshFns-Df26UzQ9.cjs} +3 -3
  45. package/dist/{occtWasmAdapter-nqo3wbVj.js → occtWasmAdapter-BgmRCYeD.js} +29 -11
  46. package/dist/{occtWasmAdapter-8wX1Z2-I.cjs → occtWasmAdapter-CWX5KCl8.cjs} +29 -11
  47. package/dist/operations.cjs +2 -2
  48. package/dist/operations.js +2 -2
  49. package/dist/{primitiveFns-uXoHZuh9.js → primitiveFns-1otQpjcN.js} +50 -19
  50. package/dist/{primitiveFns-D0k3Absh.cjs → primitiveFns-DZkzMLUq.cjs} +50 -19
  51. package/dist/projection.cjs +1 -1
  52. package/dist/projection.js +1 -1
  53. package/dist/query.cjs +2 -2
  54. package/dist/query.js +2 -2
  55. package/dist/{refResolveFns-C1DZyVnQ.cjs → refResolveFns-BLM5XlZR.cjs} +6 -6
  56. package/dist/{refResolveFns-CEs1EWWI.js → refResolveFns-_niAxNu8.js} +6 -6
  57. package/dist/{shapeFns-CpopWo8-.js → shapeFns-Gzaax25v.js} +2 -2
  58. package/dist/{shapeFns-CQVLaU7u.cjs → shapeFns-m5OBBpM4.cjs} +2 -2
  59. package/dist/shapeRef.cjs +1 -1
  60. package/dist/shapeRef.js +1 -1
  61. package/dist/{shapeTypes-BtEERwGK.js → shapeTypes-BalkiKtK.js} +4 -2
  62. package/dist/{shapeTypes-BsJXkU8g.cjs → shapeTypes-C4gRoPYX.cjs} +4 -2
  63. package/dist/sketching.cjs +3 -3
  64. package/dist/sketching.js +3 -3
  65. package/dist/{solidBuilders-t7TnJXqT.cjs → solidBuilders-CHzmSo67.cjs} +8 -8
  66. package/dist/{solidBuilders-BRva7VpY.js → solidBuilders-CgEPRock.js} +8 -8
  67. package/dist/{surfaceBuilders-On9uTEBH.cjs → surfaceBuilders-DWHDogVL.cjs} +13 -4
  68. package/dist/{surfaceBuilders-Co91_Kh7.js → surfaceBuilders-HAF4Xtow.js} +13 -4
  69. package/dist/text.cjs +2 -2
  70. package/dist/text.js +2 -2
  71. package/dist/{textBlueprints-DdCJocI3.js → textBlueprints-CFPE5_QI.js} +7 -7
  72. package/dist/{textBlueprints-BoFKAYI9.cjs → textBlueprints-DgTBXc6O.cjs} +7 -7
  73. package/dist/{textMetrics-CS_JMGf1.cjs → textMetrics-BH-izd6N.cjs} +1 -1
  74. package/dist/{textMetrics-DYzW2as_.js → textMetrics-C2cwK7wU.js} +1 -1
  75. package/dist/{threadFns-DwKNCMFx.cjs → threadFns-B6SQd48K.cjs} +32 -18
  76. package/dist/{threadFns-BKQNkgT6.js → threadFns-G71HVwW7.js} +32 -18
  77. package/dist/topology.cjs +9 -9
  78. package/dist/topology.js +9 -9
  79. package/dist/{topologyQueryFns-5vIsyp4r.cjs → topologyQueryFns-BzIV1jHw.cjs} +1 -1
  80. package/dist/{topologyQueryFns-BU41SCtU.js → topologyQueryFns-vDjZw1k2.js} +1 -1
  81. package/package.json +1 -1
@@ -1,22 +1,22 @@
1
- import { U as DisposalScope, c as createFace, et as _usingCtx, f as createWire, nt as getKernel, s as createEdge } from "./shapeTypes-BtEERwGK.js";
1
+ import { U as DisposalScope, c as createFace, et as _usingCtx, f as createWire, nt as getKernel, s as createEdge } from "./shapeTypes-BalkiKtK.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
3
  import { R as unwrap, h as bug, s as safeIndex } from "./errors-DNWJsfVU.js";
4
- import { s as getEdges } from "./topologyQueryFns-BU41SCtU.js";
4
+ import { s as getEdges } from "./topologyQueryFns-vDjZw1k2.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-DSjjtrjg.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-Bkno2HCU.js";
10
- import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-C5qarKS5.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-ClvSac1T.js";
10
+ import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-CH6gaGTf.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-Co91_Kh7.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-DuNukkBb.js";
14
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-XUoXaD5D.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-xYq-5XuV.js";
16
- import { t as cornerFinder } from "./cornerFinder-BZqos_kQ.js";
17
- import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D7WPkRuG.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-DdCJocI3.js";
19
- import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-B1P5WTCI.js";
12
+ import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-HAF4Xtow.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-BIUHqWo9.js";
14
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-zVYq0h_A.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-CJ7k25eW.js";
16
+ import { t as cornerFinder } from "./cornerFinder-BEe90gzY.js";
17
+ import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-Buf04D7l.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-CFPE5_QI.js";
19
+ import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-MViqtlSh.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.
@@ -299,11 +299,18 @@ var FaceSketcher = class extends BaseSketcher2d {
299
299
  * @category Sketching
300
300
  */
301
301
  var sketchCircle = (radius, planeConfig = {}) => {
302
- const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : unwrap(resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
303
- return new Sketch(unwrap(assembleWire([makeCircle(radius, plane.origin, plane.zDir)])), {
304
- defaultOrigin: [...plane.origin],
305
- defaultDirection: [...plane.zDir]
306
- });
302
+ try {
303
+ var _usingCtx$2 = _usingCtx();
304
+ const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : unwrap(resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
305
+ return new Sketch(unwrap(assembleWire([_usingCtx$2.u(new DisposalScope()).register(makeCircle(radius, plane.origin, plane.zDir))])), {
306
+ defaultOrigin: [...plane.origin],
307
+ defaultDirection: [...plane.zDir]
308
+ });
309
+ } catch (_) {
310
+ _usingCtx$2.e = _;
311
+ } finally {
312
+ _usingCtx$2.d();
313
+ }
307
314
  };
308
315
  /**
309
316
  * Create an elliptical Sketch on a given plane.
@@ -316,19 +323,26 @@ var sketchCircle = (radius, planeConfig = {}) => {
316
323
  * @category Sketching
317
324
  */
318
325
  var sketchEllipse = (xRadius = 1, yRadius = 2, planeConfig = {}) => {
319
- const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : unwrap(resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
320
- let xDir = plane.xDir;
321
- let majR = xRadius;
322
- let minR = yRadius;
323
- if (yRadius > xRadius) {
324
- xDir = vecRotate(xDir, plane.zDir, 90 * DEG2RAD);
325
- majR = yRadius;
326
- minR = xRadius;
326
+ try {
327
+ var _usingCtx3 = _usingCtx();
328
+ const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : unwrap(resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
329
+ let xDir = plane.xDir;
330
+ let majR = xRadius;
331
+ let minR = yRadius;
332
+ if (yRadius > xRadius) {
333
+ xDir = vecRotate(xDir, plane.zDir, 90 * DEG2RAD);
334
+ majR = yRadius;
335
+ minR = xRadius;
336
+ }
337
+ return new Sketch(unwrap(assembleWire([_usingCtx3.u(new DisposalScope()).register(unwrap(makeEllipse(majR, minR, plane.origin, plane.zDir, xDir)))])), {
338
+ defaultOrigin: [...plane.origin],
339
+ defaultDirection: [...plane.zDir]
340
+ });
341
+ } catch (_) {
342
+ _usingCtx3.e = _;
343
+ } finally {
344
+ _usingCtx3.d();
327
345
  }
328
- return new Sketch(unwrap(assembleWire([unwrap(makeEllipse(majR, minR, plane.origin, plane.zDir, xDir))])), {
329
- defaultOrigin: [...plane.origin],
330
- defaultDirection: [...plane.zDir]
331
- });
332
346
  };
333
347
  /**
334
348
  * Create a rectangular Sketch centered on a given plane.
@@ -446,8 +460,8 @@ var sketchFaceOffset = (face, offset) => {
446
460
  */
447
461
  var sketchParametricFunction = (func, planeConfig = {}, { pointsCount = 400, start = 0, stop = 1 } = {}, approximationConfig = {}) => {
448
462
  try {
449
- var _usingCtx$2 = _usingCtx();
450
- const scope = _usingCtx$2.u(new DisposalScope());
463
+ var _usingCtx4 = _usingCtx();
464
+ const scope = _usingCtx4.u(new DisposalScope());
451
465
  const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : unwrap(resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
452
466
  const stepSize = (stop - start) / pointsCount;
453
467
  const points = [...Array(pointsCount + 1).keys()].map((t) => {
@@ -459,9 +473,9 @@ var sketchParametricFunction = (func, planeConfig = {}, { pointsCount = 400, sta
459
473
  defaultDirection: [...plane.zDir]
460
474
  });
461
475
  } catch (_) {
462
- _usingCtx$2.e = _;
476
+ _usingCtx4.e = _;
463
477
  } finally {
464
- _usingCtx$2.d();
478
+ _usingCtx4.d();
465
479
  }
466
480
  };
467
481
  /**
@@ -1,22 +1,22 @@
1
- const require_textBlueprints = require("./textBlueprints-BoFKAYI9.cjs");
2
- const require_shapeTypes = require("./shapeTypes-BsJXkU8g.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-DgTBXc6O.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
3
3
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
4
4
  const require_errors = require("./errors-CXJtc4I7.cjs");
5
- const require_topologyQueryFns = require("./topologyQueryFns-5vIsyp4r.cjs");
5
+ const require_topologyQueryFns = require("./topologyQueryFns-BzIV1jHw.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-BA4HfgQu.cjs");
10
- const require_faceFns = require("./faceFns-RZFix5VU.cjs");
11
- const require_curveFns = require("./curveFns-DDLgrGyy.cjs");
10
+ const require_faceFns = require("./faceFns-BbmIuuFt.cjs");
11
+ const require_curveFns = require("./curveFns-C2zZ7Xuq.cjs");
12
12
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
13
- const require_surfaceBuilders = require("./surfaceBuilders-On9uTEBH.cjs");
14
- const require_blueprintSketcher = require("./blueprintSketcher-CW1MTtqe.cjs");
15
- const require_helpers = require("./helpers-DVMbGdiy.cjs");
16
- const require_blueprint = require("./blueprint-DI5CF5j9.cjs");
17
- const require_cornerFinder = require("./cornerFinder-Ivo7aISl.cjs");
18
- const require_boolean2D = require("./boolean2D-CstWuqo8.cjs");
19
- const require_cameraFns = require("./cameraFns-CaG1cMFg.cjs");
13
+ const require_surfaceBuilders = require("./surfaceBuilders-DWHDogVL.cjs");
14
+ const require_blueprintSketcher = require("./blueprintSketcher-DRGumaWR.cjs");
15
+ const require_helpers = require("./helpers-D0be4TzF.cjs");
16
+ const require_blueprint = require("./blueprint-DF-Ig1SW.cjs");
17
+ const require_cornerFinder = require("./cornerFinder-Bss_mZV9.cjs");
18
+ const require_boolean2D = require("./boolean2D-5WdQm5Kb.cjs");
19
+ const require_cameraFns = require("./cameraFns-CiGOarQ4.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.
@@ -299,11 +299,18 @@ var FaceSketcher = class extends require_blueprintSketcher.BaseSketcher2d {
299
299
  * @category Sketching
300
300
  */
301
301
  var sketchCircle = (radius, planeConfig = {}) => {
302
- const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : require_errors.unwrap(require_planeOps.resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
303
- return new require_textBlueprints.Sketch(require_errors.unwrap(require_surfaceBuilders.assembleWire([require_surfaceBuilders.makeCircle(radius, plane.origin, plane.zDir)])), {
304
- defaultOrigin: [...plane.origin],
305
- defaultDirection: [...plane.zDir]
306
- });
302
+ try {
303
+ var _usingCtx$2 = require_shapeTypes._usingCtx();
304
+ const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : require_errors.unwrap(require_planeOps.resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
305
+ return new require_textBlueprints.Sketch(require_errors.unwrap(require_surfaceBuilders.assembleWire([_usingCtx$2.u(new require_shapeTypes.DisposalScope()).register(require_surfaceBuilders.makeCircle(radius, plane.origin, plane.zDir))])), {
306
+ defaultOrigin: [...plane.origin],
307
+ defaultDirection: [...plane.zDir]
308
+ });
309
+ } catch (_) {
310
+ _usingCtx$2.e = _;
311
+ } finally {
312
+ _usingCtx$2.d();
313
+ }
307
314
  };
308
315
  /**
309
316
  * Create an elliptical Sketch on a given plane.
@@ -316,19 +323,26 @@ var sketchCircle = (radius, planeConfig = {}) => {
316
323
  * @category Sketching
317
324
  */
318
325
  var sketchEllipse = (xRadius = 1, yRadius = 2, planeConfig = {}) => {
319
- const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : require_errors.unwrap(require_planeOps.resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
320
- let xDir = plane.xDir;
321
- let majR = xRadius;
322
- let minR = yRadius;
323
- if (yRadius > xRadius) {
324
- xDir = require_vecOps.vecRotate(xDir, plane.zDir, 90 * require_constants.DEG2RAD);
325
- majR = yRadius;
326
- minR = xRadius;
327
- }
328
- return new require_textBlueprints.Sketch(require_errors.unwrap(require_surfaceBuilders.assembleWire([require_errors.unwrap(require_surfaceBuilders.makeEllipse(majR, minR, plane.origin, plane.zDir, xDir))])), {
329
- defaultOrigin: [...plane.origin],
330
- defaultDirection: [...plane.zDir]
331
- });
326
+ try {
327
+ var _usingCtx3 = require_shapeTypes._usingCtx();
328
+ const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : require_errors.unwrap(require_planeOps.resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
329
+ let xDir = plane.xDir;
330
+ let majR = xRadius;
331
+ let minR = yRadius;
332
+ if (yRadius > xRadius) {
333
+ xDir = require_vecOps.vecRotate(xDir, plane.zDir, 90 * require_constants.DEG2RAD);
334
+ majR = yRadius;
335
+ minR = xRadius;
336
+ }
337
+ return new require_textBlueprints.Sketch(require_errors.unwrap(require_surfaceBuilders.assembleWire([_usingCtx3.u(new require_shapeTypes.DisposalScope()).register(require_errors.unwrap(require_surfaceBuilders.makeEllipse(majR, minR, plane.origin, plane.zDir, xDir)))])), {
338
+ defaultOrigin: [...plane.origin],
339
+ defaultDirection: [...plane.zDir]
340
+ });
341
+ } catch (_) {
342
+ _usingCtx3.e = _;
343
+ } finally {
344
+ _usingCtx3.d();
345
+ }
332
346
  };
333
347
  /**
334
348
  * Create a rectangular Sketch centered on a given plane.
@@ -446,8 +460,8 @@ var sketchFaceOffset = (face, offset) => {
446
460
  */
447
461
  var sketchParametricFunction = (func, planeConfig = {}, { pointsCount = 400, start = 0, stop = 1 } = {}, approximationConfig = {}) => {
448
462
  try {
449
- var _usingCtx$2 = require_shapeTypes._usingCtx();
450
- const scope = _usingCtx$2.u(new require_shapeTypes.DisposalScope());
463
+ var _usingCtx4 = require_shapeTypes._usingCtx();
464
+ const scope = _usingCtx4.u(new require_shapeTypes.DisposalScope());
451
465
  const plane = planeConfig.plane && typeof planeConfig.plane !== "string" ? { ...planeConfig.plane } : require_errors.unwrap(require_planeOps.resolvePlane(planeConfig.plane ?? "XY", planeConfig.origin));
452
466
  const stepSize = (stop - start) / pointsCount;
453
467
  const points = [...Array(pointsCount + 1).keys()].map((t) => {
@@ -459,9 +473,9 @@ var sketchParametricFunction = (func, planeConfig = {}, { pointsCount = 400, sta
459
473
  defaultDirection: [...plane.zDir]
460
474
  });
461
475
  } catch (_) {
462
- _usingCtx$2.e = _;
476
+ _usingCtx4.e = _;
463
477
  } finally {
464
- _usingCtx$2.d();
478
+ _usingCtx4.d();
465
479
  }
466
480
  };
467
481
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BsJXkU8g.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-5vIsyp4r.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BzIV1jHw.cjs");
4
4
  const require_types = require("./types-KjA8tY4Y.cjs");
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,6 +1,6 @@
1
- import { nt as getKernel, r as castShape } from "./shapeTypes-BtEERwGK.js";
1
+ import { nt as getKernel, r as castShape } from "./shapeTypes-BalkiKtK.js";
2
2
  import { A as ok, R as unwrap, b as err, l as typeCastError } from "./errors-DNWJsfVU.js";
3
- import { a as getCachedSurfaceType } from "./topologyQueryFns-BU41SCtU.js";
3
+ import { a as getCachedSurfaceType } from "./topologyQueryFns-vDjZw1k2.js";
4
4
  import { r as toVec3 } from "./types-D24Y27N0.js";
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-BsJXkU8g.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-5vIsyp4r.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BzIV1jHw.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-RZFix5VU.cjs");
6
- const require_shapeFns = require("./shapeFns-CQVLaU7u.cjs");
5
+ const require_faceFns = require("./faceFns-BbmIuuFt.cjs");
6
+ const require_shapeFns = require("./shapeFns-m5OBBpM4.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_solidBuilders = require("./solidBuilders-t7TnJXqT.cjs");
8
+ const require_solidBuilders = require("./solidBuilders-CHzmSo67.cjs");
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -974,10 +974,16 @@ function healSolid(solid) {
974
974
  if (alreadyValid) return require_errors.ok(solid);
975
975
  return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.HEAL_NO_EFFECT, "Solid healing had no effect — shape is still invalid"));
976
976
  }
977
- const cast = require_shapeTypes.castShape(result);
978
- if (!require_shapeTypes.isSolid(cast)) return require_errors.err(require_errors.kernelError("HEAL_RESULT_NOT_SOLID", "Healed result is not a solid"));
977
+ const cast = require_shapeTypes.castResultShape(result);
978
+ if (!require_shapeTypes.isSolid(cast)) {
979
+ require_shapeTypes.disposeResultShape(cast);
980
+ return require_errors.err(require_errors.kernelError("HEAL_RESULT_NOT_SOLID", "Healed result is not a solid"));
981
+ }
979
982
  require_topologyQueryFns.invalidateShapeCache(cast);
980
- if (!isValid(cast)) return require_errors.err(require_errors.kernelError("HEAL_SOLID_INCOMPLETE", "Healed result is still invalid after ShapeFix_Solid"));
983
+ if (!isValid(cast)) {
984
+ require_shapeTypes.disposeResultShape(cast);
985
+ return require_errors.err(require_errors.kernelError("HEAL_SOLID_INCOMPLETE", "Healed result is still invalid after ShapeFix_Solid"));
986
+ }
981
987
  return require_errors.ok(cast);
982
988
  } catch (e) {
983
989
  return require_errors.err(require_errors.kernelError("HEAL_SOLID_FAILED", "Solid healing failed", e));
@@ -991,8 +997,11 @@ function healSolid(solid) {
991
997
  function healFace(face) {
992
998
  if (!require_shapeTypes.isFace(face)) return require_errors.err(require_errors.validationError("NOT_A_FACE", "Input shape is not a face"));
993
999
  try {
994
- const cast = require_shapeTypes.castShape(require_shapeTypes.getKernel().healFace(face.wrapped));
995
- if (!require_shapeTypes.isFace(cast)) return require_errors.err(require_errors.kernelError("HEAL_RESULT_NOT_FACE", "Healed result is not a face"));
1000
+ const cast = require_shapeTypes.castResultShape(require_shapeTypes.getKernel().healFace(face.wrapped));
1001
+ if (!require_shapeTypes.isFace(cast)) {
1002
+ require_shapeTypes.disposeResultShape(cast);
1003
+ return require_errors.err(require_errors.kernelError("HEAL_RESULT_NOT_FACE", "Healed result is not a face"));
1004
+ }
996
1005
  return require_errors.ok(cast);
997
1006
  } catch (e) {
998
1007
  return require_errors.err(require_errors.kernelError("HEAL_FACE_FAILED", "Face healing failed", e));
@@ -1007,8 +1016,11 @@ function healFace(face) {
1007
1016
  function healWire(wire, face) {
1008
1017
  if (!require_shapeTypes.isWire(wire)) return require_errors.err(require_errors.validationError("NOT_A_WIRE", "Input shape is not a wire"));
1009
1018
  try {
1010
- const cast = require_shapeTypes.castShape(require_shapeTypes.getKernel().healWire(wire.wrapped, face?.wrapped));
1011
- if (!require_shapeTypes.isWire(cast)) return require_errors.err(require_errors.kernelError("HEAL_RESULT_NOT_WIRE", "Healed result is not a wire"));
1019
+ const cast = require_shapeTypes.castResultShape(require_shapeTypes.getKernel().healWire(wire.wrapped, face?.wrapped));
1020
+ if (!require_shapeTypes.isWire(cast)) {
1021
+ require_shapeTypes.disposeResultShape(cast);
1022
+ return require_errors.err(require_errors.kernelError("HEAL_RESULT_NOT_WIRE", "Healed result is not a wire"));
1023
+ }
1012
1024
  return require_errors.ok(cast);
1013
1025
  } catch (e) {
1014
1026
  return require_errors.err(require_errors.kernelError("HEAL_WIRE_FAILED", "Wire healing failed", e));
@@ -1062,8 +1074,13 @@ function autoHeal(shape, options) {
1062
1074
  const facesBefore = require_topologyQueryFns.getFaces(shape).length;
1063
1075
  let current = shape;
1064
1076
  let solidHealed = false;
1077
+ const setCurrent = (next) => {
1078
+ const prev = current;
1079
+ current = next;
1080
+ if (prev !== shape && prev.wrapped !== next.wrapped) require_shapeTypes.disposeResultShape(prev);
1081
+ };
1065
1082
  if (sewTolerance !== void 0) try {
1066
- current = require_shapeTypes.castShape(require_shapeTypes.getKernel().sew([current.wrapped], sewTolerance));
1083
+ setCurrent(require_shapeTypes.castResultShape(require_shapeTypes.getKernel().sew([current.wrapped], sewTolerance)));
1067
1084
  steps.push(`Applied sewing with tolerance ${sewTolerance}`);
1068
1085
  diagnostics.push({
1069
1086
  name: "sew",
@@ -1099,7 +1116,7 @@ function autoHeal(shape, options) {
1099
1116
  if (require_shapeTypes.isSolid(current) && fixSolids || require_shapeTypes.isFace(current) && fixFaces || require_shapeTypes.isWire(current) && fixWires) {
1100
1117
  const healResult = heal(current);
1101
1118
  if (require_errors.isOk(healResult)) {
1102
- current = healResult.value;
1119
+ setCurrent(healResult.value);
1103
1120
  if (require_shapeTypes.isSolid(shape)) {
1104
1121
  solidHealed = true;
1105
1122
  steps.push("Applied ShapeFix_Solid");
@@ -1169,7 +1186,7 @@ function autoHeal(shape, options) {
1169
1186
  */
1170
1187
  function fixShape(shape) {
1171
1188
  try {
1172
- return require_errors.ok(require_shapeTypes.castShape(require_shapeTypes.getKernel().fixShape(shape.wrapped)));
1189
+ return require_errors.ok(require_shapeTypes.castResultShape(require_shapeTypes.getKernel().fixShape(shape.wrapped)));
1173
1190
  } catch (e) {
1174
1191
  return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.FIX_SHAPE_FAILED, "ShapeFix_Shape failed", e));
1175
1192
  }
@@ -1181,9 +1198,15 @@ function fixShape(shape) {
1181
1198
  */
1182
1199
  function solidFromShell(shell) {
1183
1200
  try {
1184
- const wrapped = require_shapeTypes.castShape(require_shapeTypes.getKernel().solidFromShell(shell.wrapped));
1185
- if (!require_shapeTypes.isSolid(wrapped)) return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell did not produce a solid"));
1186
- if (!isValid(wrapped)) return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell produced an invalid solid"));
1201
+ const wrapped = require_shapeTypes.castResultShape(require_shapeTypes.getKernel().solidFromShell(shell.wrapped));
1202
+ if (!require_shapeTypes.isSolid(wrapped)) {
1203
+ require_shapeTypes.disposeResultShape(wrapped);
1204
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell did not produce a solid"));
1205
+ }
1206
+ if (!isValid(wrapped)) {
1207
+ require_shapeTypes.disposeResultShape(wrapped);
1208
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell produced an invalid solid"));
1209
+ }
1187
1210
  return require_errors.ok(wrapped);
1188
1211
  } catch (e) {
1189
1212
  return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.SOLID_FROM_SHELL_FAILED, "Failed to create solid from shell", e));
@@ -1196,8 +1219,11 @@ function solidFromShell(shell) {
1196
1219
  */
1197
1220
  function fixSelfIntersection(wire) {
1198
1221
  try {
1199
- const wrapped = require_shapeTypes.castShape(require_shapeTypes.getKernel().fixSelfIntersection(wire.wrapped));
1200
- if (!require_shapeTypes.isWire(wrapped)) return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.FIX_SELF_INTERSECTION_FAILED, "Result is not a wire"));
1222
+ const wrapped = require_shapeTypes.castResultShape(require_shapeTypes.getKernel().fixSelfIntersection(wire.wrapped));
1223
+ if (!require_shapeTypes.isWire(wrapped)) {
1224
+ require_shapeTypes.disposeResultShape(wrapped);
1225
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.FIX_SELF_INTERSECTION_FAILED, "Result is not a wire"));
1226
+ }
1201
1227
  return require_errors.ok(wrapped);
1202
1228
  } catch (e) {
1203
1229
  return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.FIX_SELF_INTERSECTION_FAILED, "Failed to fix wire self-intersection", e));
@@ -1,11 +1,11 @@
1
- import { L as getShapeKind, S as isSolid, b as isShape3D, m as disposeResultShape, nt as getKernel, p as disposeDowncastSource, r as castShape, t as castResultShape, v as isFace, w as isWire } from "./shapeTypes-BtEERwGK.js";
1
+ import { L as getShapeKind, S as isSolid, b as isShape3D, m as disposeResultShape, nt as getKernel, p as disposeDowncastSource, r as castShape, t as castResultShape, v as isFace, w as isWire } from "./shapeTypes-BalkiKtK.js";
2
2
  import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DNWJsfVU.js";
3
- import { c as getFaces, i as getCachedIsValid, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-BU41SCtU.js";
3
+ import { c as getFaces, i as getCachedIsValid, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-vDjZw1k2.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
- import { y as downcast } from "./faceFns-Bkno2HCU.js";
6
- import { _ as collectInputFaceHashes, y as propagateAllMetadata } from "./shapeFns-CpopWo8-.js";
5
+ import { y as downcast } from "./faceFns-ClvSac1T.js";
6
+ import { _ as collectInputFaceHashes, y as propagateAllMetadata } from "./shapeFns-Gzaax25v.js";
7
7
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
8
- import { f as cut, h as fuseAll, m as fuse, p as cutAll } from "./solidBuilders-BRva7VpY.js";
8
+ import { f as cut, h as fuseAll, m as fuse, p as cutAll } from "./solidBuilders-CgEPRock.js";
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -974,10 +974,16 @@ function healSolid(solid) {
974
974
  if (alreadyValid) return ok(solid);
975
975
  return err(kernelError(BrepErrorCode.HEAL_NO_EFFECT, "Solid healing had no effect — shape is still invalid"));
976
976
  }
977
- const cast = castShape(result);
978
- if (!isSolid(cast)) return err(kernelError("HEAL_RESULT_NOT_SOLID", "Healed result is not a solid"));
977
+ const cast = castResultShape(result);
978
+ if (!isSolid(cast)) {
979
+ disposeResultShape(cast);
980
+ return err(kernelError("HEAL_RESULT_NOT_SOLID", "Healed result is not a solid"));
981
+ }
979
982
  invalidateShapeCache(cast);
980
- if (!isValid(cast)) return err(kernelError("HEAL_SOLID_INCOMPLETE", "Healed result is still invalid after ShapeFix_Solid"));
983
+ if (!isValid(cast)) {
984
+ disposeResultShape(cast);
985
+ return err(kernelError("HEAL_SOLID_INCOMPLETE", "Healed result is still invalid after ShapeFix_Solid"));
986
+ }
981
987
  return ok(cast);
982
988
  } catch (e) {
983
989
  return err(kernelError("HEAL_SOLID_FAILED", "Solid healing failed", e));
@@ -991,8 +997,11 @@ function healSolid(solid) {
991
997
  function healFace(face) {
992
998
  if (!isFace(face)) return err(validationError("NOT_A_FACE", "Input shape is not a face"));
993
999
  try {
994
- const cast = castShape(getKernel().healFace(face.wrapped));
995
- if (!isFace(cast)) return err(kernelError("HEAL_RESULT_NOT_FACE", "Healed result is not a face"));
1000
+ const cast = castResultShape(getKernel().healFace(face.wrapped));
1001
+ if (!isFace(cast)) {
1002
+ disposeResultShape(cast);
1003
+ return err(kernelError("HEAL_RESULT_NOT_FACE", "Healed result is not a face"));
1004
+ }
996
1005
  return ok(cast);
997
1006
  } catch (e) {
998
1007
  return err(kernelError("HEAL_FACE_FAILED", "Face healing failed", e));
@@ -1007,8 +1016,11 @@ function healFace(face) {
1007
1016
  function healWire(wire, face) {
1008
1017
  if (!isWire(wire)) return err(validationError("NOT_A_WIRE", "Input shape is not a wire"));
1009
1018
  try {
1010
- const cast = castShape(getKernel().healWire(wire.wrapped, face?.wrapped));
1011
- if (!isWire(cast)) return err(kernelError("HEAL_RESULT_NOT_WIRE", "Healed result is not a wire"));
1019
+ const cast = castResultShape(getKernel().healWire(wire.wrapped, face?.wrapped));
1020
+ if (!isWire(cast)) {
1021
+ disposeResultShape(cast);
1022
+ return err(kernelError("HEAL_RESULT_NOT_WIRE", "Healed result is not a wire"));
1023
+ }
1012
1024
  return ok(cast);
1013
1025
  } catch (e) {
1014
1026
  return err(kernelError("HEAL_WIRE_FAILED", "Wire healing failed", e));
@@ -1062,8 +1074,13 @@ function autoHeal(shape, options) {
1062
1074
  const facesBefore = getFaces(shape).length;
1063
1075
  let current = shape;
1064
1076
  let solidHealed = false;
1077
+ const setCurrent = (next) => {
1078
+ const prev = current;
1079
+ current = next;
1080
+ if (prev !== shape && prev.wrapped !== next.wrapped) disposeResultShape(prev);
1081
+ };
1065
1082
  if (sewTolerance !== void 0) try {
1066
- current = castShape(getKernel().sew([current.wrapped], sewTolerance));
1083
+ setCurrent(castResultShape(getKernel().sew([current.wrapped], sewTolerance)));
1067
1084
  steps.push(`Applied sewing with tolerance ${sewTolerance}`);
1068
1085
  diagnostics.push({
1069
1086
  name: "sew",
@@ -1099,7 +1116,7 @@ function autoHeal(shape, options) {
1099
1116
  if (isSolid(current) && fixSolids || isFace(current) && fixFaces || isWire(current) && fixWires) {
1100
1117
  const healResult = heal(current);
1101
1118
  if (isOk(healResult)) {
1102
- current = healResult.value;
1119
+ setCurrent(healResult.value);
1103
1120
  if (isSolid(shape)) {
1104
1121
  solidHealed = true;
1105
1122
  steps.push("Applied ShapeFix_Solid");
@@ -1169,7 +1186,7 @@ function autoHeal(shape, options) {
1169
1186
  */
1170
1187
  function fixShape(shape) {
1171
1188
  try {
1172
- return ok(castShape(getKernel().fixShape(shape.wrapped)));
1189
+ return ok(castResultShape(getKernel().fixShape(shape.wrapped)));
1173
1190
  } catch (e) {
1174
1191
  return err(kernelError(BrepErrorCode.FIX_SHAPE_FAILED, "ShapeFix_Shape failed", e));
1175
1192
  }
@@ -1181,9 +1198,15 @@ function fixShape(shape) {
1181
1198
  */
1182
1199
  function solidFromShell(shell) {
1183
1200
  try {
1184
- const wrapped = castShape(getKernel().solidFromShell(shell.wrapped));
1185
- if (!isSolid(wrapped)) return err(kernelError(BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell did not produce a solid"));
1186
- if (!isValid(wrapped)) return err(kernelError(BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell produced an invalid solid"));
1201
+ const wrapped = castResultShape(getKernel().solidFromShell(shell.wrapped));
1202
+ if (!isSolid(wrapped)) {
1203
+ disposeResultShape(wrapped);
1204
+ return err(kernelError(BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell did not produce a solid"));
1205
+ }
1206
+ if (!isValid(wrapped)) {
1207
+ disposeResultShape(wrapped);
1208
+ return err(kernelError(BrepErrorCode.SOLID_FROM_SHELL_FAILED, "solidFromShell produced an invalid solid"));
1209
+ }
1187
1210
  return ok(wrapped);
1188
1211
  } catch (e) {
1189
1212
  return err(kernelError(BrepErrorCode.SOLID_FROM_SHELL_FAILED, "Failed to create solid from shell", e));
@@ -1196,8 +1219,11 @@ function solidFromShell(shell) {
1196
1219
  */
1197
1220
  function fixSelfIntersection(wire) {
1198
1221
  try {
1199
- const wrapped = castShape(getKernel().fixSelfIntersection(wire.wrapped));
1200
- if (!isWire(wrapped)) return err(kernelError(BrepErrorCode.FIX_SELF_INTERSECTION_FAILED, "Result is not a wire"));
1222
+ const wrapped = castResultShape(getKernel().fixSelfIntersection(wire.wrapped));
1223
+ if (!isWire(wrapped)) {
1224
+ disposeResultShape(wrapped);
1225
+ return err(kernelError(BrepErrorCode.FIX_SELF_INTERSECTION_FAILED, "Result is not a wire"));
1226
+ }
1201
1227
  return ok(wrapped);
1202
1228
  } catch (e) {
1203
1229
  return err(kernelError(BrepErrorCode.FIX_SELF_INTERSECTION_FAILED, "Failed to fix wire self-intersection", e));
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-BsJXkU8g.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-5vIsyp4r.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BzIV1jHw.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
- const require_faceFns = require("./faceFns-RZFix5VU.cjs");
7
- const require_shapeFns = require("./shapeFns-CQVLaU7u.cjs");
8
- const require_curveFns = require("./curveFns-DDLgrGyy.cjs");
9
- const require_measureFns = require("./measureFns-z1j5oyK6.cjs");
6
+ const require_faceFns = require("./faceFns-BbmIuuFt.cjs");
7
+ const require_shapeFns = require("./shapeFns-m5OBBpM4.cjs");
8
+ const require_curveFns = require("./curveFns-C2zZ7Xuq.cjs");
9
+ const require_measureFns = require("./measureFns-cK6MSs6B.cjs");
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,12 +1,12 @@
1
- import { nt as getKernel, v as isFace } from "./shapeTypes-BtEERwGK.js";
1
+ import { nt as getKernel, v as isFace } from "./shapeTypes-BalkiKtK.js";
2
2
  import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DNWJsfVU.js";
3
- import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-BU41SCtU.js";
3
+ import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-vDjZw1k2.js";
4
4
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
6
- import { l as normalAt, s as getSurfaceType } from "./faceFns-Bkno2HCU.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-CpopWo8-.js";
8
- import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-C5qarKS5.js";
9
- import { n as measureArea } from "./measureFns-D7FLzPAB.js";
6
+ import { l as normalAt, s as getSurfaceType } from "./faceFns-ClvSac1T.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-Gzaax25v.js";
8
+ import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-CH6gaGTf.js";
9
+ import { n as measureArea } from "./measureFns-Bbgcgo9U.js";
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,8 +1,8 @@
1
- import { nt as getKernel, r as castShape } from "./shapeTypes-BtEERwGK.js";
1
+ import { nt as getKernel, r as castShape } from "./shapeTypes-BalkiKtK.js";
2
2
  import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
3
3
  import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
4
4
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
5
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-xYq-5XuV.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-CJ7k25eW.js";
6
6
  //#region src/io/objExportFns.ts
7
7
  /** Read a vec3 from a typed array at the given vertex index. */
8
8
  function vec3At(arr, i) {
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-BsJXkU8g.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
3
  const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-DI5CF5j9.cjs");
5
+ const require_blueprint = require("./blueprint-DF-Ig1SW.cjs");
6
6
  //#region src/io/objExportFns.ts
7
7
  /** Read a vec3 from a typed array at the given vertex index. */
8
8
  function vec3At(arr, i) {
package/dist/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-CKOXvMDj.cjs");
3
- const require_importFns = require("./importFns-EwV81J0E.cjs");
2
+ const require_meshFns = require("./meshFns-Df26UzQ9.cjs");
3
+ const require_importFns = require("./importFns-Tgnymh7F.cjs");
4
4
  exports.blueprintToDXF = require_importFns.blueprintToDXF;
5
5
  exports.exportDXF = require_importFns.exportDXF;
6
6
  exports.exportGlb = require_importFns.exportGlb;
package/dist/io.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-DqHpJu5I.js";
2
- import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-C2z-lgvq.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-CKXYSlFr.js";
2
+ import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-CzBtuX0j.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_occtWasmAdapter = require("../../occtWasmAdapter-8wX1Z2-I.cjs");
2
+ const require_occtWasmAdapter = require("../../occtWasmAdapter-CWX5KCl8.cjs");
3
3
  exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
@@ -1,2 +1,2 @@
1
- import { t as OcctWasmAdapter } from "../../occtWasmAdapter-nqo3wbVj.js";
1
+ import { t as OcctWasmAdapter } from "../../occtWasmAdapter-BgmRCYeD.js";
2
2
  export { OcctWasmAdapter };
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-BsJXkU8g.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C4gRoPYX.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_types = require("./types-KjA8tY4Y.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");