brepjs 18.124.0 → 18.124.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 (86) hide show
  1. package/dist/2d.cjs +10 -8
  2. package/dist/2d.js +10 -8
  3. package/dist/{adjacencyFns-BJ6jcQ-N.cjs → adjacencyFns-CpKlADYt.cjs} +3 -3
  4. package/dist/{adjacencyFns-CnehwLNj.js → adjacencyFns-DECdcer5.js} +3 -3
  5. package/dist/{blueprint-BGWbpQ-w.js → blueprint-CaY00-X2.js} +16 -11
  6. package/dist/{blueprint-BSfG0Uik.cjs → blueprint-CpJLcUJV.cjs} +14 -10
  7. package/dist/{blueprintFns-C0-nGqlW.cjs → blueprintFns-B5nFaJI0.cjs} +2 -2
  8. package/dist/{blueprintFns-Bt1hKlL7.js → blueprintFns-vgwEIgI0.js} +2 -2
  9. package/dist/{blueprintSketcher-Bd5ZS9p6.cjs → blueprintSketcher-4e0yYtCY.cjs} +19 -11
  10. package/dist/{blueprintSketcher-BTGRoQ_G.js → blueprintSketcher-BjBjj2cK.js} +19 -11
  11. package/dist/{boolean2D-Cr6oLsbf.cjs → boolean2D-7heWA1co.cjs} +12 -8
  12. package/dist/{boolean2D-zZ9-qR5a.js → boolean2D-Bk-VrRyQ.js} +14 -9
  13. package/dist/brepjs.cjs +121 -81
  14. package/dist/brepjs.js +132 -85
  15. package/dist/{cameraFns-j2I9G3L_.cjs → cameraFns-CGwrxgqB.cjs} +5 -4
  16. package/dist/{cameraFns-CGMawqfi.js → cameraFns-DKEilV2v.js} +5 -4
  17. package/dist/core.cjs +2 -2
  18. package/dist/core.js +2 -2
  19. package/dist/{cornerFinder-CaXBdZz9.js → cornerFinder-C4s6pVZ-.js} +1 -1
  20. package/dist/{cornerFinder-CPwSLgpM.cjs → cornerFinder-zEgIFMnk.cjs} +1 -1
  21. package/dist/{curveFns-BBLaLG1U.cjs → curveFns-BZZYHVow.cjs} +8 -5
  22. package/dist/{curveFns-BoHbhtqX.js → curveFns-RczIU30U.js} +8 -5
  23. package/dist/{drawFns-DOkSdo8E.cjs → drawFns-BcXzWFfn.cjs} +59 -30
  24. package/dist/{drawFns-BrRbAeYB.js → drawFns-BjT3RaeQ.js} +59 -30
  25. package/dist/{faceFns-UozswcwP.cjs → faceFns-C4xNv2zn.cjs} +4 -3
  26. package/dist/{faceFns-Ce7Fq6j5.js → faceFns-fvp_zfuI.js} +6 -4
  27. package/dist/{healingFns-Dn0EFSHm.js → healingFns-AE5182Ds.js} +38 -21
  28. package/dist/{healingFns-mKogaVOk.cjs → healingFns-SxSiVPQa.cjs} +38 -21
  29. package/dist/{helpers-DuTAcGVX.cjs → helpers-CHYzwQMk.cjs} +6 -6
  30. package/dist/{helpers-CZsK8STz.js → helpers-CyLQ07aD.js} +6 -6
  31. package/dist/{importFns-Ch2YwieP.cjs → importFns-90S7P_7P.cjs} +5 -6
  32. package/dist/{importFns-CE4byS-8.js → importFns-DdXOAX6k.js} +5 -6
  33. package/dist/io.cjs +2 -2
  34. package/dist/io.js +2 -2
  35. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  36. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  37. package/dist/{loftFns-BYiUcAxk.cjs → loftFns-B3mbh5RA.cjs} +15 -9
  38. package/dist/{loftFns-DQVg8qxM.js → loftFns-CyY4qfvC.js} +15 -9
  39. package/dist/{measureFns-BbLLBg5q.js → measureFns-B1uLQugf.js} +3 -3
  40. package/dist/{measureFns-Cao9gY1L.cjs → measureFns-Cx2XJVVC.cjs} +3 -3
  41. package/dist/measurement.cjs +1 -1
  42. package/dist/measurement.js +1 -1
  43. package/dist/{meshFns-CnYIUU9b.cjs → meshFns-2ZxW-X9I.cjs} +3 -3
  44. package/dist/{meshFns-B6NveFwc.js → meshFns-DrO3d03M.js} +3 -3
  45. package/dist/{occtWasmAdapter-BQKQXF63.js → occtWasmAdapter-BEe---7w.js} +3 -1
  46. package/dist/{occtWasmAdapter-Aubfbks6.cjs → occtWasmAdapter-DEpy64ji.cjs} +3 -1
  47. package/dist/operations.cjs +2 -2
  48. package/dist/operations.js +2 -2
  49. package/dist/{originTrackingFns-uz38yuMp.cjs → originTrackingFns-D3rUK08B.cjs} +2 -2
  50. package/dist/{originTrackingFns-DXcggmgf.js → originTrackingFns-DIAwMSih.js} +2 -2
  51. package/dist/{primitiveFns-CmmTWOkO.js → primitiveFns-CDPqVTcc.js} +7 -5
  52. package/dist/{primitiveFns-DmEPf6av.cjs → primitiveFns-c7wqS-K2.cjs} +7 -5
  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/{refResolveFns-CnPEaqHw.cjs → refResolveFns-Cm8ZHPl5.cjs} +10 -8
  58. package/dist/{refResolveFns-DqY7Cd00.js → refResolveFns-o3-Gdnjn.js} +10 -8
  59. package/dist/{rolldown-runtime-DakpK96I.cjs → rolldown-runtime-C0BPl7ul.cjs} +1 -1
  60. package/dist/{shapeFns-BLZ1dDSz.cjs → shapeFns-CJ6mph9b.cjs} +2 -2
  61. package/dist/{shapeFns-mYczuWOy.js → shapeFns-DEpbxB9Z.js} +2 -2
  62. package/dist/shapeRef.cjs +1 -1
  63. package/dist/shapeRef.js +1 -1
  64. package/dist/{shapeTypes-bHlssytH.js → shapeTypes-BHRboc_x.js} +235 -20
  65. package/dist/{shapeTypes-DZKuRt24.cjs → shapeTypes-D5Y41q7x.cjs} +219 -12
  66. package/dist/sketching.cjs +3 -3
  67. package/dist/sketching.js +3 -3
  68. package/dist/{solidBuilders-5tA9O1SM.cjs → solidBuilders-CsUkRC69.cjs} +14 -9
  69. package/dist/{solidBuilders-9s-j-ZiW.js → solidBuilders-DQQ0re9T.js} +14 -9
  70. package/dist/{surfaceBuilders-0x7j0ibk.cjs → surfaceBuilders-BXNZydNl.cjs} +7 -5
  71. package/dist/{surfaceBuilders-B7UnwkQz.js → surfaceBuilders-C8k0K7DR.js} +7 -5
  72. package/dist/text.cjs +2 -2
  73. package/dist/text.js +2 -2
  74. package/dist/{textBlueprints-DE3M-E9o.js → textBlueprints-BAyLXffK.js} +36 -21
  75. package/dist/{textBlueprints-BPbIpA4-.cjs → textBlueprints-t8MdWfki.cjs} +37 -22
  76. package/dist/{textMetrics-D3Bly1w4.js → textMetrics-CefI-bMN.js} +3 -2
  77. package/dist/{textMetrics-rRuWxQG_.cjs → textMetrics-DUEI9s5M.cjs} +3 -2
  78. package/dist/{threadFns-BAjFNk2_.js → threadFns-Bau5Sqad.js} +17 -12
  79. package/dist/{threadFns-BMT6ziG_.cjs → threadFns-OVYAleOH.cjs} +17 -12
  80. package/dist/topology.cjs +9 -9
  81. package/dist/topology.js +9 -9
  82. package/dist/{topologyQueryFns-DVhWxBwT.js → topologyQueryFns-QvPyCF-7.js} +1 -1
  83. package/dist/{topologyQueryFns-DZUpJz2p.cjs → topologyQueryFns-gah07J7-.cjs} +1 -1
  84. package/dist/{validityTypes-19mfqWVv.js → validityTypes-DokbYKzd.js} +1 -1
  85. package/dist/{validityTypes-CCnRq3A9.cjs → validityTypes-Dx-04qO0.cjs} +1 -1
  86. package/package.json +7 -7
@@ -1,4 +1,4 @@
1
- import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-bHlssytH.js";
1
+ import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-BHRboc_x.js";
2
2
  import { E as ok, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
3
3
  import { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { c as vecLength, t as vecAdd } from "./vecOps-SKPRvPH-.js";
@@ -22,7 +22,8 @@ import { c as vecLength, t as vecAdd } from "./vecOps-SKPRvPH-.js";
22
22
  function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
23
23
  if (extrusionLength < 1e-10) return err(validationError("INVALID_EXTRUSION_LENGTH", "Extrusion length too small (< 1e-10)"));
24
24
  if (profile !== "s-curve" && profile !== "linear") return err(validationError("UNSUPPORTED_PROFILE", `Unsupported extrusion profile: ${String(profile)}`));
25
- return ok(getKernel().buildExtrusionLaw(profile, extrusionLength, endFactor).Trim(0, extrusionLength, 1e-6));
25
+ const law = getKernel().buildExtrusionLaw(profile, extrusionLength, endFactor);
26
+ return ok(law.Trim(0, extrusionLength, 1e-6));
26
27
  }
27
28
  //#endregion
28
29
  //#region src/operations/sweepFns.ts
@@ -42,7 +43,8 @@ function makeSpineWire(start, end) {
42
43
  }
43
44
  /** Build a helix wire for twist extrusion. */
44
45
  function makeHelixWire(pitch, height, radius, center, dir, leftHanded = false) {
45
- return castResultShape(getKernel().makeHelixWire(pitch, height, radius, [...center], [...dir], leftHanded));
46
+ const kernel = getKernel();
47
+ return castResultShape(kernel.makeHelixWire(pitch, height, radius, [...center], [...dir], leftHanded));
46
48
  }
47
49
  /** Cast a shell-mode sweep result `[shell, startWire, endWire]`, releasing all three on any reject. */
48
50
  function castSweepShellTuple(result) {
@@ -86,7 +88,8 @@ function castSweepShellTuple(result) {
86
88
  */
87
89
  function sweep(wire, spine, config = {}, shellMode = false) {
88
90
  if (config.mode === "simple" && !shellMode) {
89
- const shape = castResultShape(getKernel().simplePipe(wire.wrapped, spine.wrapped));
91
+ const resultOc = getKernel().simplePipe(wire.wrapped, spine.wrapped);
92
+ const shape = castResultShape(resultOc);
90
93
  if (!isShape3D(shape)) {
91
94
  disposeResultShape(shape);
92
95
  return err(typeCastError("SWEEP_NOT_3D", "Simple pipe did not produce a 3D shape"));
@@ -279,11 +282,12 @@ function multiSectionSweep(sections, spine, options) {
279
282
  positioned.push(p);
280
283
  positionedWires.push(kernel.downcast(p, "wire"));
281
284
  }
282
- const result = castResultShape(kernel.loftAdvanced(positionedWires, {
285
+ const loftResult = kernel.loftAdvanced(positionedWires, {
283
286
  solid,
284
287
  ruled,
285
288
  tolerance
286
- }));
289
+ });
290
+ const result = castResultShape(loftResult);
287
291
  if (!isShape3D(result)) {
288
292
  disposeResultShape(result);
289
293
  return err(typeCastError("MULTI_SWEEP_NOT_3D", "Multi-section sweep did not produce a 3D shape"));
@@ -325,7 +329,8 @@ function guidedSweep(profile, spine, guides, options = {}) {
325
329
  boundTolerance: tolerance
326
330
  } : {}
327
331
  });
328
- const result = castResultShape(typeof sweepResult === "object" && "shape" in sweepResult ? sweepResult.shape : sweepResult);
332
+ const ocShape = typeof sweepResult === "object" && "shape" in sweepResult ? sweepResult.shape : sweepResult;
333
+ const result = castResultShape(ocShape);
329
334
  if (!isShape3D(result)) {
330
335
  disposeResultShape(result);
331
336
  return err(typeCastError("GUIDED_SWEEP_NOT_3D", "Guided sweep did not produce a 3D shape"));
@@ -366,13 +371,14 @@ function loft(wires, { ruled = true, startPoint, endPoint, tolerance = 1e-6 } =
366
371
  const startVertex = startPoint ? kernel.makeVertex(...toVec3(startPoint)) : void 0;
367
372
  const endVertex = endPoint ? kernel.makeVertex(...toVec3(endPoint)) : void 0;
368
373
  try {
369
- const result = castResultShape(kernel.loftAdvanced(wires.map((w) => w.wrapped), {
374
+ const shape = kernel.loftAdvanced(wires.map((w) => w.wrapped), {
370
375
  solid: !returnShell,
371
376
  ruled,
372
377
  tolerance,
373
378
  ...startVertex ? { startVertex } : {},
374
379
  ...endVertex ? { endVertex } : {}
375
- }));
380
+ });
381
+ const result = castResultShape(shape);
376
382
  if (!isShape3D(result)) {
377
383
  disposeResultShape(result);
378
384
  return err(typeCastError("LOFT_NOT_3D", "Loft did not produce a 3D shape"));
@@ -1,7 +1,7 @@
1
- import { K as getKernel } from "./shapeTypes-bHlssytH.js";
1
+ import { K as getKernel } from "./shapeTypes-BHRboc_x.js";
2
2
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
3
- import { T as kernelCallRaw } from "./topologyQueryFns-DVhWxBwT.js";
4
- import { m as uvBounds } from "./faceFns-Ce7Fq6j5.js";
3
+ import { T as kernelCallRaw } from "./topologyQueryFns-QvPyCF-7.js";
4
+ import { m as uvBounds } from "./faceFns-fvp_zfuI.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-DZKuRt24.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
2
2
  const require_errors = require("./errors-RHkKO5bZ.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DZUpJz2p.cjs");
4
- const require_faceFns = require("./faceFns-UozswcwP.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-gah07J7-.cjs");
4
+ const require_faceFns = require("./faceFns-C4xNv2zn.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-Cao9gY1L.cjs");
2
+ const require_measureFns = require("./measureFns-Cx2XJVVC.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-BbLLBg5q.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-B1uLQugf.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-DZKuRt24.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
2
2
  const require_errors = require("./errors-RHkKO5bZ.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DZUpJz2p.cjs");
4
- const require_originTrackingFns = require("./originTrackingFns-uz38yuMp.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-gah07J7-.cjs");
4
+ const require_originTrackingFns = require("./originTrackingFns-D3rUK08B.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,7 +1,7 @@
1
- import { K as getKernel, lt as qualityDeflection } from "./shapeTypes-bHlssytH.js";
1
+ import { K as getKernel, lt as qualityDeflection } from "./shapeTypes-BHRboc_x.js";
2
2
  import { E as ok, g as err, r as ioError } from "./errors-MHLiNE-C.js";
3
- import { d as getSolids, n as getBounds } from "./topologyQueryFns-DVhWxBwT.js";
4
- import { t as getFaceOrigins } from "./originTrackingFns-DXcggmgf.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-QvPyCF-7.js";
4
+ import { t as getFaceOrigins } from "./originTrackingFns-DIAwMSih.js";
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -295,6 +295,8 @@ function quickHull(inputPoints, tolerance) {
295
295
  }
296
296
  //#endregion
297
297
  //#region src/kernel/geometry2d.ts
298
+ /* v8 ignore file -- excluded from coverage reports; prevents V8 instrumentation
299
+ overhead that causes 2D-heavy tests to timeout under coverage mode. */
298
300
  function evaluateCurve2d$1(c, t) {
299
301
  switch (c.__bk2d) {
300
302
  case "line": return [c.ox + c.dx * t, c.oy + c.dy * t];
@@ -901,7 +903,7 @@ function numericalIntersect(c1, c2, tolerance, isSelf = false) {
901
903
  });
902
904
  }
903
905
  const crossTol = Math.max(tolerance * 100, .5);
904
- const seg2Bounds = new Float64Array(N * 6);
906
+ const seg2Bounds = /* @__PURE__ */ new Float64Array(600);
905
907
  for (let j = 0; j < N; j++) {
906
908
  const a = pts2[j], b = pts2[j + 1];
907
909
  const off = j * 6;
@@ -295,6 +295,8 @@ function quickHull(inputPoints, tolerance) {
295
295
  }
296
296
  //#endregion
297
297
  //#region src/kernel/geometry2d.ts
298
+ /* v8 ignore file -- excluded from coverage reports; prevents V8 instrumentation
299
+ overhead that causes 2D-heavy tests to timeout under coverage mode. */
298
300
  function evaluateCurve2d$1(c, t) {
299
301
  switch (c.__bk2d) {
300
302
  case "line": return [c.ox + c.dx * t, c.oy + c.dy * t];
@@ -901,7 +903,7 @@ function numericalIntersect(c1, c2, tolerance, isSelf = false) {
901
903
  });
902
904
  }
903
905
  const crossTol = Math.max(tolerance * 100, .5);
904
- const seg2Bounds = new Float64Array(N * 6);
906
+ const seg2Bounds = /* @__PURE__ */ new Float64Array(600);
905
907
  for (let j = 0; j < N; j++) {
906
908
  const a = pts2[j], b = pts2[j + 1];
907
909
  const off = j * 6;
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-BMT6ziG_.cjs");
3
- const require_loftFns = require("./loftFns-BYiUcAxk.cjs");
2
+ const require_threadFns = require("./threadFns-OVYAleOH.cjs");
3
+ const require_loftFns = require("./loftFns-B3mbh5RA.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-BAjFNk2_.js";
2
- import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-DQVg8qxM.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-Bau5Sqad.js";
2
+ import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-CyY4qfvC.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,5 +1,5 @@
1
- const require_shapeTypes = require("./shapeTypes-DZKuRt24.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-DZUpJz2p.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-gah07J7-.cjs");
3
3
  const require_constants = require("./constants-BOVyEYGH.cjs");
4
4
  //#region src/topology/metadata/originTrackingFns.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { K as getKernel } from "./shapeTypes-bHlssytH.js";
2
- import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-DVhWxBwT.js";
1
+ import { K as getKernel } from "./shapeTypes-BHRboc_x.js";
2
+ import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-QvPyCF-7.js";
3
3
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
4
4
  //#region src/topology/metadata/originTrackingFns.ts
5
5
  /**
@@ -1,9 +1,9 @@
1
- import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-bHlssytH.js";
1
+ import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-BHRboc_x.js";
2
2
  import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
3
- import { n as isClosedWire } from "./validityTypes-19mfqWVv.js";
3
+ import { n as isClosedWire } from "./validityTypes-DokbYKzd.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
- import { C as propagateAllMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, 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, w as propagateMetadataByHash, x as collectInputFaceHashes } from "./solidBuilders-9s-j-ZiW.js";
6
- 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-B7UnwkQz.js";
5
+ import { C as propagateAllMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, 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, w as propagateMetadataByHash, x as collectInputFaceHashes } from "./solidBuilders-DQQ0re9T.js";
6
+ 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-C8k0K7DR.js";
7
7
  //#region src/topology/transformFns.ts
8
8
  /**
9
9
  * Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
@@ -163,7 +163,9 @@ function applyMatrix(shape, matrix) {
163
163
  propagateAllMetadata(evolution, [shape], result);
164
164
  return ok(result);
165
165
  }
166
- const result = castResultShape(getKernel().generalTransformNonOrthogonal(shape.wrapped, linear, translation));
166
+ /* v8 ignore start -- untestable until WASM is rebuilt with BRepBuilderAPI_GTransform */
167
+ const resultShape = getKernel().generalTransformNonOrthogonal(shape.wrapped, linear, translation);
168
+ const result = castResultShape(resultShape);
167
169
  propagateMetadataByHash([shape], result);
168
170
  return ok(result);
169
171
  /* v8 ignore stop */
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-DZKuRt24.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
2
2
  const require_errors = require("./errors-RHkKO5bZ.cjs");
3
- const require_validityTypes = require("./validityTypes-CCnRq3A9.cjs");
3
+ const require_validityTypes = require("./validityTypes-Dx-04qO0.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_solidBuilders = require("./solidBuilders-5tA9O1SM.cjs");
6
- const require_surfaceBuilders = require("./surfaceBuilders-0x7j0ibk.cjs");
5
+ const require_solidBuilders = require("./solidBuilders-CsUkRC69.cjs");
6
+ const require_surfaceBuilders = require("./surfaceBuilders-BXNZydNl.cjs");
7
7
  //#region src/topology/transformFns.ts
8
8
  /**
9
9
  * Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
@@ -163,7 +163,9 @@ function applyMatrix(shape, matrix) {
163
163
  require_solidBuilders.propagateAllMetadata(evolution, [shape], result);
164
164
  return require_errors.ok(result);
165
165
  }
166
- const result = require_shapeTypes.castResultShape(require_shapeTypes.getKernel().generalTransformNonOrthogonal(shape.wrapped, linear, translation));
166
+ /* v8 ignore start -- untestable until WASM is rebuilt with BRepBuilderAPI_GTransform */
167
+ const resultShape = require_shapeTypes.getKernel().generalTransformNonOrthogonal(shape.wrapped, linear, translation);
168
+ const result = require_shapeTypes.castResultShape(resultShape);
167
169
  require_solidBuilders.propagateMetadataByHash([shape], result);
168
170
  return require_errors.ok(result);
169
171
  /* v8 ignore stop */
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-j2I9G3L_.cjs");
2
+ const require_cameraFns = require("./cameraFns-CGwrxgqB.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-CGMawqfi.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-DKEilV2v.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-DuTAcGVX.cjs");
3
- const require_cornerFinder = require("./cornerFinder-CPwSLgpM.cjs");
2
+ const require_helpers = require("./helpers-CHYzwQMk.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-zEgIFMnk.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-CZsK8STz.js";
2
- import { t as cornerFinder } from "./cornerFinder-CaXBdZz9.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CyLQ07aD.js";
2
+ import { t as cornerFinder } from "./cornerFinder-C4s6pVZ-.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-DZKuRt24.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-DZUpJz2p.cjs");
3
- const require_faceFns = require("./faceFns-UozswcwP.cjs");
4
- const require_shapeFns = require("./shapeFns-BLZ1dDSz.cjs");
5
- const require_measureFns = require("./measureFns-Cao9gY1L.cjs");
6
- const require_adjacencyFns = require("./adjacencyFns-BJ6jcQ-N.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-gah07J7-.cjs");
3
+ const require_faceFns = require("./faceFns-C4xNv2zn.cjs");
4
+ const require_shapeFns = require("./shapeFns-CJ6mph9b.cjs");
5
+ const require_measureFns = require("./measureFns-Cx2XJVVC.cjs");
6
+ const require_adjacencyFns = require("./adjacencyFns-CpKlADYt.cjs");
7
7
  //#region src/topology/shapeRef/scoring.ts
8
8
  /**
9
9
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -18,8 +18,10 @@ const require_adjacencyFns = require("./adjacencyFns-BJ6jcQ-N.cjs");
18
18
  function defaultScorer(hint, face) {
19
19
  let score = 0;
20
20
  const faceType = require_faceFns.faceGeomType(face);
21
- if (hint.surfaceType !== void 0) if (faceType === hint.surfaceType) score += 1;
22
- else return -Infinity;
21
+ if (hint.surfaceType !== void 0) {
22
+ if (faceType === hint.surfaceType) score += 1;
23
+ else return -Infinity;
24
+ }
23
25
  if (hint.normal !== void 0) {
24
26
  const faceNormal = require_faceFns.normalAt(face);
25
27
  const dot = hint.normal[0] * faceNormal[0] + hint.normal[1] * faceNormal[1] + hint.normal[2] * faceNormal[2];
@@ -1,9 +1,9 @@
1
- import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-bHlssytH.js";
2
- import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-DVhWxBwT.js";
3
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-Ce7Fq6j5.js";
4
- import { n as getHashCode } from "./shapeFns-mYczuWOy.js";
5
- import { n as measureArea, s as measureLength } from "./measureFns-BbLLBg5q.js";
6
- import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-CnehwLNj.js";
1
+ import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-BHRboc_x.js";
2
+ import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-QvPyCF-7.js";
3
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-fvp_zfuI.js";
4
+ import { n as getHashCode } from "./shapeFns-DEpbxB9Z.js";
5
+ import { n as measureArea, s as measureLength } from "./measureFns-B1uLQugf.js";
6
+ import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-DECdcer5.js";
7
7
  //#region src/topology/shapeRef/scoring.ts
8
8
  /**
9
9
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -18,8 +18,10 @@ import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedE
18
18
  function defaultScorer(hint, face) {
19
19
  let score = 0;
20
20
  const faceType = faceGeomType(face);
21
- if (hint.surfaceType !== void 0) if (faceType === hint.surfaceType) score += 1;
22
- else return -Infinity;
21
+ if (hint.surfaceType !== void 0) {
22
+ if (faceType === hint.surfaceType) score += 1;
23
+ else return -Infinity;
24
+ }
23
25
  if (hint.normal !== void 0) {
24
26
  const faceNormal = normalAt(face);
25
27
  const dot = hint.normal[0] * faceNormal[0] + hint.normal[1] * faceNormal[1] + hint.normal[2] * faceNormal[2];
@@ -24,7 +24,7 @@ var __copyProps = (to, from, except, desc) => {
24
24
  }
25
25
  return to;
26
26
  };
27
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
28
28
  value: mod,
29
29
  enumerable: true
30
30
  }) : target, mod));
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-DZKuRt24.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
2
2
  const require_errors = require("./errors-RHkKO5bZ.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DZUpJz2p.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-gah07J7-.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/shapeFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { K as getKernel } from "./shapeTypes-bHlssytH.js";
1
+ import { K as getKernel } from "./shapeTypes-BHRboc_x.js";
2
2
  import { t as BrepErrorCode } from "./errors-MHLiNE-C.js";
3
- import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-DVhWxBwT.js";
3
+ import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-QvPyCF-7.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  //#region 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-CnPEaqHw.cjs");
2
+ const require_refResolveFns = require("./refResolveFns-Cm8ZHPl5.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-DqY7Cd00.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-o3-Gdnjn.js";
2
2
  export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };