brepjs 20.13.0 → 20.13.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 (100) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-BXzEHSC5.cjs → adjacencyFns-BBugwmvl.cjs} +3 -3
  4. package/dist/{adjacencyFns-BYjzMejn.js → adjacencyFns-V29Gvfs9.js} +3 -3
  5. package/dist/{blueprint-464KGkzc.cjs → blueprint-BO8zuqoy.cjs} +5 -5
  6. package/dist/{blueprint-D-4-uTkr.js → blueprint-CDmOJybf.js} +5 -5
  7. package/dist/{blueprintFns-CE5RdX-E.js → blueprintFns-CEKZsu4N.js} +2 -2
  8. package/dist/{blueprintFns-BdyFiuiC.cjs → blueprintFns-Cki-iwEl.cjs} +2 -2
  9. package/dist/{blueprintSketcher-C4XHzqTw.cjs → blueprintSketcher-Bxkp-vjK.cjs} +3 -3
  10. package/dist/{blueprintSketcher-CQ9LxcIl.js → blueprintSketcher-DG_2zJg7.js} +3 -3
  11. package/dist/{boolean2D-CKE32vHV.cjs → boolean2D-C_sEMz0u.cjs} +4 -4
  12. package/dist/{boolean2D-DwJvQ4p_.js → boolean2D-DqCcYA2X.js} +4 -4
  13. package/dist/{booleanFns-MkzdfjDv.cjs → booleanFns-CA9tvtqr.cjs} +5 -5
  14. package/dist/{booleanFns-CsTz48A3.js → booleanFns-CopMFBLS.js} +5 -5
  15. package/dist/brepjs.cjs +33 -31
  16. package/dist/brepjs.js +33 -31
  17. package/dist/{cameraFns-BDl_D28X.js → cameraFns-BIIpsfds.js} +3 -3
  18. package/dist/{cameraFns-vHpapIZG.cjs → cameraFns-BJ35ht2H.cjs} +3 -3
  19. package/dist/core.cjs +2 -2
  20. package/dist/core.js +2 -2
  21. package/dist/{cornerFinder-Dyk5sKEN.js → cornerFinder-C8VCstc3.js} +1 -1
  22. package/dist/{cornerFinder-adDN0_C4.cjs → cornerFinder-D83OLL_I.cjs} +1 -1
  23. package/dist/{curveFns-RjNVzxNc.js → curveFns--TqXOi8f.js} +1 -1
  24. package/dist/{curveFns-HtjEh2W-.cjs → curveFns-B29Eot3K.cjs} +1 -1
  25. package/dist/{drawFns-B5gZtD_P.cjs → drawFns-Bqs4HPzo.cjs} +12 -12
  26. package/dist/{drawFns-stc8-Gma.js → drawFns-g9FrZ_P4.js} +12 -12
  27. package/dist/{faceFns-C7wBHMPv.cjs → faceFns-BeSpw0Dz.cjs} +2 -2
  28. package/dist/{faceFns-DaPoCzd-.js → faceFns-BzHfvPea.js} +2 -2
  29. package/dist/{healingFns-zYCbT8vR.cjs → healingFns-BtZg6i3J.cjs} +31 -14
  30. package/dist/{healingFns-C3Wq_hN3.js → healingFns-DtefNa-x.js} +31 -14
  31. package/dist/{helpers-BdtYVyP5.cjs → helpers-CFEuQ0ok.cjs} +6 -6
  32. package/dist/{helpers-CDzSlBi_.js → helpers-CHUowMmV.js} +6 -6
  33. package/dist/{importFns-DR7Adv-W.js → importFns-BLaneR8r.js} +34 -20
  34. package/dist/{importFns-CotbQ9l7.cjs → importFns-BX0866c6.cjs} +34 -20
  35. package/dist/io/importFns.d.ts +12 -5
  36. package/dist/io.cjs +2 -2
  37. package/dist/io.js +2 -2
  38. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +0 -4
  39. package/dist/kernel/brepkit/helpers.d.ts +15 -0
  40. package/dist/kernel/brepkit/igesMerge.d.ts +13 -0
  41. package/dist/kernel/brepkit/measureOps.d.ts +7 -0
  42. package/dist/kernel/brepkit/modifierOps.d.ts +11 -1
  43. package/dist/kernel/brepkit/stepMerge.d.ts +14 -0
  44. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  45. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  46. package/dist/{loftFns-C9k9UAKh.cjs → loftFns-Byjbneme.cjs} +31 -16
  47. package/dist/{loftFns-Cbnrz3p8.js → loftFns-Cth8Le9X.js} +32 -17
  48. package/dist/{measureFns-Bi62maOJ.cjs → measureFns-BlS2xJcn.cjs} +53 -9
  49. package/dist/{measureFns-DivR02Xb.js → measureFns-CLsSuByu.js} +49 -11
  50. package/dist/measurement/measureFns.d.ts +16 -1
  51. package/dist/measurement.cjs +2 -2
  52. package/dist/measurement.js +2 -2
  53. package/dist/{meshFns-CcuY52tt.js → meshFns-CzpP9SBf.js} +4 -4
  54. package/dist/{meshFns-8MTf0Lo_.cjs → meshFns-ECQqx-8Q.cjs} +4 -4
  55. package/dist/{occtWasmAdapter-BNOuP9DA.cjs → occtWasmAdapter-4YnvqZOW.cjs} +72 -3
  56. package/dist/{occtWasmAdapter-1k4udeb3.js → occtWasmAdapter-CGsnjMOe.js} +72 -3
  57. package/dist/operations/sweepFns.d.ts +7 -3
  58. package/dist/operations.cjs +2 -2
  59. package/dist/operations.js +2 -2
  60. package/dist/{primitiveFns-BifV4IGL.cjs → primitiveFns-CzhQz02F.cjs} +5 -5
  61. package/dist/{primitiveFns-uDvN1FH6.js → primitiveFns-Kph3YP3A.js} +5 -5
  62. package/dist/{principalBoxFns-ez0xXLyK.js → principalBoxFns-C8ZmZNxJ.js} +3 -3
  63. package/dist/{principalBoxFns-DjxE8Rym.cjs → principalBoxFns-Ck9rR3Op.cjs} +3 -3
  64. package/dist/projection.cjs +1 -1
  65. package/dist/projection.js +1 -1
  66. package/dist/query.cjs +2 -2
  67. package/dist/query.js +2 -2
  68. package/dist/{refResolveFns-CTkAPUwM.cjs → refResolveFns-CVUSuVee.cjs} +6 -6
  69. package/dist/{refResolveFns-CuaYXFya.js → refResolveFns-Cf16q6AH.js} +6 -6
  70. package/dist/{shapeFns-Rmgd4x9I.cjs → shapeFns-BEwoFgq2.cjs} +2 -2
  71. package/dist/{shapeFns-DgpWLKra.js → shapeFns-Bepwarf3.js} +2 -2
  72. package/dist/shapeRef.cjs +1 -1
  73. package/dist/shapeRef.js +1 -1
  74. package/dist/{shapeTypes-BjitsJRQ.cjs → shapeTypes-CIw6-GFy.cjs} +899 -198
  75. package/dist/{shapeTypes-DbPghQD3.js → shapeTypes-hLHmANUz.js} +899 -198
  76. package/dist/sketching.cjs +3 -3
  77. package/dist/sketching.js +3 -3
  78. package/dist/{solidBuilders-Bs2NA3xl.cjs → solidBuilders-BVHK-era.cjs} +3 -3
  79. package/dist/{solidBuilders-BUI_fGzR.js → solidBuilders-IA8xNuxJ.js} +3 -3
  80. package/dist/{surfaceBuilders-CO_DKhWA.js → surfaceBuilders-BYwkPzfM.js} +3 -3
  81. package/dist/{surfaceBuilders-Cn1mkQ3j.cjs → surfaceBuilders-DIM5GSAT.cjs} +3 -3
  82. package/dist/text.cjs +2 -2
  83. package/dist/text.js +2 -2
  84. package/dist/{textBlueprints-CT0Kbw1f.js → textBlueprints-B4w-_4_D.js} +8 -8
  85. package/dist/{textBlueprints-P_D0KUVx.cjs → textBlueprints-CPJ6sBZZ.cjs} +8 -8
  86. package/dist/{textMetrics-CVyX8GyL.cjs → textMetrics-Dfr_9G6g.cjs} +1 -1
  87. package/dist/{textMetrics-CXKdzefS.js → textMetrics-na1BYw65.js} +1 -1
  88. package/dist/{threadFns-COs6jmaf.js → threadFns-BEO0-PP6.js} +7 -7
  89. package/dist/{threadFns-BV4HLdPE.cjs → threadFns-CAsRIX6c.cjs} +7 -7
  90. package/dist/topology/apiTypes.d.ts +7 -3
  91. package/dist/topology/chamferAngleFns.d.ts +2 -2
  92. package/dist/topology/evolutionFns.d.ts +1 -1
  93. package/dist/topology/modifierFns.d.ts +11 -4
  94. package/dist/topology.cjs +9 -9
  95. package/dist/topology.js +9 -9
  96. package/dist/{topologyQueryFns-s0LddGkF.cjs → topologyQueryFns-BNDmjz7x.cjs} +1 -1
  97. package/dist/{topologyQueryFns-J2ae_Gvc.js → topologyQueryFns-BYqsNs6q.js} +1 -1
  98. package/dist/{validityTypes-CD_Xz0vZ.js → validityTypes-BYhzdgTM.js} +1 -1
  99. package/dist/{validityTypes-BVZ0lSNi.cjs → validityTypes-Gd5B_HcL.cjs} +1 -1
  100. package/package.json +2 -2
@@ -4850,17 +4850,86 @@ function toBREP(k, shape) {
4850
4850
  function fromBREP(k, data) {
4851
4851
  return wrapResult(k, k.fromBREP(data));
4852
4852
  }
4853
+ /**
4854
+ * A new XCAF document holding each part as a free shape of its own, tagged
4855
+ * with its name and color.
4856
+ *
4857
+ * XCAF stores a shape once. A part identical to an earlier one comes back as
4858
+ * that part's label, and a part sharing another part's geometry (`TShape`) at
4859
+ * another placement becomes a reference to it, which leaves the shared label
4860
+ * no longer free, so it is not written. Either way there are fewer free shapes
4861
+ * than parts; the document is then rebuilt once with those parts copied, and a
4862
+ * copy has a `TShape` of its own. Copying the part whose label became shared,
4863
+ * not the placed parts referencing it, keeps those sharing one geometry.
4864
+ */
4853
4865
  function addXcafParts(k, parts) {
4854
4866
  const docId = k.xcafNewDocument();
4855
- for (const entry of parts) {
4856
- const labelId = k.xcafAddShape(docId, unwrap(entry.shape));
4867
+ let merged;
4868
+ try {
4869
+ merged = mergedParts(addEachPart(k, docId, parts, /* @__PURE__ */ new Set()), freeShapes(k, docId));
4870
+ } catch (e) {
4871
+ k.xcafClose(docId);
4872
+ throw e;
4873
+ }
4874
+ if (merged.size === 0) return docId;
4875
+ k.xcafClose(docId);
4876
+ const rebuilt = k.xcafNewDocument();
4877
+ try {
4878
+ addEachPart(k, rebuilt, parts, merged);
4879
+ return rebuilt;
4880
+ } catch (e) {
4881
+ k.xcafClose(rebuilt);
4882
+ throw e;
4883
+ }
4884
+ }
4885
+ /** Add `parts` in order, copying those in `copy`; the label each part went in as. */
4886
+ function addEachPart(k, docId, parts, copy) {
4887
+ return parts.map((entry, i) => {
4888
+ const labelId = addPartShape(k, docId, unwrap(entry.shape), copy.has(i));
4857
4889
  if (entry.name) k.xcafSetName(docId, labelId, entry.name);
4858
4890
  if (entry.color) {
4859
4891
  const [r, g, b] = entry.color;
4860
4892
  k.xcafSetColor(docId, labelId, r / 255, g / 255, b / 255);
4861
4893
  }
4894
+ return labelId;
4895
+ });
4896
+ }
4897
+ /**
4898
+ * The parts that did not become a free shape of their own: a repeat of an
4899
+ * earlier part's label, or a label no longer free. Each part adds at most one
4900
+ * free shape, so as many free shapes as parts means none merged.
4901
+ */
4902
+ function mergedParts(labels, free) {
4903
+ const merged = /* @__PURE__ */ new Set();
4904
+ if (free.length === labels.length) return merged;
4905
+ const freeLabels = new Set(free);
4906
+ const seen = /* @__PURE__ */ new Set();
4907
+ labels.forEach((label, i) => {
4908
+ if (seen.has(label) || !freeLabels.has(label)) merged.add(i);
4909
+ seen.add(label);
4910
+ });
4911
+ return merged;
4912
+ }
4913
+ /** Add a shape, or a copy of it; the document keeps the copy's geometry once its slot is released. */
4914
+ function addPartShape(k, docId, shapeId, copy) {
4915
+ if (!copy) return k.xcafAddShape(docId, shapeId);
4916
+ const copyId = k.copy(shapeId);
4917
+ try {
4918
+ return k.xcafAddShape(docId, copyId);
4919
+ } finally {
4920
+ k.release(copyId);
4921
+ }
4922
+ }
4923
+ /** The document's free shapes' label ids. */
4924
+ function freeShapes(k, docId) {
4925
+ const roots = k.xcafGetRootLabels(docId);
4926
+ try {
4927
+ const ids = [];
4928
+ for (let i = 0; i < roots.size(); i++) ids.push(roots.get(i));
4929
+ return ids;
4930
+ } finally {
4931
+ roots.delete();
4862
4932
  }
4863
- return docId;
4864
4933
  }
4865
4934
  function writeXcafDoc(k, docId, units) {
4866
4935
  const roots = k.xcafGetRootLabels(docId);
@@ -39,7 +39,9 @@ export interface GuidedSweepOptions {
39
39
  * @param spine - The path wire to sweep along.
40
40
  * @param config - Sweep configuration (frenet, transition mode, scaling law, etc.).
41
41
  * @param shellMode - When `true`, return `[shell, startWire, endWire]` instead of a solid.
42
- * @returns `Result` containing the swept shape, or a `[Shape3D, Wire, Wire]` tuple in shell mode.
42
+ * @returns `Result` containing the swept shape, or a `[Shape3D, Wire, Wire]` tuple in shell mode;
43
+ * Err `UNSUPPORTED_CAPABILITY` when the kernel cannot build the auxiliary spine or law
44
+ * (brepkit builds neither).
43
45
  */
44
46
  export declare function sweep(wire: ClosedWire<Dimension>, spine: Wire<Dimension>, config?: SweepOptions, shellMode?: false): Result<Shape3D>;
45
47
  /** Sweep in shell mode, returning `[shell, startWire, endWire]`. */
@@ -71,7 +73,8 @@ export declare function supportExtrude(wire: ClosedWire<Dimension>, center: Vec3
71
73
  * @param normal - Direction and length of the extrusion. Must be non-zero.
72
74
  * @param profileShape - Optional scaling profile applied along the extrusion.
73
75
  * @param shellMode - When `true`, return `[shell, startWire, endWire]` instead of a solid.
74
- * @returns `Result` containing the extruded shape, or a shell tuple in shell mode.
76
+ * @returns `Result` containing the extruded shape, or a shell tuple in shell mode; Err
77
+ * `UNSUPPORTED_CAPABILITY` for a profile on a kernel without a scaling-law sweep (brepkit).
75
78
  */
76
79
  export declare function complexExtrude(wire: ClosedWire<Dimension>, center: Vec3, normal: Vec3, profileShape?: ExtrusionProfile, shellMode?: false): Result<Shape3D>;
77
80
  /** Complex extrusion in shell mode, returning `[shell, startWire, endWire]`. */
@@ -91,7 +94,8 @@ export declare function complexExtrude(wire: ClosedWire<Dimension>, center: Vec3
91
94
  * @param normal - Direction and length of the extrusion. Must be non-zero.
92
95
  * @param profileShape - Optional scaling profile applied along the extrusion.
93
96
  * @param shellMode - When `true`, return `[shell, startWire, endWire]` instead of a solid.
94
- * @returns `Result` containing the twisted extruded shape, or a shell tuple in shell mode.
97
+ * @returns `Result` containing the twisted extruded shape, or a shell tuple in shell mode;
98
+ * Err `UNSUPPORTED_CAPABILITY` on a kernel without a twisted sweep (brepkit).
95
99
  */
96
100
  export declare function twistExtrude(wire: ClosedWire<Dimension>, angleDegrees: number, center: Vec3, normal: Vec3, profileShape?: ExtrusionProfile, shellMode?: false): Result<Shape3D>;
97
101
  /** Twisted extrusion in shell mode, returning `[shell, startWire, endWire]`. */
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-BV4HLdPE.cjs");
3
- const require_loftFns = require("./loftFns-C9k9UAKh.cjs");
2
+ const require_threadFns = require("./threadFns-CAsRIX6c.cjs");
3
+ const require_loftFns = require("./loftFns-Byjbneme.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 walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, 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, 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 updateNode } from "./threadFns-COs6jmaf.js";
2
- import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-Cbnrz3p8.js";
1
+ import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, H as circularPattern, I as createAssemblyNode, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, 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, 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 updateNode } from "./threadFns-BEO0-PP6.js";
2
+ import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-Cth8Le9X.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,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-BjitsJRQ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_validityTypes = require("./validityTypes-BVZ0lSNi.cjs");
3
+ const require_validityTypes = require("./validityTypes-Gd5B_HcL.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
5
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
6
- const require_solidBuilders = require("./solidBuilders-Bs2NA3xl.cjs");
7
- const require_booleanFns = require("./booleanFns-MkzdfjDv.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-Cn1mkQ3j.cjs");
6
+ const require_solidBuilders = require("./solidBuilders-BVHK-era.cjs");
7
+ const require_booleanFns = require("./booleanFns-CA9tvtqr.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-DIM5GSAT.cjs");
9
9
  // src/topology/transformFns.ts
10
10
  /**
11
11
  * Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
@@ -1,11 +1,11 @@
1
- import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-DbPghQD3.js";
1
+ import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-hLHmANUz.js";
2
2
  import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-BTccWbtE.js";
3
- import { n as isClosedWire } from "./validityTypes-CD_Xz0vZ.js";
3
+ import { n as isClosedWire } from "./validityTypes-BYhzdgTM.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-iraOnb2p.js";
5
5
  import { d as vecNormalize, h as vecScale } from "./vecOps-S-m9H_fe.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-BUI_fGzR.js";
7
- import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-CsTz48A3.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-CO_DKhWA.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-IA8xNuxJ.js";
7
+ import { f as collectInputFaceHashes, g as propagateMetadataThroughRelocation, h as propagateMetadataByHash, m as propagateAllMetadata, p as hasAnyMetadata } from "./booleanFns-CopMFBLS.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-BYwkPzfM.js";
9
9
  // src/topology/transformFns.ts
10
10
  /**
11
11
  * Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
@@ -1,9 +1,9 @@
1
- import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-DbPghQD3.js";
1
+ import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-hLHmANUz.js";
2
2
  import { i as wasmIndex } from "./bug-ClMTAJhe.js";
3
3
  import { E as ok, d as validationError, g as err, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
4
- import { E as kernelCallRaw } from "./topologyQueryFns-J2ae_Gvc.js";
4
+ import { E as kernelCallRaw } from "./topologyQueryFns-BYqsNs6q.js";
5
5
  import { r as vecCross } from "./vecOps-S-m9H_fe.js";
6
- import { f as withCompoundOf, h as setCachedMeasurement, m as getCachedMeasurement, p as withSubShapes } from "./measureFns-DivR02Xb.js";
6
+ import { g as setCachedMeasurement, h as getCachedMeasurement, m as withSubShapes, p as withCompoundOf } from "./measureFns-CLsSuByu.js";
7
7
  // src/measurement/principalBoxFns.ts
8
8
  /**
9
9
  * Principal-axes bounding box: a solid's extent measured in the frame of its
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-BjitsJRQ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_bug = require("./bug-CBcpIPuf.cjs");
3
3
  const require_errors = require("./errors-O_blYTWT.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-s0LddGkF.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-BNDmjz7x.cjs");
5
5
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
6
- const require_measureFns = require("./measureFns-Bi62maOJ.cjs");
6
+ const require_measureFns = require("./measureFns-BlS2xJcn.cjs");
7
7
  // src/measurement/principalBoxFns.ts
8
8
  /**
9
9
  * Principal-axes bounding box: a solid's extent measured in the frame of its
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-vHpapIZG.cjs");
2
+ const require_cameraFns = require("./cameraFns-BJ35ht2H.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 +1 @@
1
- export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-BDl_D28X.js";
1
+ export { o as PROJECTION_PLANES, t as cameraFromPlane, n as cameraLookAt, r as createCamera, s as isProjectionPlane, a as makeProjectedEdges, i as projectEdges } from "./cameraFns-BIIpsfds.js";
package/dist/query.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_helpers = require("./helpers-BdtYVyP5.cjs");
3
- const require_cornerFinder = require("./cornerFinder-adDN0_C4.cjs");
2
+ const require_helpers = require("./helpers-CFEuQ0ok.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-D83OLL_I.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-CDzSlBi_.js";
2
- import { t as cornerFinder } from "./cornerFinder-Dyk5sKEN.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CHUowMmV.js";
2
+ import { t as cornerFinder } from "./cornerFinder-C8VCstc3.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,10 +1,10 @@
1
- const require_shapeTypes = require("./shapeTypes-BjitsJRQ.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-s0LddGkF.cjs");
3
- const require_faceFns = require("./faceFns-C7wBHMPv.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-BNDmjz7x.cjs");
3
+ const require_faceFns = require("./faceFns-BeSpw0Dz.cjs");
4
4
  const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
5
- const require_shapeFns = require("./shapeFns-Rmgd4x9I.cjs");
6
- const require_measureFns = require("./measureFns-Bi62maOJ.cjs");
7
- const require_adjacencyFns = require("./adjacencyFns-BXzEHSC5.cjs");
5
+ const require_shapeFns = require("./shapeFns-BEwoFgq2.cjs");
6
+ const require_measureFns = require("./measureFns-BlS2xJcn.cjs");
7
+ const require_adjacencyFns = require("./adjacencyFns-BBugwmvl.cjs");
8
8
  // src/topology/shapeRef/scoring.ts
9
9
  /**
10
10
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,10 +1,10 @@
1
- import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-DbPghQD3.js";
2
- import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-J2ae_Gvc.js";
3
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-DaPoCzd-.js";
1
+ import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-hLHmANUz.js";
2
+ import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-BYqsNs6q.js";
3
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-BzHfvPea.js";
4
4
  import { t as getFaceRoles } from "./faceRoleFns-BPxzQF-n.js";
5
- import { n as getHashCode } from "./shapeFns-DgpWLKra.js";
6
- import { n as measureArea, s as measureLength } from "./measureFns-DivR02Xb.js";
7
- import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-BYjzMejn.js";
5
+ import { n as getHashCode } from "./shapeFns-Bepwarf3.js";
6
+ import { c as measureLength, r as measureArea } from "./measureFns-CLsSuByu.js";
7
+ import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-V29Gvfs9.js";
8
8
  // src/topology/shapeRef/scoring.ts
9
9
  /**
10
10
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-BjitsJRQ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-CIw6-GFy.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-s0LddGkF.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BNDmjz7x.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
5
  // src/topology/shapeFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { q as getKernel } from "./shapeTypes-DbPghQD3.js";
1
+ import { q as getKernel } from "./shapeTypes-hLHmANUz.js";
2
2
  import { t as BrepErrorCode } from "./errors-BTccWbtE.js";
3
- import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-J2ae_Gvc.js";
3
+ import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-BYqsNs6q.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
5
  // src/topology/shapeFns.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-CTkAPUwM.cjs");
2
+ const require_refResolveFns = require("./refResolveFns-CVUSuVee.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 +1 @@
1
- export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-CuaYXFya.js";
1
+ export { h as assignRoles, g as captureHint, l as createDerivedFaceRef, p as createEdgeRef, _ as createRef, d as createVertexRef, b as defaultScorer, t as isDerivedFaceRef, n as isEdgeRef, r as isFaceRef, i as isLineageRef, a as isVertexRef, u as resolveDerivedFaceRef, m as resolveEdgeRef, o as resolveLineageRef, v as resolveRef, s as resolveRefIn, c as resolveRefParams, f as resolveVertexRef, y as updateRoles } from "./refResolveFns-Cf16q6AH.js";