brepjs 18.33.2 → 18.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/2d.cjs +7 -7
  2. package/dist/2d.js +7 -7
  3. package/dist/{blueprint-CDjFNsmN.cjs → blueprint-BB_nIqH9.cjs} +7 -7
  4. package/dist/{blueprint-CNczvCJD.js → blueprint-DmWmhXi4.js} +7 -7
  5. package/dist/{blueprintFns-DT6oP1MU.js → blueprintFns-B4xOCuT3.js} +3 -3
  6. package/dist/{blueprintFns-HxHdlOrY.cjs → blueprintFns-C3NplQ86.cjs} +3 -3
  7. package/dist/{blueprintSketcher-C1zl__qM.cjs → blueprintSketcher-C1C9mJuK.cjs} +4 -4
  8. package/dist/{blueprintSketcher-BvEwuvyJ.js → blueprintSketcher-DaqbMIfk.js} +4 -4
  9. package/dist/{boolean2D-BczOZwlF.js → boolean2D-B3DOcj6G.js} +5 -5
  10. package/dist/{boolean2D-DLV8HNif.cjs → boolean2D-CbChdB3y.cjs} +5 -5
  11. package/dist/{booleanFns-lDauFalY.js → booleanFns-Byv33KMu.js} +6 -6
  12. package/dist/{booleanFns-CLCbionN.cjs → booleanFns-X-pT22Jh.cjs} +6 -6
  13. package/dist/brepjs.cjs +33 -26
  14. package/dist/brepjs.js +27 -27
  15. package/dist/{cameraFns-nPL5-xZH.cjs → cameraFns-B9duZ94U.cjs} +3 -3
  16. package/dist/{cameraFns-Byav4AXt.js → cameraFns-DkUpqMdm.js} +3 -3
  17. package/dist/core/errors.d.ts +2 -0
  18. package/dist/core.cjs +3 -3
  19. package/dist/core.js +3 -3
  20. package/dist/{cornerFinder-CifMFbIN.js → cornerFinder-4ieWbVIN.js} +1 -1
  21. package/dist/{cornerFinder-DPlpHmJl.cjs → cornerFinder-BEHY1k0Q.cjs} +1 -1
  22. package/dist/{curveFns-DbpQH6-9.cjs → curveFns-ChkLRL8a.cjs} +2 -2
  23. package/dist/{curveFns-Dvtp5oZA.js → curveFns-DHAvRosC.js} +2 -2
  24. package/dist/{drawFns-BFi1hoid.js → drawFns-D2u7C_7g.js} +14 -14
  25. package/dist/{drawFns-uS1tM6dz.cjs → drawFns-DzgqLm1w.cjs} +14 -14
  26. package/dist/{errors-DxoD7zgx.cjs → errors-D9tBO0km.cjs} +2 -0
  27. package/dist/{errors-BJSTLaDI.js → errors-DOPT3OTg.js} +2 -0
  28. package/dist/{extrudeFns-CE8C7QRv.js → extrudeFns-WH0yd_Fb.js} +2 -2
  29. package/dist/{extrudeFns-Bab5Fw_k.cjs → extrudeFns-WYDSlEW8.cjs} +2 -2
  30. package/dist/{faceFns-B5C-nw1v.cjs → faceFns-DNOsmyRn.cjs} +3 -3
  31. package/dist/{faceFns-Cfgrt9P9.js → faceFns-Druzi4mz.js} +3 -3
  32. package/dist/{helpers-C7wSoEZ6.cjs → helpers-BxCilYLb.cjs} +7 -7
  33. package/dist/{helpers-Cy-JYZot.js → helpers-DXRsnEpy.js} +7 -7
  34. package/dist/{historyFns-BDy3Iq3O.cjs → historyFns-C9J3s9xB.cjs} +5 -5
  35. package/dist/{historyFns-qZaNV5QN.js → historyFns-DqY8zLUq.js} +5 -5
  36. package/dist/{importFns-CJggKtP3.cjs → importFns-CAR9g6W8.cjs} +3 -3
  37. package/dist/{importFns-B7R0bXrT.js → importFns-D8NOuxmA.js} +3 -3
  38. package/dist/index.d.ts +2 -2
  39. package/dist/io.cjs +2 -2
  40. package/dist/io.js +2 -2
  41. package/dist/kernel/index.d.ts +3 -4
  42. package/dist/kernel/manifold/approximations.d.ts +74 -0
  43. package/dist/kernel/manifold/booleanOps.d.ts +3 -0
  44. package/dist/kernel/manifold/builderOps.d.ts +3 -0
  45. package/dist/kernel/manifold/constraintSketchOps.d.ts +3 -0
  46. package/dist/kernel/manifold/evolutionOps.d.ts +3 -0
  47. package/dist/kernel/manifold/geometryOps.d.ts +4 -0
  48. package/dist/kernel/manifold/helpers.d.ts +3 -0
  49. package/dist/kernel/manifold/ioOps.d.ts +3 -0
  50. package/dist/kernel/manifold/kernel2dOps.d.ts +3 -0
  51. package/dist/kernel/manifold/manifoldAdapter.d.ts +9 -0
  52. package/dist/kernel/manifold/measureOps.d.ts +15 -0
  53. package/dist/kernel/manifold/meshHandle.d.ts +15 -0
  54. package/dist/kernel/manifold/meshOps.d.ts +8 -0
  55. package/dist/kernel/manifold/modifierOps.d.ts +3 -0
  56. package/dist/kernel/manifold/opGraph.d.ts +35 -0
  57. package/dist/kernel/manifold/primitiveOps.d.ts +3 -0
  58. package/dist/kernel/manifold/projectionOps.d.ts +3 -0
  59. package/dist/kernel/manifold/repairOps.d.ts +3 -0
  60. package/dist/kernel/manifold/replay.d.ts +11 -0
  61. package/dist/kernel/manifold/sweepOps.d.ts +3 -0
  62. package/dist/kernel/manifold/topologyOps.d.ts +3 -0
  63. package/dist/kernel/manifold/transformOps.d.ts +32 -0
  64. package/dist/{measureFns-_3tK7mBN.cjs → measureFns-CSbBsOLY.cjs} +4 -4
  65. package/dist/{measureFns-CcednQHe.js → measureFns-Dg3pLNRE.js} +4 -4
  66. package/dist/measurement.cjs +1 -1
  67. package/dist/measurement.js +1 -1
  68. package/dist/{meshFns-BIuX88EN.js → meshFns-CkzlLwZw.js} +18 -7
  69. package/dist/{meshFns-6oVWvaGE.cjs → meshFns-yusYccFx.cjs} +18 -7
  70. package/dist/operations.cjs +2 -2
  71. package/dist/operations.js +2 -2
  72. package/dist/{planeOps-C6wxugvC.cjs → planeOps-DTY92UCh.cjs} +1 -1
  73. package/dist/{planeOps-CblVcWbn.js → planeOps-YTeuXs80.js} +1 -1
  74. package/dist/{primitiveFns-B0DKFED_.js → primitiveFns-CbpHBZdf.js} +8 -8
  75. package/dist/{primitiveFns-72G-cDZo.cjs → primitiveFns-DzGTYy_l.cjs} +8 -8
  76. package/dist/projection.cjs +1 -1
  77. package/dist/projection.js +1 -1
  78. package/dist/query.cjs +2 -2
  79. package/dist/query.js +2 -2
  80. package/dist/result.cjs +1 -1
  81. package/dist/result.js +1 -1
  82. package/dist/{shapeFns-B1ThqSpi.js → shapeFns-BYKFvtTb.js} +3 -3
  83. package/dist/{shapeFns-D1LQT1YP.cjs → shapeFns-CSlSyyi1.cjs} +3 -3
  84. package/dist/shapeRef.cjs +1 -1
  85. package/dist/shapeRef.js +1 -1
  86. package/dist/{shapeRefFns-_AmQNqEz.cjs → shapeRefFns-B4xO4AI1.cjs} +4 -4
  87. package/dist/{shapeRefFns-M9z1C2Te.js → shapeRefFns-UIsEV1jg.js} +4 -4
  88. package/dist/{shapeTypes-DnYvZd61.js → shapeTypes-D946X6Qx.js} +3630 -327
  89. package/dist/{shapeTypes-BXXHBHal.cjs → shapeTypes-DRIhPf8A.cjs} +3828 -519
  90. package/dist/sketching.cjs +3 -3
  91. package/dist/sketching.js +3 -3
  92. package/dist/{solidBuilders-C4tUlAlA.js → solidBuilders-2xiE6FDe.js} +3 -3
  93. package/dist/{solidBuilders-BGzd3NKL.cjs → solidBuilders-8PLYgzL9.cjs} +3 -3
  94. package/dist/{surfaceBuilders-Di8LHBU7.js → surfaceBuilders-CUFC3tNT.js} +3 -3
  95. package/dist/{surfaceBuilders-lVyiCPIU.cjs → surfaceBuilders-CZ7u_Xmi.cjs} +3 -3
  96. package/dist/text.cjs +2 -2
  97. package/dist/text.js +2 -2
  98. package/dist/{textBlueprints-hDFeOHnt.cjs → textBlueprints-CZ4MphXu.cjs} +9 -9
  99. package/dist/{textBlueprints-BtPob4Le.js → textBlueprints-Dv4YWJrA.js} +9 -9
  100. package/dist/{textMetrics-_u9W8BcO.cjs → textMetrics-BpmNTwLm.cjs} +2 -2
  101. package/dist/{textMetrics-BAFPvbuw.js → textMetrics-Dvh4HzSZ.js} +2 -2
  102. package/dist/topology/meshFns.d.ts +0 -5
  103. package/dist/topology/shapeFns.d.ts +1 -1
  104. package/dist/topology/topologyQueryFns.d.ts +22 -1
  105. package/dist/topology.cjs +7 -7
  106. package/dist/topology.js +7 -7
  107. package/dist/{topologyQueryFns-mWrJgMdr.js → topologyQueryFns-D5YTf9GW.js} +45 -3
  108. package/dist/{topologyQueryFns-DTVysRV-.cjs → topologyQueryFns-esX6R5j4.cjs} +80 -2
  109. package/dist/vectors.cjs +1 -1
  110. package/dist/vectors.js +1 -1
  111. package/package.json +9 -1
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-DnYvZd61.js";
2
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
3
- import { v as kernelCallRaw } from "./topologyQueryFns-mWrJgMdr.js";
4
- import { p as uvBounds } from "./faceFns-Cfgrt9P9.js";
1
+ import { Z as getKernel } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DOPT3OTg.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-D5YTf9GW.js";
4
+ import { p as uvBounds } from "./faceFns-Druzi4mz.js";
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_measureFns = require("./measureFns-_3tK7mBN.cjs");
2
+ const require_measureFns = require("./measureFns-CSbBsOLY.cjs");
3
3
  exports.createDistanceQuery = require_measureFns.createDistanceQuery;
4
4
  exports.measureArea = require_measureFns.measureArea;
5
5
  exports.measureDistance = require_measureFns.measureDistance;
@@ -1,2 +1,2 @@
1
- import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-CcednQHe.js";
1
+ import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-Dg3pLNRE.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,6 +1,6 @@
1
- import { Z as getKernel } from "./shapeTypes-DnYvZd61.js";
2
- import { A as ok, b as err, r as ioError } from "./errors-BJSTLaDI.js";
3
- import { O as getFaceOrigins } from "./shapeFns-B1ThqSpi.js";
1
+ import { Z as getKernel } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, r as ioError } from "./errors-DOPT3OTg.js";
3
+ import { O as getFaceOrigins } from "./shapeFns-BYKFvtTb.js";
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -181,13 +181,25 @@ function meshEdges(shape, { tolerance = .001, angularTolerance = .1, cache = tru
181
181
  *
182
182
  * @returns Ok with a Blob (MIME type `application/STEP`), or Err on failure.
183
183
  */
184
+ /**
185
+ * Classify a thrown export error into three distinct cases:
186
+ * - the kernel throws "<FMT> export failed:" when the writer reports a non-success status;
187
+ * - a `WebAssembly.RuntimeError` means the writer trapped on geometry it could not serialize
188
+ * (e.g. a degenerate sub-shape) — this can corrupt the kernel for the rest of the session,
189
+ * so it must not be silently relabelled as a file-read issue;
190
+ * - anything else is an FS read failure on the V7 file path (write succeeded, readback threw).
191
+ */
192
+ function exportError(e, fmt) {
193
+ if (e instanceof Error && e.message.startsWith(`${fmt} export failed`)) return ioError(`${fmt}_EXPORT_FAILED`, `Failed to write ${fmt} file`, e);
194
+ if (e instanceof WebAssembly.RuntimeError) return ioError(`${fmt}_EXPORT_CRASHED`, `${fmt} export crashed the kernel (${e.message}); the shape likely contains geometry the ${fmt} writer cannot serialize`, e);
195
+ return ioError(`${fmt}_FILE_READ_ERROR`, `Failed to read exported ${fmt} file`, e);
196
+ }
184
197
  function exportSTEP(shape) {
185
198
  try {
186
199
  const stepString = getKernel().exportSTEP([shape.wrapped]);
187
200
  return ok(new Blob([stepString], { type: "application/STEP" }));
188
201
  } catch (e) {
189
- const isWriteFailure = e instanceof Error && e.message.startsWith("STEP export failed");
190
- return err(ioError(isWriteFailure ? "STEP_EXPORT_FAILED" : "STEP_FILE_READ_ERROR", isWriteFailure ? "Failed to write STEP file" : "Failed to read exported STEP file", e));
202
+ return err(exportError(e, "STEP"));
191
203
  }
192
204
  }
193
205
  /**
@@ -201,8 +213,7 @@ function exportSTL(shape, { tolerance = .001, angularTolerance = .1, binary = fa
201
213
  const stlData = getKernel().exportSTL(shape.wrapped, binary);
202
214
  return ok(new Blob([stlData], { type: "application/sla" }));
203
215
  } catch (e) {
204
- const isWriteFailure = e instanceof Error && e.message.startsWith("STL export failed");
205
- return err(ioError(isWriteFailure ? "STL_EXPORT_FAILED" : "STL_FILE_READ_ERROR", isWriteFailure ? "Failed to write STL file" : "Failed to read exported STL file", e));
216
+ return err(exportError(e, "STL"));
206
217
  }
207
218
  }
208
219
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BXXHBHal.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_shapeFns = require("./shapeFns-D1LQT1YP.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -181,13 +181,25 @@ function meshEdges(shape, { tolerance = .001, angularTolerance = .1, cache = tru
181
181
  *
182
182
  * @returns Ok with a Blob (MIME type `application/STEP`), or Err on failure.
183
183
  */
184
+ /**
185
+ * Classify a thrown export error into three distinct cases:
186
+ * - the kernel throws "<FMT> export failed:" when the writer reports a non-success status;
187
+ * - a `WebAssembly.RuntimeError` means the writer trapped on geometry it could not serialize
188
+ * (e.g. a degenerate sub-shape) — this can corrupt the kernel for the rest of the session,
189
+ * so it must not be silently relabelled as a file-read issue;
190
+ * - anything else is an FS read failure on the V7 file path (write succeeded, readback threw).
191
+ */
192
+ function exportError(e, fmt) {
193
+ if (e instanceof Error && e.message.startsWith(`${fmt} export failed`)) return require_errors.ioError(`${fmt}_EXPORT_FAILED`, `Failed to write ${fmt} file`, e);
194
+ if (e instanceof WebAssembly.RuntimeError) return require_errors.ioError(`${fmt}_EXPORT_CRASHED`, `${fmt} export crashed the kernel (${e.message}); the shape likely contains geometry the ${fmt} writer cannot serialize`, e);
195
+ return require_errors.ioError(`${fmt}_FILE_READ_ERROR`, `Failed to read exported ${fmt} file`, e);
196
+ }
184
197
  function exportSTEP(shape) {
185
198
  try {
186
199
  const stepString = require_shapeTypes.getKernel().exportSTEP([shape.wrapped]);
187
200
  return require_errors.ok(new Blob([stepString], { type: "application/STEP" }));
188
201
  } catch (e) {
189
- const isWriteFailure = e instanceof Error && e.message.startsWith("STEP export failed");
190
- return require_errors.err(require_errors.ioError(isWriteFailure ? "STEP_EXPORT_FAILED" : "STEP_FILE_READ_ERROR", isWriteFailure ? "Failed to write STEP file" : "Failed to read exported STEP file", e));
202
+ return require_errors.err(exportError(e, "STEP"));
191
203
  }
192
204
  }
193
205
  /**
@@ -201,8 +213,7 @@ function exportSTL(shape, { tolerance = .001, angularTolerance = .1, binary = fa
201
213
  const stlData = require_shapeTypes.getKernel().exportSTL(shape.wrapped, binary);
202
214
  return require_errors.ok(new Blob([stlData], { type: "application/sla" }));
203
215
  } catch (e) {
204
- const isWriteFailure = e instanceof Error && e.message.startsWith("STL export failed");
205
- return require_errors.err(require_errors.ioError(isWriteFailure ? "STL_EXPORT_FAILED" : "STL_FILE_READ_ERROR", isWriteFailure ? "Failed to write STL file" : "Failed to read exported STL file", e));
216
+ return require_errors.err(exportError(e, "STL"));
206
217
  }
207
218
  }
208
219
  /**
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-BDy3Iq3O.cjs");
3
- const require_extrudeFns = require("./extrudeFns-Bab5Fw_k.cjs");
2
+ const require_historyFns = require("./historyFns-C9J3s9xB.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-WYDSlEW8.cjs");
4
4
  exports.addChild = require_historyFns.addChild;
5
5
  exports.addStep = require_historyFns.addStep;
6
6
  exports.circularPattern = require_historyFns.circularPattern;
@@ -1,3 +1,3 @@
1
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-qZaNV5QN.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-CE8C7QRv.js";
1
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-DqY8zLUq.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-WH0yd_Fb.js";
3
3
  export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -1,4 +1,4 @@
1
- const require_errors = require("./errors-DxoD7zgx.cjs");
1
+ const require_errors = require("./errors-D9tBO0km.cjs");
2
2
  const require_constants = require("./constants-BOVyEYGH.cjs");
3
3
  const require_types = require("./types-KjA8tY4Y.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
@@ -1,4 +1,4 @@
1
- import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-BJSTLaDI.js";
1
+ import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-DOPT3OTg.js";
2
2
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
3
3
  import { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { d as vecNormalize, h as vecScale, m as vecRotate, r as vecCross, s as vecIsZero, t as vecAdd } from "./vecOps-SKPRvPH-.js";
@@ -1,13 +1,13 @@
1
- import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-DnYvZd61.js";
2
- import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-BJSTLaDI.js";
3
- import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-mWrJgMdr.js";
1
+ import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DOPT3OTg.js";
3
+ import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-D5YTf9GW.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
- import { _ as downcast } from "./faceFns-Cfgrt9P9.js";
6
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-B1ThqSpi.js";
5
+ import { _ as downcast } from "./faceFns-Druzi4mz.js";
6
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-BYKFvtTb.js";
7
7
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
8
- import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-Di8LHBU7.js";
9
- import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-lDauFalY.js";
10
- import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-C4tUlAlA.js";
8
+ import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-CUFC3tNT.js";
9
+ import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-Byv33KMu.js";
10
+ import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-2xiE6FDe.js";
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-BXXHBHal.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DTVysRV-.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-B5C-nw1v.cjs");
6
- const require_shapeFns = require("./shapeFns-D1LQT1YP.cjs");
5
+ const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
6
+ const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-lVyiCPIU.cjs");
9
- const require_booleanFns = require("./booleanFns-CLCbionN.cjs");
10
- const require_solidBuilders = require("./solidBuilders-BGzd3NKL.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-CZ7u_Xmi.cjs");
9
+ const require_booleanFns = require("./booleanFns-X-pT22Jh.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-8PLYgzL9.cjs");
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-nPL5-xZH.cjs");
2
+ const require_cameraFns = require("./cameraFns-B9duZ94U.cjs");
3
3
  exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
4
4
  exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
5
5
  exports.cameraLookAt = require_cameraFns.cameraLookAt;
@@ -1,2 +1,2 @@
1
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-Byav4AXt.js";
1
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-DkUpqMdm.js";
2
2
  export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-C7wSoEZ6.cjs");
3
- const require_cornerFinder = require("./cornerFinder-DPlpHmJl.cjs");
2
+ const require_helpers = require("./helpers-BxCilYLb.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-BEHY1k0Q.cjs");
4
4
  exports.cornerFinder = require_cornerFinder.cornerFinder;
5
5
  exports.edgeFinder = require_helpers.edgeFinder;
6
6
  exports.faceFinder = require_helpers.faceFinder;
package/dist/query.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Cy-JYZot.js";
2
- import { t as cornerFinder } from "./cornerFinder-CifMFbIN.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-DXRsnEpy.js";
2
+ import { t as cornerFinder } from "./cornerFinder-4ieWbVIN.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
package/dist/result.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
3
  exports.BrepBugError = require_errors.BrepBugError;
4
4
  exports.BrepErrorCode = require_errors.BrepErrorCode;
5
5
  exports.OK = require_errors.OK;
package/dist/result.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-BJSTLaDI.js";
1
+ import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-DOPT3OTg.js";
2
2
  export { BrepBugError, BrepErrorCode, OK, andThen, bug, collect, computationError, err, flatMap, ioError, isErr, isOk, kernelError, map, mapErr, match, moduleInitError, ok, pipeline, queryError, sketcherStateError, tryCatch, tryCatchAsync, typeCastError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validationError };
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-DnYvZd61.js";
2
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
3
- import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-mWrJgMdr.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DOPT3OTg.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-D5YTf9GW.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BXXHBHal.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DTVysRV-.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-_AmQNqEz.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-B4xO4AI1.cjs");
3
3
  exports.assignRoles = require_shapeRefFns.assignRoles;
4
4
  exports.captureHint = require_shapeRefFns.captureHint;
5
5
  exports.createRef = require_shapeRefFns.createRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-M9z1C2Te.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-UIsEV1jg.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,8 +1,8 @@
1
1
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-DTVysRV-.cjs");
3
- const require_faceFns = require("./faceFns-B5C-nw1v.cjs");
4
- const require_shapeFns = require("./shapeFns-D1LQT1YP.cjs");
5
- const require_measureFns = require("./measureFns-_3tK7mBN.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
3
+ const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
4
+ const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
5
+ const require_measureFns = require("./measureFns-CSbBsOLY.cjs");
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,8 +1,8 @@
1
1
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
2
- import { s as getFaces } from "./topologyQueryFns-mWrJgMdr.js";
3
- import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-Cfgrt9P9.js";
4
- import { n as getHashCode } from "./shapeFns-B1ThqSpi.js";
5
- import { n as measureArea } from "./measureFns-CcednQHe.js";
2
+ import { c as getFaces } from "./topologyQueryFns-D5YTf9GW.js";
3
+ import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-Druzi4mz.js";
4
+ import { n as getHashCode } from "./shapeFns-BYKFvtTb.js";
5
+ import { n as measureArea } from "./measureFns-Dg3pLNRE.js";
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,