brepjs 18.118.4 → 18.118.5

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 (78) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-CiDCunAU.cjs → adjacencyFns-CpyYIeax.cjs} +2 -2
  4. package/dist/{adjacencyFns-CxepMm7H.js → adjacencyFns-cSvOB_Ze.js} +2 -2
  5. package/dist/{blueprint-Bp_sSxx2.cjs → blueprint-D2GXPkIE.cjs} +5 -5
  6. package/dist/{blueprint-BIf01dZl.js → blueprint-DLYo6s8j.js} +5 -5
  7. package/dist/{blueprintFns-Dl_drDhd.js → blueprintFns-Ds3dL4c8.js} +2 -2
  8. package/dist/{blueprintFns-Dc8amB5a.cjs → blueprintFns-F0nZbsld.cjs} +2 -2
  9. package/dist/{blueprintSketcher-XiLc6fJ4.cjs → blueprintSketcher-CgeBcSjd.cjs} +3 -3
  10. package/dist/{blueprintSketcher-D-xSC6Mp.js → blueprintSketcher-u-yf9iTR.js} +3 -3
  11. package/dist/{boolean2D-BfKG5Wio.cjs → boolean2D-CyNCdKrt.cjs} +4 -4
  12. package/dist/{boolean2D-BNjpYyZl.js → boolean2D-DbfzLbZ4.js} +4 -4
  13. package/dist/brepjs.cjs +25 -25
  14. package/dist/brepjs.js +25 -25
  15. package/dist/{cameraFns-ClE0QcuX.cjs → cameraFns-C3Xf7-I7.cjs} +2 -2
  16. package/dist/{cameraFns-DyMKpFHq.js → cameraFns-DmLhH9Pr.js} +2 -2
  17. package/dist/core/shapeTypes.d.ts +8 -0
  18. package/dist/core.cjs +1 -1
  19. package/dist/core.js +1 -1
  20. package/dist/{cornerFinder-CINnfCPc.cjs → cornerFinder-BOwew_zv.cjs} +1 -1
  21. package/dist/{cornerFinder-DFswCdwf.js → cornerFinder-DL__YqRi.js} +1 -1
  22. package/dist/{curveFns-BYcTyyb7.js → curveFns-BAGamIGX.js} +1 -1
  23. package/dist/{curveFns-YvH970hp.cjs → curveFns-DVPQyYM7.cjs} +1 -1
  24. package/dist/{drawFns-CG3ksr6q.cjs → drawFns-0R1HI7It.cjs} +12 -12
  25. package/dist/{drawFns-DkhqDgS5.js → drawFns-DPiGPDvQ.js} +12 -12
  26. package/dist/{faceFns-DnLXDWq2.cjs → faceFns-mARULpM7.cjs} +2 -2
  27. package/dist/{faceFns-CpOAl1K5.js → faceFns-yqC4gDSc.js} +2 -2
  28. package/dist/{healingFns-BIcPeCM9.cjs → healingFns-CM9gxI8q.cjs} +26 -24
  29. package/dist/{healingFns-BP0xjoIs.js → healingFns-DHhGzFVL.js} +26 -24
  30. package/dist/{helpers-BVkEnH5n.js → helpers-CcpT5mna.js} +6 -6
  31. package/dist/{helpers-Beq_ugyN.cjs → helpers-vBB_xxts.cjs} +6 -6
  32. package/dist/{importFns-DPQmk2TS.js → importFns-80hScxgP.js} +2 -2
  33. package/dist/{importFns-BZYgEOu-.cjs → importFns-BhatwR3O.cjs} +2 -2
  34. package/dist/io.cjs +2 -2
  35. package/dist/io.js +2 -2
  36. package/dist/{loftFns-CZC_NH_h.cjs → loftFns-Bi5Osj4K.cjs} +1 -1
  37. package/dist/{loftFns-NauDWzek.js → loftFns-DtBK3brv.js} +1 -1
  38. package/dist/{measureFns-C4BxD4kC.cjs → measureFns-BD9_NT7u.cjs} +3 -3
  39. package/dist/{measureFns-BLmLZr0K.js → measureFns-CLWtxkh6.js} +3 -3
  40. package/dist/measurement.cjs +1 -1
  41. package/dist/measurement.js +1 -1
  42. package/dist/{meshFns-BK5O_pJ9.js → meshFns-Cd2zde-k.js} +3 -3
  43. package/dist/{meshFns-BoF6g1go.cjs → meshFns-Cim4Y6vz.cjs} +3 -3
  44. package/dist/operations.cjs +2 -2
  45. package/dist/operations.js +2 -2
  46. package/dist/{primitiveFns-DJUXtN6W.js → primitiveFns-BnZk1fEp.js} +4 -4
  47. package/dist/{primitiveFns-DOyyz54-.cjs → primitiveFns-DpkSBopj.cjs} +4 -4
  48. package/dist/projection.cjs +1 -1
  49. package/dist/projection.js +1 -1
  50. package/dist/query.cjs +2 -2
  51. package/dist/query.js +2 -2
  52. package/dist/{refResolveFns-DL1zXF8u.js → refResolveFns-CJ58ZH-S.js} +6 -6
  53. package/dist/{refResolveFns-DbTYd_Nj.cjs → refResolveFns-TdGhQZUP.cjs} +6 -6
  54. package/dist/{shapeFns-DED4C70_.js → shapeFns-DjiKoRrd.js} +2 -2
  55. package/dist/{shapeFns-DxAhtxFP.cjs → shapeFns-DxbbLpGg.cjs} +2 -2
  56. package/dist/shapeRef.cjs +1 -1
  57. package/dist/shapeRef.js +1 -1
  58. package/dist/{shapeTypes-Ca76Bklg.cjs → shapeTypes-BbUKvpaO.cjs} +17 -0
  59. package/dist/{shapeTypes-BguzpBK0.js → shapeTypes-Osdj5kMc.js} +12 -1
  60. package/dist/sketching.cjs +3 -3
  61. package/dist/sketching.js +3 -3
  62. package/dist/{solidBuilders-yyfZ2Q-7.cjs → solidBuilders-D3zaZO6E.cjs} +8 -18
  63. package/dist/{solidBuilders-_8mqPO7I.js → solidBuilders-DVBKEByu.js} +8 -18
  64. package/dist/{surfaceBuilders-CT__o6Be.js → surfaceBuilders-CMUEd1bK.js} +2 -2
  65. package/dist/{surfaceBuilders-De2XKidK.cjs → surfaceBuilders-DDfVCOVg.cjs} +2 -2
  66. package/dist/text.cjs +2 -2
  67. package/dist/text.js +2 -2
  68. package/dist/{textBlueprints-C17PPSzH.cjs → textBlueprints-Aicvgono.cjs} +7 -7
  69. package/dist/{textBlueprints-D9l3v-f3.js → textBlueprints-iZABkf3e.js} +7 -7
  70. package/dist/{textMetrics-GSAxEtaJ.js → textMetrics-CpxOlmKV.js} +1 -1
  71. package/dist/{textMetrics-BwQ7TD47.cjs → textMetrics-DjbEw5om.cjs} +1 -1
  72. package/dist/{threadFns-DOqhI5OK.js → threadFns-CLgKc6Bl.js} +7 -7
  73. package/dist/{threadFns-Bu2c-lu_.cjs → threadFns-aTVNbo4w.cjs} +7 -7
  74. package/dist/topology.cjs +9 -9
  75. package/dist/topology.js +9 -9
  76. package/dist/{topologyQueryFns-B1QAiZVI.cjs → topologyQueryFns-Cf2j9Zt0.cjs} +1 -1
  77. package/dist/{topologyQueryFns-Dl2F-2d9.js → topologyQueryFns-DzOSCj5J.js} +1 -1
  78. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-B1QAiZVI.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-Cf2j9Zt0.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-DnLXDWq2.cjs");
6
- const require_shapeFns = require("./shapeFns-DxAhtxFP.cjs");
5
+ const require_faceFns = require("./faceFns-mARULpM7.cjs");
6
+ const require_shapeFns = require("./shapeFns-DxbbLpGg.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_solidBuilders = require("./solidBuilders-yyfZ2Q-7.cjs");
8
+ const require_solidBuilders = require("./solidBuilders-D3zaZO6E.cjs");
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -339,19 +339,9 @@ function validateNotNull$1(shape, label) {
339
339
  function castToShape3D(shape, errorCode, errorMsg, suggestion) {
340
340
  const wrapped = require_shapeTypes.castShape(shape);
341
341
  if (!require_shapeTypes.isShape3D(wrapped)) {
342
- const shapeType = shape.ShapeType();
343
- const typeName = [
344
- "COMPOUND",
345
- "COMPSOLID",
346
- "SOLID",
347
- "SHELL",
348
- "FACE",
349
- "WIRE",
350
- "EDGE",
351
- "VERTEX",
352
- "SHAPE"
353
- ][shapeType] ?? `UNKNOWN(${shapeType})`;
354
- wrapped[Symbol.dispose]();
342
+ const typeName = require_shapeTypes.getShapeKind(wrapped).toUpperCase();
343
+ require_shapeTypes.disposeDowncastSource(shape, wrapped);
344
+ require_shapeTypes.disposeResultShape(wrapped);
355
345
  return require_errors.err(require_errors.typeCastError(errorCode, `${errorMsg}. Got ${typeName} instead.`, void 0, void 0, suggestion));
356
346
  }
357
347
  require_shapeTypes.disposeDowncastSource(shape, wrapped);
@@ -471,7 +461,10 @@ function filletWithEvolution(shape, edges, radius) {
471
461
  const inputFaceHashes = require_shapeFns.collectInputFaceHashes([shape]);
472
462
  const { shape: resultShape, evolution } = require_shapeTypes.getKernel().filletWithHistory(shape.wrapped, filteredEdges.map((e) => e.wrapped), kernelRadius, inputFaceHashes, require_constants.HASH_CODE_MAX);
473
463
  const cast = require_shapeTypes.castResultShape(resultShape);
474
- if (!require_shapeTypes.isShape3D(cast)) return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.FILLET_NOT_3D, "Fillet result is not a 3D shape"));
464
+ if (!require_shapeTypes.isShape3D(cast)) {
465
+ require_shapeTypes.disposeResultShape(cast);
466
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.FILLET_NOT_3D, "Fillet result is not a 3D shape"));
467
+ }
475
468
  require_shapeFns.propagateAllMetadata(evolution, [shape], cast);
476
469
  return require_errors.ok({
477
470
  shape: cast,
@@ -515,7 +508,10 @@ function chamferWithEvolution(shape, edges, distance) {
515
508
  const inputFaceHashes = require_shapeFns.collectInputFaceHashes([shape]);
516
509
  const { shape: resultShape, evolution } = require_shapeTypes.getKernel().chamferWithHistory(shape.wrapped, filteredEdges.map((e) => e.wrapped), kernelDistance, inputFaceHashes, require_constants.HASH_CODE_MAX);
517
510
  const cast = require_shapeTypes.castResultShape(resultShape);
518
- if (!require_shapeTypes.isShape3D(cast)) return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.CHAMFER_NOT_3D, "Chamfer result is not a 3D shape"));
511
+ if (!require_shapeTypes.isShape3D(cast)) {
512
+ require_shapeTypes.disposeResultShape(cast);
513
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.CHAMFER_NOT_3D, "Chamfer result is not a 3D shape"));
514
+ }
519
515
  require_shapeFns.propagateAllMetadata(evolution, [shape], cast);
520
516
  return require_errors.ok({
521
517
  shape: cast,
@@ -547,7 +543,10 @@ function shellWithEvolution(shape, faces, thickness, tolerance = .001) {
547
543
  const inputFaceHashes = require_shapeFns.collectInputFaceHashes([shape]);
548
544
  const { shape: resultShape, evolution } = require_shapeTypes.getKernel().shellWithHistory(shape.wrapped, faces.map((f) => f.wrapped), thickness, inputFaceHashes, require_constants.HASH_CODE_MAX, tolerance);
549
545
  const cast = require_shapeTypes.castResultShape(resultShape);
550
- if (!require_shapeTypes.isShape3D(cast)) return require_errors.err(require_errors.kernelError("SHELL_RESULT_NOT_3D", "Shell result is not a 3D shape"));
546
+ if (!require_shapeTypes.isShape3D(cast)) {
547
+ require_shapeTypes.disposeResultShape(cast);
548
+ return require_errors.err(require_errors.kernelError("SHELL_RESULT_NOT_3D", "Shell result is not a 3D shape"));
549
+ }
551
550
  require_shapeFns.propagateAllMetadata(evolution, [shape], cast);
552
551
  return require_errors.ok({
553
552
  shape: cast,
@@ -640,7 +639,10 @@ function resolveEdgeCallback(selectedEdges, callbackFn) {
640
639
  */
641
640
  function finalizeShape3D(evolution, resultShape, inputs, not3dCode, not3dMessage) {
642
641
  const cast = require_shapeTypes.castResultShape(resultShape);
643
- if (!require_shapeTypes.isShape3D(cast)) return require_errors.err(require_errors.kernelError(not3dCode, not3dMessage));
642
+ if (!require_shapeTypes.isShape3D(cast)) {
643
+ require_shapeTypes.disposeResultShape(cast);
644
+ return require_errors.err(require_errors.kernelError(not3dCode, not3dMessage));
645
+ }
644
646
  require_shapeFns.propagateAllMetadata(evolution, inputs, cast);
645
647
  return require_errors.ok(cast);
646
648
  }
@@ -925,11 +927,11 @@ function variableFillet(shape, edge, radii) {
925
927
  });
926
928
  const wrapped = require_shapeTypes.castResultShape(kernel.filletVariable(shape.wrapped, spec));
927
929
  if (!require_shapeTypes.isShape3D(wrapped)) {
928
- wrapped[Symbol.dispose]();
930
+ require_shapeTypes.disposeResultShape(wrapped);
929
931
  return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.VARIABLE_FILLET_FAILED, "Variable-radius fillet did not produce a 3D shape"));
930
932
  }
931
933
  if (!require_shapeTypes.isSolid(wrapped)) {
932
- wrapped[Symbol.dispose]();
934
+ require_shapeTypes.disposeResultShape(wrapped);
933
935
  return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.VARIABLE_FILLET_FAILED, "Variable-radius fillet did not produce a solid"));
934
936
  }
935
937
  return require_errors.ok(wrapped);
@@ -1,11 +1,11 @@
1
- import { S as isWire, b as isSolid, et as getKernel, f as disposeDowncastSource, g as isFace, n as castShape, t as castResultShape, v as isShape3D } from "./shapeTypes-BguzpBK0.js";
1
+ import { C as isWire, I as getShapeKind, _ as isFace, f as disposeDowncastSource, n as castShape, p as disposeResultShape, t as castResultShape, tt as getKernel, x as isSolid, y as isShape3D } from "./shapeTypes-Osdj5kMc.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-Dl2F-2d9.js";
3
+ import { c as getFaces, i as getCachedIsValid, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-DzOSCj5J.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
- import { v as downcast } from "./faceFns-CpOAl1K5.js";
6
- import { _ as collectInputFaceHashes, y as propagateAllMetadata } from "./shapeFns-DED4C70_.js";
5
+ import { v as downcast } from "./faceFns-yqC4gDSc.js";
6
+ import { _ as collectInputFaceHashes, y as propagateAllMetadata } from "./shapeFns-DjiKoRrd.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-_8mqPO7I.js";
8
+ import { f as cut, h as fuseAll, m as fuse, p as cutAll } from "./solidBuilders-DVBKEByu.js";
9
9
  //#region src/topology/threeHelpers.ts
10
10
  /**
11
11
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -339,19 +339,9 @@ function validateNotNull$1(shape, label) {
339
339
  function castToShape3D(shape, errorCode, errorMsg, suggestion) {
340
340
  const wrapped = castShape(shape);
341
341
  if (!isShape3D(wrapped)) {
342
- const shapeType = shape.ShapeType();
343
- const typeName = [
344
- "COMPOUND",
345
- "COMPSOLID",
346
- "SOLID",
347
- "SHELL",
348
- "FACE",
349
- "WIRE",
350
- "EDGE",
351
- "VERTEX",
352
- "SHAPE"
353
- ][shapeType] ?? `UNKNOWN(${shapeType})`;
354
- wrapped[Symbol.dispose]();
342
+ const typeName = getShapeKind(wrapped).toUpperCase();
343
+ disposeDowncastSource(shape, wrapped);
344
+ disposeResultShape(wrapped);
355
345
  return err(typeCastError(errorCode, `${errorMsg}. Got ${typeName} instead.`, void 0, void 0, suggestion));
356
346
  }
357
347
  disposeDowncastSource(shape, wrapped);
@@ -471,7 +461,10 @@ function filletWithEvolution(shape, edges, radius) {
471
461
  const inputFaceHashes = collectInputFaceHashes([shape]);
472
462
  const { shape: resultShape, evolution } = getKernel().filletWithHistory(shape.wrapped, filteredEdges.map((e) => e.wrapped), kernelRadius, inputFaceHashes, HASH_CODE_MAX);
473
463
  const cast = castResultShape(resultShape);
474
- if (!isShape3D(cast)) return err(kernelError(BrepErrorCode.FILLET_NOT_3D, "Fillet result is not a 3D shape"));
464
+ if (!isShape3D(cast)) {
465
+ disposeResultShape(cast);
466
+ return err(kernelError(BrepErrorCode.FILLET_NOT_3D, "Fillet result is not a 3D shape"));
467
+ }
475
468
  propagateAllMetadata(evolution, [shape], cast);
476
469
  return ok({
477
470
  shape: cast,
@@ -515,7 +508,10 @@ function chamferWithEvolution(shape, edges, distance) {
515
508
  const inputFaceHashes = collectInputFaceHashes([shape]);
516
509
  const { shape: resultShape, evolution } = getKernel().chamferWithHistory(shape.wrapped, filteredEdges.map((e) => e.wrapped), kernelDistance, inputFaceHashes, HASH_CODE_MAX);
517
510
  const cast = castResultShape(resultShape);
518
- if (!isShape3D(cast)) return err(kernelError(BrepErrorCode.CHAMFER_NOT_3D, "Chamfer result is not a 3D shape"));
511
+ if (!isShape3D(cast)) {
512
+ disposeResultShape(cast);
513
+ return err(kernelError(BrepErrorCode.CHAMFER_NOT_3D, "Chamfer result is not a 3D shape"));
514
+ }
519
515
  propagateAllMetadata(evolution, [shape], cast);
520
516
  return ok({
521
517
  shape: cast,
@@ -547,7 +543,10 @@ function shellWithEvolution(shape, faces, thickness, tolerance = .001) {
547
543
  const inputFaceHashes = collectInputFaceHashes([shape]);
548
544
  const { shape: resultShape, evolution } = getKernel().shellWithHistory(shape.wrapped, faces.map((f) => f.wrapped), thickness, inputFaceHashes, HASH_CODE_MAX, tolerance);
549
545
  const cast = castResultShape(resultShape);
550
- if (!isShape3D(cast)) return err(kernelError("SHELL_RESULT_NOT_3D", "Shell result is not a 3D shape"));
546
+ if (!isShape3D(cast)) {
547
+ disposeResultShape(cast);
548
+ return err(kernelError("SHELL_RESULT_NOT_3D", "Shell result is not a 3D shape"));
549
+ }
551
550
  propagateAllMetadata(evolution, [shape], cast);
552
551
  return ok({
553
552
  shape: cast,
@@ -640,7 +639,10 @@ function resolveEdgeCallback(selectedEdges, callbackFn) {
640
639
  */
641
640
  function finalizeShape3D(evolution, resultShape, inputs, not3dCode, not3dMessage) {
642
641
  const cast = castResultShape(resultShape);
643
- if (!isShape3D(cast)) return err(kernelError(not3dCode, not3dMessage));
642
+ if (!isShape3D(cast)) {
643
+ disposeResultShape(cast);
644
+ return err(kernelError(not3dCode, not3dMessage));
645
+ }
644
646
  propagateAllMetadata(evolution, inputs, cast);
645
647
  return ok(cast);
646
648
  }
@@ -925,11 +927,11 @@ function variableFillet(shape, edge, radii) {
925
927
  });
926
928
  const wrapped = castResultShape(kernel.filletVariable(shape.wrapped, spec));
927
929
  if (!isShape3D(wrapped)) {
928
- wrapped[Symbol.dispose]();
930
+ disposeResultShape(wrapped);
929
931
  return err(kernelError(BrepErrorCode.VARIABLE_FILLET_FAILED, "Variable-radius fillet did not produce a 3D shape"));
930
932
  }
931
933
  if (!isSolid(wrapped)) {
932
- wrapped[Symbol.dispose]();
934
+ disposeResultShape(wrapped);
933
935
  return err(kernelError(BrepErrorCode.VARIABLE_FILLET_FAILED, "Variable-radius fillet did not produce a solid"));
934
936
  }
935
937
  return ok(wrapped);
@@ -1,12 +1,12 @@
1
- import { et as getKernel, g as isFace } from "./shapeTypes-BguzpBK0.js";
1
+ import { _ as isFace, tt as getKernel } from "./shapeTypes-Osdj5kMc.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-Dl2F-2d9.js";
3
+ import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-DzOSCj5J.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-CpOAl1K5.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-DED4C70_.js";
8
- import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-BYcTyyb7.js";
9
- import { n as measureArea } from "./measureFns-BLmLZr0K.js";
6
+ import { l as normalAt, s as getSurfaceType } from "./faceFns-yqC4gDSc.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-DjiKoRrd.js";
8
+ import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-BAGamIGX.js";
9
+ import { n as measureArea } from "./measureFns-CLWtxkh6.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-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-B1QAiZVI.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-Cf2j9Zt0.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-DnLXDWq2.cjs");
7
- const require_shapeFns = require("./shapeFns-DxAhtxFP.cjs");
8
- const require_curveFns = require("./curveFns-YvH970hp.cjs");
9
- const require_measureFns = require("./measureFns-C4BxD4kC.cjs");
6
+ const require_faceFns = require("./faceFns-mARULpM7.cjs");
7
+ const require_shapeFns = require("./shapeFns-DxbbLpGg.cjs");
8
+ const require_curveFns = require("./curveFns-DVPQyYM7.cjs");
9
+ const require_measureFns = require("./measureFns-BD9_NT7u.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,8 +1,8 @@
1
- import { et as getKernel, n as castShape } from "./shapeTypes-BguzpBK0.js";
1
+ import { n as castShape, tt as getKernel } from "./shapeTypes-Osdj5kMc.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-BIf01dZl.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-DLYo6s8j.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-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.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-Bp_sSxx2.cjs");
5
+ const require_blueprint = require("./blueprint-D2GXPkIE.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-BoF6g1go.cjs");
3
- const require_importFns = require("./importFns-BZYgEOu-.cjs");
2
+ const require_meshFns = require("./meshFns-Cim4Y6vz.cjs");
3
+ const require_importFns = require("./importFns-BhatwR3O.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-BK5O_pJ9.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-DPQmk2TS.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-Cd2zde-k.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-80hScxgP.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.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");
@@ -1,4 +1,4 @@
1
- import { S as isWire, et as getKernel, l as createSolid, n as castShape, v as isShape3D } from "./shapeTypes-BguzpBK0.js";
1
+ import { C as isWire, l as createSolid, n as castShape, tt as getKernel, y as isShape3D } from "./shapeTypes-Osdj5kMc.js";
2
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 { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-B1QAiZVI.cjs");
4
- const require_faceFns = require("./faceFns-DnLXDWq2.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-Cf2j9Zt0.cjs");
4
+ const require_faceFns = require("./faceFns-mARULpM7.cjs");
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
- import { et as getKernel } from "./shapeTypes-BguzpBK0.js";
1
+ import { tt as getKernel } from "./shapeTypes-Osdj5kMc.js";
2
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-Dl2F-2d9.js";
4
- import { m as uvBounds } from "./faceFns-CpOAl1K5.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-DzOSCj5J.js";
4
+ import { m as uvBounds } from "./faceFns-yqC4gDSc.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-C4BxD4kC.cjs");
2
+ const require_measureFns = require("./measureFns-BD9_NT7u.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-BLmLZr0K.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-CLWtxkh6.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- import { et as getKernel, yt as qualityDeflection } from "./shapeTypes-BguzpBK0.js";
1
+ import { bt as qualityDeflection, tt as getKernel } from "./shapeTypes-Osdj5kMc.js";
2
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-Dl2F-2d9.js";
4
- import { j as getFaceOrigins } from "./shapeFns-DED4C70_.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-DzOSCj5J.js";
4
+ import { j as getFaceOrigins } from "./shapeFns-DjiKoRrd.js";
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-B1QAiZVI.cjs");
4
- const require_shapeFns = require("./shapeFns-DxAhtxFP.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-Cf2j9Zt0.cjs");
4
+ const require_shapeFns = require("./shapeFns-DxbbLpGg.cjs");
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-Bu2c-lu_.cjs");
3
- const require_loftFns = require("./loftFns-CZC_NH_h.cjs");
2
+ const require_threadFns = require("./threadFns-aTVNbo4w.cjs");
3
+ const require_loftFns = require("./loftFns-Bi5Osj4K.cjs");
4
4
  exports.addChild = require_threadFns.addChild;
5
5
  exports.addJoint = require_threadFns.addJoint;
6
6
  exports.addStep = require_threadFns.addStep;
@@ -1,3 +1,3 @@
1
- import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-DOqhI5OK.js";
2
- import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-NauDWzek.js";
1
+ import { A as setJointValue, B as createAssemblyNode, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, G as circularPattern, H as removeChild, J as exportAssemblySTEP, K as gridPattern, L as addChild, M as sphericalJoint, O as prismaticJoint, R as collectShapes, S as addJoint, T as jointTransform, U as updateNode, V as findNode, W as walkAssembly, Y as createAssembly, _ as exportURDF, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, q as linearPattern, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as countNodes } from "./threadFns-CLgKc6Bl.js";
2
+ import { d as twistExtrude, l as supportExtrude, o as complexExtrude, u as sweep } from "./loftFns-DtBK3brv.js";
3
3
  export { addChild, addJoint, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, cylindricalJoint, exportAssemblySTEP, exportURDF, findNode, findStep, forwardKinematics, getShape as getHistoryShape, gridPattern, importURDF, inverseKinematics, jointTrajectory, jointTransform, jointsFromDH, linearPattern, mechanismDOF, modifyStep, planarJoint, prismaticJoint, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revoluteJoint, setJointValue, setJointValues, sphericalJoint, stepCount, stepsFrom, supportExtrude, sweep, thread, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -1,9 +1,9 @@
1
- import { et as getKernel, l as createSolid, w as isClosedWire } from "./shapeTypes-BguzpBK0.js";
1
+ import { T as isClosedWire, l as createSolid, tt as getKernel } from "./shapeTypes-Osdj5kMc.js";
2
2
  import { A as ok, b as err, d as validationError, v as andThen } from "./errors-DNWJsfVU.js";
3
3
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
4
- import { g as translate } from "./shapeFns-DED4C70_.js";
5
- 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-CT__o6Be.js";
6
- 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-_8mqPO7I.js";
4
+ import { g as translate } from "./shapeFns-DjiKoRrd.js";
5
+ 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-CMUEd1bK.js";
6
+ 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-DVBKEByu.js";
7
7
  //#region src/topology/primitiveFns.ts
8
8
  /**
9
9
  * Create a box with the given dimensions.
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_constants = require("./constants-BOVyEYGH.cjs");
4
- const require_shapeFns = require("./shapeFns-DxAhtxFP.cjs");
5
- const require_surfaceBuilders = require("./surfaceBuilders-De2XKidK.cjs");
6
- const require_solidBuilders = require("./solidBuilders-yyfZ2Q-7.cjs");
4
+ const require_shapeFns = require("./shapeFns-DxbbLpGg.cjs");
5
+ const require_surfaceBuilders = require("./surfaceBuilders-DDfVCOVg.cjs");
6
+ const require_solidBuilders = require("./solidBuilders-D3zaZO6E.cjs");
7
7
  //#region src/topology/primitiveFns.ts
8
8
  /**
9
9
  * Create a box with the given dimensions.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-ClE0QcuX.cjs");
2
+ const require_cameraFns = require("./cameraFns-C3Xf7-I7.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-DyMKpFHq.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-DmLhH9Pr.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-Beq_ugyN.cjs");
3
- const require_cornerFinder = require("./cornerFinder-CINnfCPc.cjs");
2
+ const require_helpers = require("./helpers-vBB_xxts.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-BOwew_zv.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-BVkEnH5n.js";
2
- import { t as cornerFinder } from "./cornerFinder-DFswCdwf.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CcpT5mna.js";
2
+ import { t as cornerFinder } from "./cornerFinder-DL__YqRi.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,9 +1,9 @@
1
- import { et as getKernel, i as castShapeWithKnownType, p as disposeTransientSubShape } from "./shapeTypes-BguzpBK0.js";
2
- import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-Dl2F-2d9.js";
3
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-CpOAl1K5.js";
4
- import { n as getHashCode } from "./shapeFns-DED4C70_.js";
5
- import { n as measureArea, s as measureLength } from "./measureFns-BLmLZr0K.js";
6
- import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-CxepMm7H.js";
1
+ import { i as castShapeWithKnownType, m as disposeTransientSubShape, tt as getKernel } from "./shapeTypes-Osdj5kMc.js";
2
+ import { S as vertexPosition, c as getFaces } from "./topologyQueryFns-DzOSCj5J.js";
3
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-yqC4gDSc.js";
4
+ import { n as getHashCode } from "./shapeFns-DjiKoRrd.js";
5
+ import { n as measureArea, s as measureLength } from "./measureFns-CLWtxkh6.js";
6
+ import { a as sharedEdges, i as facesOfVertex, o as verticesOfEdge, r as facesOfEdge, s as verticesOfFace, t as adjacentFaces } from "./adjacencyFns-cSvOB_Ze.js";
7
7
  //#region src/topology/shapeRef/scoring.ts
8
8
  /**
9
9
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-Ca76Bklg.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-B1QAiZVI.cjs");
3
- const require_faceFns = require("./faceFns-DnLXDWq2.cjs");
4
- const require_shapeFns = require("./shapeFns-DxAhtxFP.cjs");
5
- const require_measureFns = require("./measureFns-C4BxD4kC.cjs");
6
- const require_adjacencyFns = require("./adjacencyFns-CiDCunAU.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-Cf2j9Zt0.cjs");
3
+ const require_faceFns = require("./faceFns-mARULpM7.cjs");
4
+ const require_shapeFns = require("./shapeFns-DxbbLpGg.cjs");
5
+ const require_measureFns = require("./measureFns-BD9_NT7u.cjs");
6
+ const require_adjacencyFns = require("./adjacencyFns-CpyYIeax.cjs");
7
7
  //#region src/topology/shapeRef/scoring.ts
8
8
  /**
9
9
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,6 +1,6 @@
1
- import { et as getKernel, t as castResultShape } from "./shapeTypes-BguzpBK0.js";
1
+ import { t as castResultShape, tt as getKernel } from "./shapeTypes-Osdj5kMc.js";
2
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-Dl2F-2d9.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-DzOSCj5J.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-Ca76Bklg.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BbUKvpaO.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-B1QAiZVI.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-Cf2j9Zt0.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_refResolveFns = require("./refResolveFns-DbTYd_Nj.cjs");
2
+ const require_refResolveFns = require("./refResolveFns-TdGhQZUP.cjs");
3
3
  exports.assignRoles = require_refResolveFns.assignRoles;
4
4
  exports.captureHint = require_refResolveFns.captureHint;
5
5
  exports.createDerivedFaceRef = require_refResolveFns.createDerivedFaceRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-DL1zXF8u.js";
1
+ import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-CJ58ZH-S.js";
2
2
  export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
@@ -16124,6 +16124,17 @@ function disposeTransientSubShape(handle, rawSource) {
16124
16124
  }
16125
16125
  }
16126
16126
  /**
16127
+ * Release a branded shape on an error path — when a cast result is rejected and
16128
+ * discarded. Releases the arena slot (occt-wasm's own `delete` is a no-op) then
16129
+ * runs the handle's disposer for stats/registry. Safe on every kernel: the
16130
+ * disposer's `delete()` runs inside createHandle's try/catch, so the repeated
16131
+ * free after `getKernel().dispose()` is swallowed.
16132
+ */
16133
+ function disposeResultShape(handle) {
16134
+ getKernel().dispose(handle.wrapped);
16135
+ handle[Symbol.dispose]();
16136
+ }
16137
+ /**
16127
16138
  * Fast-path cast when the shape type is already known (e.g., from iterShapes).
16128
16139
  * Skips the shapeType() WASM call — only performs downcast + branded handle creation.
16129
16140
  * Used internally by topology extractors for bulk sub-shape iteration.
@@ -16267,6 +16278,12 @@ Object.defineProperty(exports, "disposeDowncastSource", {
16267
16278
  return disposeDowncastSource;
16268
16279
  }
16269
16280
  });
16281
+ Object.defineProperty(exports, "disposeResultShape", {
16282
+ enumerable: true,
16283
+ get: function() {
16284
+ return disposeResultShape;
16285
+ }
16286
+ });
16270
16287
  Object.defineProperty(exports, "disposeTransientSubShape", {
16271
16288
  enumerable: true,
16272
16289
  get: function() {
@@ -16116,6 +16116,17 @@ function disposeTransientSubShape(handle, rawSource) {
16116
16116
  }
16117
16117
  }
16118
16118
  /**
16119
+ * Release a branded shape on an error path — when a cast result is rejected and
16120
+ * discarded. Releases the arena slot (occt-wasm's own `delete` is a no-op) then
16121
+ * runs the handle's disposer for stats/registry. Safe on every kernel: the
16122
+ * disposer's `delete()` runs inside createHandle's try/catch, so the repeated
16123
+ * free after `getKernel().dispose()` is swallowed.
16124
+ */
16125
+ function disposeResultShape(handle) {
16126
+ getKernel().dispose(handle.wrapped);
16127
+ handle[Symbol.dispose]();
16128
+ }
16129
+ /**
16119
16130
  * Fast-path cast when the shape type is already known (e.g., from iterShapes).
16120
16131
  * Skips the shapeType() WASM call — only performs downcast + branded handle creation.
16121
16132
  * Used internally by topology extractors for bulk sub-shape iteration.
@@ -16133,4 +16144,4 @@ function castShapeWithKnownType(ocShape, knownType, dim) {
16133
16144
  return createCompound(dc, dim);
16134
16145
  }
16135
16146
  //#endregion
16136
- export { getActiveKernelId as $, manifoldShell as A, is3D as B, closedWire as C, isPlanarFace as D, isOrientedFace as E, getShapeKind as F, isLive as G, createHandle as H, getOrQueryType as I, unregisterFromCleanup as J, registerForCleanup as K, as2D as L, planarFace as M, planarWire as N, isPlanarWire as O, validSolid as P, _usingCtx as Q, as3D as R, isWire as S, isManifoldShell as T, createKernelHandle as U, DisposalScope as V, getDisposalStats as W, withScopeResult as X, withScope as Y, withScopeResultAsync as Z, isShape1D as _, resetPerformanceStats as _t, createCompound as a, initFromManifold as at, isSolid as b, createShell as c, registerKernel as ct, createWire as d, withQuality as dt, getKernel as et, disposeDowncastSource as f, withTier as ft, isFace as g, getPerformanceStats as gt, isEdge as h, BrepkitAdapter as ht, castShapeWithKnownType as i, init as it, orientedFace as j, isValidSolid as k, createSolid as l, registerKernelTier as lt, isCompound as m, supportsProjection as mt, castShape as n, getKernelCapabilities as nt, createEdge as o, initFromOC as ot, disposeTransientSubShape as p, supportsConstraintSketch as pt, resetDisposalStats as q, castShape3D as r, getKernelTier as rt, createFace as s, prewarm as st, castResultShape as t, getKernel2D as tt, createVertex as u, withKernel as ut, isShape3D as v, currentQuality as vt, isClosedWire as w, isVertex as x, isShell as y, qualityDeflection as yt, is2D as z };
16147
+ export { _usingCtx as $, isValidSolid as A, is2D as B, isWire as C, isOrientedFace as D, isManifoldShell as E, validSolid as F, getDisposalStats as G, DisposalScope as H, getShapeKind as I, resetDisposalStats as J, isLive as K, getOrQueryType as L, orientedFace as M, planarFace as N, isPlanarFace as O, planarWire as P, withScopeResultAsync as Q, as2D as R, isVertex as S, isClosedWire as T, createHandle as U, is3D as V, createKernelHandle as W, withScope as X, unregisterFromCleanup as Y, withScopeResult as Z, isFace as _, getPerformanceStats as _t, createCompound as a, init as at, isShell as b, qualityDeflection as bt, createShell as c, prewarm as ct, createWire as d, withKernel as dt, getActiveKernelId as et, disposeDowncastSource as f, withQuality as ft, isEdge as g, BrepkitAdapter as gt, isCompound as h, supportsProjection as ht, castShapeWithKnownType as i, getKernelTier as it, manifoldShell as j, isPlanarWire as k, createSolid as l, registerKernel as lt, disposeTransientSubShape as m, supportsConstraintSketch as mt, castShape as n, getKernel2D as nt, createEdge as o, initFromManifold as ot, disposeResultShape as p, withTier as pt, registerForCleanup as q, castShape3D as r, getKernelCapabilities as rt, createFace as s, initFromOC as st, castResultShape as t, getKernel as tt, createVertex as u, registerKernelTier as ut, isShape1D as v, resetPerformanceStats as vt, closedWire as w, isSolid as x, isShape3D as y, currentQuality as yt, as3D as z };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-C17PPSzH.cjs");
3
- const require_blueprintSketcher = require("./blueprintSketcher-XiLc6fJ4.cjs");
4
- const require_drawFns = require("./drawFns-CG3ksr6q.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-Aicvgono.cjs");
3
+ const require_blueprintSketcher = require("./blueprintSketcher-CgeBcSjd.cjs");
4
+ const require_drawFns = require("./drawFns-0R1HI7It.cjs");
5
5
  //#region src/sketching.ts
6
6
  /**
7
7
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.