brepjs 18.35.0 → 18.35.2

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 (85) hide show
  1. package/dist/2d.cjs +7 -7
  2. package/dist/2d.js +7 -7
  3. package/dist/{blueprint-BB_nIqH9.cjs → blueprint-BF0DcVwE.cjs} +7 -7
  4. package/dist/{blueprint-DmWmhXi4.js → blueprint-KwH2JNPU.js} +7 -7
  5. package/dist/{blueprintFns-C3NplQ86.cjs → blueprintFns-CbPsMijw.cjs} +3 -3
  6. package/dist/{blueprintFns-B4xOCuT3.js → blueprintFns-X7jVGGUE.js} +3 -3
  7. package/dist/{blueprintSketcher-DaqbMIfk.js → blueprintSketcher-BwFpbp0B.js} +4 -4
  8. package/dist/{blueprintSketcher-C1C9mJuK.cjs → blueprintSketcher-m18T1U1T.cjs} +4 -4
  9. package/dist/{boolean2D-CbChdB3y.cjs → boolean2D-BzlbvCIH.cjs} +5 -5
  10. package/dist/{boolean2D-B3DOcj6G.js → boolean2D-DAq015PP.js} +5 -5
  11. package/dist/{booleanFns-X-pT22Jh.cjs → booleanFns-D19tR8Gn.cjs} +6 -6
  12. package/dist/{booleanFns-Byv33KMu.js → booleanFns-nHsLqZ7Y.js} +6 -6
  13. package/dist/brepjs.cjs +26 -26
  14. package/dist/brepjs.js +26 -26
  15. package/dist/{cameraFns-DkUpqMdm.js → cameraFns-Bhjy2SuC.js} +3 -3
  16. package/dist/{cameraFns-B9duZ94U.cjs → cameraFns-D_8-JO0p.cjs} +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-BEHY1k0Q.cjs → cornerFinder-Bmp3Vm5g.cjs} +1 -1
  21. package/dist/{cornerFinder-4ieWbVIN.js → cornerFinder-U6kzoCXY.js} +1 -1
  22. package/dist/{curveFns-ChkLRL8a.cjs → curveFns-p1YEnmZu.cjs} +2 -2
  23. package/dist/{curveFns-DHAvRosC.js → curveFns-rUkX4tEm.js} +2 -2
  24. package/dist/{drawFns-DzgqLm1w.cjs → drawFns-BGIQ1IeV.cjs} +14 -14
  25. package/dist/{drawFns-D2u7C_7g.js → drawFns-ZhKR7xa0.js} +14 -14
  26. package/dist/{errors-D9tBO0km.cjs → errors-CXJtc4I7.cjs} +2 -0
  27. package/dist/{errors-DOPT3OTg.js → errors-DNWJsfVU.js} +2 -0
  28. package/dist/{extrudeFns-WH0yd_Fb.js → extrudeFns-Cl_azGgy.js} +2 -2
  29. package/dist/{extrudeFns-WYDSlEW8.cjs → extrudeFns-DpRGUaxD.cjs} +2 -2
  30. package/dist/{faceFns-DNOsmyRn.cjs → faceFns-C6qUr_gw.cjs} +3 -3
  31. package/dist/{faceFns-Druzi4mz.js → faceFns-eVWgSIzt.js} +3 -3
  32. package/dist/{helpers-DXRsnEpy.js → helpers-BhJOo535.js} +7 -7
  33. package/dist/{helpers-BxCilYLb.cjs → helpers-DNVILwHA.cjs} +7 -7
  34. package/dist/{historyFns-DqY8zLUq.js → historyFns-ByJG4mBP.js} +5 -5
  35. package/dist/{historyFns-C9J3s9xB.cjs → historyFns-C2glA6vu.cjs} +5 -5
  36. package/dist/{importFns-CAR9g6W8.cjs → importFns-CJc5NYJp.cjs} +3 -3
  37. package/dist/{importFns-D8NOuxmA.js → importFns-DuAmdf0Q.js} +3 -3
  38. package/dist/io.cjs +2 -2
  39. package/dist/io.js +2 -2
  40. package/dist/kernel/manifold/replay.d.ts +7 -0
  41. package/dist/{measureFns-Dg3pLNRE.js → measureFns-BiflqrZ_.js} +4 -4
  42. package/dist/{measureFns-CSbBsOLY.cjs → measureFns-D7lxkIjt.cjs} +4 -4
  43. package/dist/measurement.cjs +1 -1
  44. package/dist/measurement.js +1 -1
  45. package/dist/{meshFns-yusYccFx.cjs → meshFns-DM2mLIlu.cjs} +54 -3
  46. package/dist/{meshFns-CkzlLwZw.js → meshFns-F9QLm-Bk.js} +54 -3
  47. package/dist/operations.cjs +2 -2
  48. package/dist/operations.js +2 -2
  49. package/dist/{planeOps-DTY92UCh.cjs → planeOps-BA4HfgQu.cjs} +1 -1
  50. package/dist/{planeOps-YTeuXs80.js → planeOps-DSjjtrjg.js} +1 -1
  51. package/dist/{primitiveFns-DzGTYy_l.cjs → primitiveFns-CXn9Jl4q.cjs} +8 -8
  52. package/dist/{primitiveFns-CbpHBZdf.js → primitiveFns-vQh7Lz7B.js} +8 -8
  53. package/dist/projection.cjs +1 -1
  54. package/dist/projection.js +1 -1
  55. package/dist/query.cjs +2 -2
  56. package/dist/query.js +2 -2
  57. package/dist/result.cjs +1 -1
  58. package/dist/result.js +1 -1
  59. package/dist/{shapeFns-CSlSyyi1.cjs → shapeFns-B3v9_keQ.cjs} +3 -3
  60. package/dist/{shapeFns-BYKFvtTb.js → shapeFns-BbHQjI5-.js} +3 -3
  61. package/dist/shapeRef.cjs +1 -1
  62. package/dist/shapeRef.js +1 -1
  63. package/dist/{shapeRefFns-UIsEV1jg.js → shapeRefFns-BOsX8Tim.js} +4 -4
  64. package/dist/{shapeRefFns-B4xO4AI1.cjs → shapeRefFns-CkafUjdM.cjs} +4 -4
  65. package/dist/{shapeTypes-DRIhPf8A.cjs → shapeTypes-Bbh2doYh.cjs} +24 -10
  66. package/dist/{shapeTypes-D946X6Qx.js → shapeTypes-C-MpR5-e.js} +24 -10
  67. package/dist/sketching.cjs +3 -3
  68. package/dist/sketching.js +3 -3
  69. package/dist/{solidBuilders-2xiE6FDe.js → solidBuilders-C44fKbQQ.js} +3 -3
  70. package/dist/{solidBuilders-8PLYgzL9.cjs → solidBuilders-Ck6gpdQR.cjs} +3 -3
  71. package/dist/{surfaceBuilders-CUFC3tNT.js → surfaceBuilders-D4p1YPCz.js} +3 -3
  72. package/dist/{surfaceBuilders-CZ7u_Xmi.cjs → surfaceBuilders-DsISMCwj.cjs} +3 -3
  73. package/dist/text.cjs +2 -2
  74. package/dist/text.js +2 -2
  75. package/dist/{textBlueprints-Dv4YWJrA.js → textBlueprints-BKdQqBn8.js} +9 -9
  76. package/dist/{textBlueprints-CZ4MphXu.cjs → textBlueprints-C93RophN.cjs} +9 -9
  77. package/dist/{textMetrics-BpmNTwLm.cjs → textMetrics-2vq4PFfz.cjs} +2 -2
  78. package/dist/{textMetrics-Dvh4HzSZ.js → textMetrics-DEmVsP5C.js} +2 -2
  79. package/dist/topology.cjs +7 -7
  80. package/dist/topology.js +7 -7
  81. package/dist/{topologyQueryFns-D5YTf9GW.js → topologyQueryFns-B81GSST_.js} +2 -2
  82. package/dist/{topologyQueryFns-esX6R5j4.cjs → topologyQueryFns-C0kAqcn5.cjs} +2 -2
  83. package/dist/vectors.cjs +1 -1
  84. package/dist/vectors.js +1 -1
  85. package/package.json +8 -8
@@ -355,9 +355,11 @@ var BrepErrorCode = {
355
355
  STEP_EXPORT_CONFIGURED_FAILED: "STEP_EXPORT_CONFIGURED_FAILED",
356
356
  STEP_FILE_READ_ERROR: "STEP_FILE_READ_ERROR",
357
357
  STEP_EXPORT_CRASHED: "STEP_EXPORT_CRASHED",
358
+ STEP_EXPORT_UNSERIALIZABLE: "STEP_EXPORT_UNSERIALIZABLE",
358
359
  STL_EXPORT_FAILED: "STL_EXPORT_FAILED",
359
360
  STL_FILE_READ_ERROR: "STL_FILE_READ_ERROR",
360
361
  STL_EXPORT_CRASHED: "STL_EXPORT_CRASHED",
362
+ STL_EXPORT_UNSERIALIZABLE: "STL_EXPORT_UNSERIALIZABLE",
361
363
  STEP_IMPORT_FAILED: "STEP_IMPORT_FAILED",
362
364
  STL_IMPORT_FAILED: "STL_IMPORT_FAILED",
363
365
  IGES_EXPORT_FAILED: "IGES_EXPORT_FAILED",
@@ -1,5 +1,5 @@
1
- import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-D946X6Qx.js";
2
- import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DOPT3OTg.js";
1
+ import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DNWJsfVU.js";
3
3
  import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
4
4
  //#region src/operations/extrudeUtils.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
- const require_errors = require("./errors-D9tBO0km.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
4
  //#region src/operations/extrudeUtils.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
- const require_errors = require("./errors-D9tBO0km.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.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 { Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
2
- import { A as ok, R as unwrap, b as err, l as typeCastError } from "./errors-DOPT3OTg.js";
3
- import { a as getCachedSurfaceType } from "./topologyQueryFns-D5YTf9GW.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-C-MpR5-e.js";
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-B81GSST_.js";
4
4
  import { r as toVec3 } from "./types-D24Y27N0.js";
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,12 +1,12 @@
1
- import { Z as getKernel, p as isFace } from "./shapeTypes-D946X6Qx.js";
2
- import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DOPT3OTg.js";
3
- import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-D5YTf9GW.js";
1
+ import { Z as getKernel, p as isFace } from "./shapeTypes-C-MpR5-e.js";
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-B81GSST_.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 { c as normalAt, o as getSurfaceType } from "./faceFns-Druzi4mz.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-BYKFvtTb.js";
8
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-DHAvRosC.js";
9
- import { n as measureArea } from "./measureFns-Dg3pLNRE.js";
6
+ import { c as normalAt, o as getSurfaceType } from "./faceFns-eVWgSIzt.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-BbHQjI5-.js";
8
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-rUkX4tEm.js";
9
+ import { n as measureArea } from "./measureFns-BiflqrZ_.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,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
- const require_errors = require("./errors-D9tBO0km.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.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-DNOsmyRn.cjs");
7
- const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
8
- const require_curveFns = require("./curveFns-ChkLRL8a.cjs");
9
- const require_measureFns = require("./measureFns-CSbBsOLY.cjs");
6
+ const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
7
+ const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
8
+ const require_curveFns = require("./curveFns-p1YEnmZu.cjs");
9
+ const require_measureFns = require("./measureFns-D7lxkIjt.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,9 +1,9 @@
1
- import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
2
- import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DOPT3OTg.js";
1
+ import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DNWJsfVU.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
- import { v as fromBREP } from "./faceFns-Druzi4mz.js";
5
- import { s as toBREP } from "./shapeFns-BYKFvtTb.js";
6
- import { a as fuseAll } from "./booleanFns-Byv33KMu.js";
4
+ import { v as fromBREP } from "./faceFns-eVWgSIzt.js";
5
+ import { s as toBREP } from "./shapeFns-BbHQjI5-.js";
6
+ import { a as fuseAll } from "./booleanFns-nHsLqZ7Y.js";
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
- const require_errors = require("./errors-D9tBO0km.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
- const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
5
- const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
6
- const require_booleanFns = require("./booleanFns-X-pT22Jh.cjs");
4
+ const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
5
+ const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
6
+ const require_booleanFns = require("./booleanFns-D19tR8Gn.cjs");
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
- const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-BB_nIqH9.cjs");
5
+ const require_blueprint = require("./blueprint-BF0DcVwE.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) {
@@ -1,8 +1,8 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-C-MpR5-e.js";
2
2
  import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
3
- import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DOPT3OTg.js";
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-DmWmhXi4.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-KwH2JNPU.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) {
package/dist/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-yusYccFx.cjs");
3
- const require_importFns = require("./importFns-CAR9g6W8.cjs");
2
+ const require_meshFns = require("./meshFns-DM2mLIlu.cjs");
3
+ const require_importFns = require("./importFns-CJc5NYJp.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-CkzlLwZw.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-D8NOuxmA.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-F9QLm-Bk.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-DuAmdf0Q.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -7,5 +7,12 @@ import { OpNode } from './opGraph.js';
7
7
  * Memoized post-order: each node's inputs are replayed first (deduplicated via
8
8
  * the shared cache so a DAG with reused sub-graphs replays each node once), then
9
9
  * the node's own handler runs. Throws on any non-replayable node or unmapped op.
10
+ *
11
+ * Every node produces an intermediate OCCT WASM-heap shape, but only the root is
12
+ * returned (and retained by the caller's `brepCache`). To avoid leaking the rest
13
+ * for the lifetime of the session, the intermediates this call allocated are
14
+ * disposed once the full recursion completes — they are only inputs to copying
15
+ * ops (booleans/modifiers), so the root holds its own geometry. Shapes the caller
16
+ * pre-seeded into `cache` are not in `allocated` and so are never disposed here.
10
17
  */
11
18
  export declare function replay(node: OpNode, targetKernel: KernelAdapter, cache?: Map<OpNode, KernelShape>): KernelShape;
@@ -1,7 +1,7 @@
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";
1
+ import { Z as getKernel } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-B81GSST_.js";
4
+ import { p as uvBounds } from "./faceFns-eVWgSIzt.js";
5
5
  //#region src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,7 +1,7 @@
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
- const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
+ const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
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-CSbBsOLY.cjs");
2
+ const require_measureFns = require("./measureFns-D7lxkIjt.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-Dg3pLNRE.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-BiflqrZ_.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,6 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
- const require_errors = require("./errors-D9tBO0km.cjs");
3
- const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
+ const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
4
5
  //#region src/topology/meshCache.ts
5
6
  /**
6
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -194,7 +195,55 @@ function exportError(e, fmt) {
194
195
  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
196
  return require_errors.ioError(`${fmt}_FILE_READ_ERROR`, `Failed to read exported ${fmt} file`, e);
196
197
  }
198
+ /**
199
+ * When a compound's bounds probe fails, localize the offending sub-solid(s) so the
200
+ * caller can heal or drop them. Returns a suffix for the error message; empty when
201
+ * the shape is a single solid or localization itself fails. Only reached on the
202
+ * error path, so the extra per-solid probes cost nothing in the happy case.
203
+ */
204
+ function describeOffendingSolids(shape) {
205
+ let solids;
206
+ try {
207
+ solids = require_topologyQueryFns.getSolids(shape);
208
+ } catch {
209
+ return "";
210
+ }
211
+ if (solids.length <= 1) return "";
212
+ const bad = [];
213
+ solids.forEach((solid, i) => {
214
+ try {
215
+ require_topologyQueryFns.getBounds(solid);
216
+ } catch (e) {
217
+ if (e instanceof TypeError) throw e;
218
+ bad.push(i);
219
+ }
220
+ });
221
+ if (bad.length === 0) return `; could not localize the offending sub-solid among ${solids.length} solids`;
222
+ return `; offending sub-solid${bad.length > 1 ? "s" : ""} (of ${solids.length}): index ${bad.join(", ")}`;
223
+ }
224
+ /**
225
+ * Probe a shape's bounding box before handing it to the STEP/STL writer.
226
+ *
227
+ * Some sub-shapes pass `isValid`/`validSolid` yet are degenerate enough that the
228
+ * OCCT writer traps with a `WebAssembly.RuntimeError` (OOB) mid-transfer — which
229
+ * corrupts the Emscripten heap and poisons the kernel for the rest of the session
230
+ * (#1126). `getBounds` exercises the same geometry but fails *catchably*, so a
231
+ * cheap pre-export probe lets us return a clean `Err` instead of crashing.
232
+ * Heuristic, not universal: it only catches shapes whose bounding-box evaluation
233
+ * also throws.
234
+ */
235
+ function probeSerializable(shape, fmt) {
236
+ try {
237
+ require_topologyQueryFns.getBounds(shape);
238
+ return null;
239
+ } catch (e) {
240
+ if (e instanceof TypeError) throw e;
241
+ return require_errors.ioError(`${fmt}_EXPORT_UNSERIALIZABLE`, `${fmt} export aborted: the shape contains degenerate geometry the ${fmt} writer cannot serialize (bounding-box evaluation failed); export was skipped to avoid crashing the kernel${describeOffendingSolids(shape)}`, e);
242
+ }
243
+ }
197
244
  function exportSTEP(shape) {
245
+ const unserializable = probeSerializable(shape, "STEP");
246
+ if (unserializable) return require_errors.err(unserializable);
198
247
  try {
199
248
  const stepString = require_shapeTypes.getKernel().exportSTEP([shape.wrapped]);
200
249
  return require_errors.ok(new Blob([stepString], { type: "application/STEP" }));
@@ -208,6 +257,8 @@ function exportSTEP(shape) {
208
257
  * @returns Ok with a Blob (MIME type `application/sla`), or Err on failure.
209
258
  */
210
259
  function exportSTL(shape, { tolerance = .001, angularTolerance = .1, binary = false } = {}) {
260
+ const unserializable = probeSerializable(shape, "STL");
261
+ if (unserializable) return require_errors.err(unserializable);
211
262
  try {
212
263
  if (!require_shapeTypes.getKernel().hasTriangulation(shape.wrapped)) require_shapeTypes.getKernel().meshShape(shape.wrapped, tolerance, angularTolerance);
213
264
  const stlData = require_shapeTypes.getKernel().exportSTL(shape.wrapped, binary);
@@ -1,6 +1,7 @@
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";
1
+ import { Z as getKernel } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, r as ioError } from "./errors-DNWJsfVU.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-B81GSST_.js";
4
+ import { O as getFaceOrigins } from "./shapeFns-BbHQjI5-.js";
4
5
  //#region src/topology/meshCache.ts
5
6
  /**
6
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -194,7 +195,55 @@ function exportError(e, fmt) {
194
195
  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
196
  return ioError(`${fmt}_FILE_READ_ERROR`, `Failed to read exported ${fmt} file`, e);
196
197
  }
198
+ /**
199
+ * When a compound's bounds probe fails, localize the offending sub-solid(s) so the
200
+ * caller can heal or drop them. Returns a suffix for the error message; empty when
201
+ * the shape is a single solid or localization itself fails. Only reached on the
202
+ * error path, so the extra per-solid probes cost nothing in the happy case.
203
+ */
204
+ function describeOffendingSolids(shape) {
205
+ let solids;
206
+ try {
207
+ solids = getSolids(shape);
208
+ } catch {
209
+ return "";
210
+ }
211
+ if (solids.length <= 1) return "";
212
+ const bad = [];
213
+ solids.forEach((solid, i) => {
214
+ try {
215
+ getBounds(solid);
216
+ } catch (e) {
217
+ if (e instanceof TypeError) throw e;
218
+ bad.push(i);
219
+ }
220
+ });
221
+ if (bad.length === 0) return `; could not localize the offending sub-solid among ${solids.length} solids`;
222
+ return `; offending sub-solid${bad.length > 1 ? "s" : ""} (of ${solids.length}): index ${bad.join(", ")}`;
223
+ }
224
+ /**
225
+ * Probe a shape's bounding box before handing it to the STEP/STL writer.
226
+ *
227
+ * Some sub-shapes pass `isValid`/`validSolid` yet are degenerate enough that the
228
+ * OCCT writer traps with a `WebAssembly.RuntimeError` (OOB) mid-transfer — which
229
+ * corrupts the Emscripten heap and poisons the kernel for the rest of the session
230
+ * (#1126). `getBounds` exercises the same geometry but fails *catchably*, so a
231
+ * cheap pre-export probe lets us return a clean `Err` instead of crashing.
232
+ * Heuristic, not universal: it only catches shapes whose bounding-box evaluation
233
+ * also throws.
234
+ */
235
+ function probeSerializable(shape, fmt) {
236
+ try {
237
+ getBounds(shape);
238
+ return null;
239
+ } catch (e) {
240
+ if (e instanceof TypeError) throw e;
241
+ return ioError(`${fmt}_EXPORT_UNSERIALIZABLE`, `${fmt} export aborted: the shape contains degenerate geometry the ${fmt} writer cannot serialize (bounding-box evaluation failed); export was skipped to avoid crashing the kernel${describeOffendingSolids(shape)}`, e);
242
+ }
243
+ }
197
244
  function exportSTEP(shape) {
245
+ const unserializable = probeSerializable(shape, "STEP");
246
+ if (unserializable) return err(unserializable);
198
247
  try {
199
248
  const stepString = getKernel().exportSTEP([shape.wrapped]);
200
249
  return ok(new Blob([stepString], { type: "application/STEP" }));
@@ -208,6 +257,8 @@ function exportSTEP(shape) {
208
257
  * @returns Ok with a Blob (MIME type `application/sla`), or Err on failure.
209
258
  */
210
259
  function exportSTL(shape, { tolerance = .001, angularTolerance = .1, binary = false } = {}) {
260
+ const unserializable = probeSerializable(shape, "STL");
261
+ if (unserializable) return err(unserializable);
211
262
  try {
212
263
  if (!getKernel().hasTriangulation(shape.wrapped)) getKernel().meshShape(shape.wrapped, tolerance, angularTolerance);
213
264
  const stlData = getKernel().exportSTL(shape.wrapped, binary);
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-C9J3s9xB.cjs");
3
- const require_extrudeFns = require("./extrudeFns-WYDSlEW8.cjs");
2
+ const require_historyFns = require("./historyFns-C2glA6vu.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-DpRGUaxD.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-DqY8zLUq.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-WH0yd_Fb.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-ByJG4mBP.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-Cl_azGgy.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-D9tBO0km.cjs");
1
+ const require_errors = require("./errors-CXJtc4I7.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-DOPT3OTg.js";
1
+ import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-DNWJsfVU.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
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
- const require_errors = require("./errors-D9tBO0km.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
6
- const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
5
+ const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
6
+ const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.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");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-DsISMCwj.cjs");
9
+ const require_booleanFns = require("./booleanFns-D19tR8Gn.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-Ck6gpdQR.cjs");
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -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-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";
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-C-MpR5-e.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-DNWJsfVU.js";
3
+ import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-B81GSST_.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
- import { _ as downcast } from "./faceFns-Druzi4mz.js";
6
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-BYKFvtTb.js";
5
+ import { _ as downcast } from "./faceFns-eVWgSIzt.js";
6
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-BbHQjI5-.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-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";
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-D4p1YPCz.js";
9
+ import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-nHsLqZ7Y.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-C44fKbQQ.js";
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-B9duZ94U.cjs");
2
+ const require_cameraFns = require("./cameraFns-D_8-JO0p.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-DkUpqMdm.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-Bhjy2SuC.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-BxCilYLb.cjs");
3
- const require_cornerFinder = require("./cornerFinder-BEHY1k0Q.cjs");
2
+ const require_helpers = require("./helpers-DNVILwHA.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-Bmp3Vm5g.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-DXRsnEpy.js";
2
- import { t as cornerFinder } from "./cornerFinder-4ieWbVIN.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BhJOo535.js";
2
+ import { t as cornerFinder } from "./cornerFinder-U6kzoCXY.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-D9tBO0km.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.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-DOPT3OTg.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-DNWJsfVU.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
- const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
- const require_errors = require("./errors-D9tBO0km.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
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";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-B81GSST_.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
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-B4xO4AI1.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-CkafUjdM.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-UIsEV1jg.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BOsX8Tim.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
@@ -1,8 +1,8 @@
1
1
  import { n as wasmIndex } from "./vec3-Dpha8d5k.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";
2
+ import { c as getFaces } from "./topologyQueryFns-B81GSST_.js";
3
+ import { c as normalAt, n as faceCenter, r as faceGeomType } from "./faceFns-eVWgSIzt.js";
4
+ import { n as getHashCode } from "./shapeFns-BbHQjI5-.js";
5
+ import { n as measureArea } from "./measureFns-BiflqrZ_.js";
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
  const require_vec3 = require("./vec3-CFwOI0ZI.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");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
3
+ const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
4
+ const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
5
+ const require_measureFns = require("./measureFns-D7lxkIjt.cjs");
6
6
  //#region src/topology/shapeRef/scoring.ts
7
7
  /**
8
8
  * Default face scorer combining surface type, normal alignment, centroid proximity,