brepjs 18.35.2 → 18.35.4

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 (88) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{blueprint-BF0DcVwE.cjs → blueprint-C9feKfjM.cjs} +5 -5
  4. package/dist/{blueprint-KwH2JNPU.js → blueprint-PV2EbBko.js} +5 -5
  5. package/dist/{blueprintFns-X7jVGGUE.js → blueprintFns-CohoA3Ly.js} +2 -2
  6. package/dist/{blueprintFns-CbPsMijw.cjs → blueprintFns-Diu8oFPr.cjs} +2 -2
  7. package/dist/{blueprintSketcher-m18T1U1T.cjs → blueprintSketcher-B1TC4tuf.cjs} +3 -3
  8. package/dist/{blueprintSketcher-BwFpbp0B.js → blueprintSketcher-BC22SEkZ.js} +3 -3
  9. package/dist/{boolean2D-BzlbvCIH.cjs → boolean2D-CHza20uz.cjs} +4 -4
  10. package/dist/{boolean2D-DAq015PP.js → boolean2D-D42Z6h-L.js} +4 -4
  11. package/dist/{booleanFns-D19tR8Gn.cjs → booleanFns-CCJFmZf6.cjs} +4 -4
  12. package/dist/{booleanFns-nHsLqZ7Y.js → booleanFns-D7A-hqSP.js} +4 -4
  13. package/dist/brepjs.cjs +25 -25
  14. package/dist/brepjs.js +25 -25
  15. package/dist/{cameraFns-Bhjy2SuC.js → cameraFns-BvZw_Bje.js} +2 -2
  16. package/dist/{cameraFns-D_8-JO0p.cjs → cameraFns-D79etXJw.cjs} +2 -2
  17. package/dist/core.cjs +1 -1
  18. package/dist/core.js +1 -1
  19. package/dist/{cornerFinder-U6kzoCXY.js → cornerFinder-BPz7nFlt.js} +1 -1
  20. package/dist/{cornerFinder-Bmp3Vm5g.cjs → cornerFinder-D3m1OkXN.cjs} +1 -1
  21. package/dist/{curveFns-rUkX4tEm.js → curveFns-BJNwNm66.js} +1 -1
  22. package/dist/{curveFns-p1YEnmZu.cjs → curveFns-CiI0h04W.cjs} +1 -1
  23. package/dist/{drawFns-BGIQ1IeV.cjs → drawFns-Cx7RJEdL.cjs} +12 -12
  24. package/dist/{drawFns-ZhKR7xa0.js → drawFns-E68sfFlE.js} +12 -12
  25. package/dist/{extrudeFns-Cl_azGgy.js → extrudeFns-D49C5SBL.js} +1 -1
  26. package/dist/{extrudeFns-DpRGUaxD.cjs → extrudeFns-DympFQua.cjs} +1 -1
  27. package/dist/{faceFns-C6qUr_gw.cjs → faceFns-3HqgY1VN.cjs} +2 -2
  28. package/dist/{faceFns-eVWgSIzt.js → faceFns-DLjTsZIu.js} +2 -2
  29. package/dist/{helpers-DNVILwHA.cjs → helpers-BSU8Ilxm.cjs} +6 -6
  30. package/dist/{helpers-BhJOo535.js → helpers-DI2r-O_h.js} +6 -6
  31. package/dist/{historyFns-ByJG4mBP.js → historyFns-D89ZUO18.js} +4 -4
  32. package/dist/{historyFns-C2glA6vu.cjs → historyFns-DoMVl9Wf.cjs} +4 -4
  33. package/dist/{importFns-DuAmdf0Q.js → importFns-CpKXeRz6.js} +2 -2
  34. package/dist/{importFns-CJc5NYJp.cjs → importFns-SQNeOpGa.cjs} +2 -2
  35. package/dist/io.cjs +2 -2
  36. package/dist/io.js +2 -2
  37. package/dist/kernel/hullGeometry.d.ts +22 -0
  38. package/dist/kernel/occt/hullOps.d.ts +1 -6
  39. package/dist/kernel/occtWasm/constructionOps.d.ts +1 -0
  40. package/dist/kernel/occtWasm/hullOps.d.ts +1 -5
  41. package/dist/kernel/occtWasm/ioOps.d.ts +1 -1
  42. package/dist/kernel/occtWasm/kernel2dOps.d.ts +7 -1
  43. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  44. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +1 -1
  45. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  46. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +7 -2
  47. package/dist/kernel/occtWasm/sweepOps.d.ts +1 -1
  48. package/dist/{measureFns-BiflqrZ_.js → measureFns-BMSt38re.js} +3 -3
  49. package/dist/{measureFns-D7lxkIjt.cjs → measureFns-CG36omJ5.cjs} +3 -3
  50. package/dist/measurement.cjs +1 -1
  51. package/dist/measurement.js +1 -1
  52. package/dist/{meshFns-DM2mLIlu.cjs → meshFns-B08Sq0xg.cjs} +10 -3
  53. package/dist/{meshFns-F9QLm-Bk.js → meshFns-B6dmwjJL.js} +10 -3
  54. package/dist/{occtWasmAdapter-COKB8ItA.js → occtWasmAdapter-DfdUU9UU.js} +395 -171
  55. package/dist/{occtWasmAdapter-CdyaMnBW.cjs → occtWasmAdapter-ZiJfgmS1.cjs} +400 -170
  56. package/dist/operations.cjs +2 -2
  57. package/dist/operations.js +2 -2
  58. package/dist/{primitiveFns-vQh7Lz7B.js → primitiveFns-BD6YZbCJ.js} +7 -7
  59. package/dist/{primitiveFns-CXn9Jl4q.cjs → primitiveFns-DFnQlGVV.cjs} +7 -7
  60. package/dist/projection.cjs +1 -1
  61. package/dist/projection.js +1 -1
  62. package/dist/query.cjs +2 -2
  63. package/dist/query.js +2 -2
  64. package/dist/{shapeFns-BbHQjI5-.js → shapeFns-C8pitNme.js} +2 -2
  65. package/dist/{shapeFns-B3v9_keQ.cjs → shapeFns-CnNKfmw8.cjs} +2 -2
  66. package/dist/shapeRef.cjs +1 -1
  67. package/dist/shapeRef.js +1 -1
  68. package/dist/{shapeRefFns-BOsX8Tim.js → shapeRefFns-BQlYDeCD.js} +4 -4
  69. package/dist/{shapeRefFns-CkafUjdM.cjs → shapeRefFns-DtCBv52A.cjs} +4 -4
  70. package/dist/{shapeTypes-C-MpR5-e.js → shapeTypes-BKeiP62J.js} +3 -241
  71. package/dist/{shapeTypes-Bbh2doYh.cjs → shapeTypes-D5Nua1z1.cjs} +5 -243
  72. package/dist/sketching.cjs +3 -3
  73. package/dist/sketching.js +3 -3
  74. package/dist/{solidBuilders-Ck6gpdQR.cjs → solidBuilders-0ZZGbPt3.cjs} +2 -2
  75. package/dist/{solidBuilders-C44fKbQQ.js → solidBuilders-DjPCyWCd.js} +2 -2
  76. package/dist/{surfaceBuilders-DsISMCwj.cjs → surfaceBuilders-6QimO9vi.cjs} +2 -2
  77. package/dist/{surfaceBuilders-D4p1YPCz.js → surfaceBuilders-d4o4OoWy.js} +2 -2
  78. package/dist/text.cjs +2 -2
  79. package/dist/text.js +2 -2
  80. package/dist/{textBlueprints-C93RophN.cjs → textBlueprints-BUkh-dID.cjs} +7 -7
  81. package/dist/{textBlueprints-BKdQqBn8.js → textBlueprints-DOPJs2t6.js} +7 -7
  82. package/dist/{textMetrics-2vq4PFfz.cjs → textMetrics-DNQplzf7.cjs} +1 -1
  83. package/dist/{textMetrics-DEmVsP5C.js → textMetrics-h6jI-oL_.js} +1 -1
  84. package/dist/topology.cjs +7 -7
  85. package/dist/topology.js +7 -7
  86. package/dist/{topologyQueryFns-C0kAqcn5.cjs → topologyQueryFns-BNv_2PHm.cjs} +1 -1
  87. package/dist/{topologyQueryFns-B81GSST_.js → topologyQueryFns-DhdAOL0M.js} +1 -1
  88. package/package.json +1 -1
@@ -1,9 +1,9 @@
1
- import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-C-MpR5-e.js";
1
+ import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-BKeiP62J.js";
2
2
  import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DNWJsfVU.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
- import { v as fromBREP } from "./faceFns-eVWgSIzt.js";
5
- import { s as toBREP } from "./shapeFns-BbHQjI5-.js";
6
- import { a as fuseAll } from "./booleanFns-nHsLqZ7Y.js";
4
+ import { v as fromBREP } from "./faceFns-DLjTsZIu.js";
5
+ import { s as toBREP } from "./shapeFns-C8pitNme.js";
6
+ import { a as fuseAll } from "./booleanFns-D7A-hqSP.js";
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Nua1z1.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
- const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
5
- const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
6
- const require_booleanFns = require("./booleanFns-D19tR8Gn.cjs");
4
+ const require_faceFns = require("./faceFns-3HqgY1VN.cjs");
5
+ const require_shapeFns = require("./shapeFns-CnNKfmw8.cjs");
6
+ const require_booleanFns = require("./booleanFns-CCJFmZf6.cjs");
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,8 +1,8 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-C-MpR5-e.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-BKeiP62J.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-KwH2JNPU.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-PV2EbBko.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-Bbh2doYh.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Nua1z1.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-BF0DcVwE.cjs");
5
+ const require_blueprint = require("./blueprint-C9feKfjM.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-DM2mLIlu.cjs");
3
- const require_importFns = require("./importFns-CJc5NYJp.cjs");
2
+ const require_meshFns = require("./meshFns-B08Sq0xg.cjs");
3
+ const require_importFns = require("./importFns-SQNeOpGa.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-F9QLm-Bk.js";
2
- import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-DuAmdf0Q.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-B6dmwjJL.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-CpKXeRz6.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Pure-TS 3D convex hull (QuickHull).
3
+ *
4
+ * Kernel-agnostic: operates on plain {x,y,z} points and returns triangle
5
+ * indices. Shared by the occt and occt-wasm adapters, which supply their own
6
+ * vertex extraction and BREP reconstruction around it.
7
+ */
8
+ export interface Vec3 {
9
+ readonly x: number;
10
+ readonly y: number;
11
+ readonly z: number;
12
+ }
13
+ export interface HullResult {
14
+ readonly faces: ReadonlyArray<readonly [number, number, number]>;
15
+ readonly points: readonly Vec3[];
16
+ }
17
+ /**
18
+ * Compute the 3D convex hull of a point set.
19
+ *
20
+ * @throws if fewer than 4 non-coincident, non-coplanar points are supplied.
21
+ */
22
+ export declare function quickHull(inputPoints: Vec3[], tolerance: number): HullResult;
@@ -1,9 +1,5 @@
1
1
  import { KernelInstance, KernelShape } from '../types.js';
2
- interface Vec3 {
3
- readonly x: number;
4
- readonly y: number;
5
- readonly z: number;
6
- }
2
+ import { Vec3 } from '../hullGeometry.js';
7
3
  /**
8
4
  * Compute the 3D convex hull of one or more OCCT shapes.
9
5
  *
@@ -33,4 +29,3 @@ export declare function makeHullOps(oc: KernelInstance): {
33
29
  z: number;
34
30
  }[], faces: (readonly [number, number, number])[], tolerance: number) => any;
35
31
  };
36
- export {};
@@ -3,6 +3,7 @@ import { OcctKernelWasm, OcctWasmModule } from './occtWasmTypes.js';
3
3
  export declare function makeVertex(k: OcctKernelWasm, x: number, y: number, z: number): KernelShape;
4
4
  export declare function makeEdge(_k: OcctKernelWasm, curve: KernelType): KernelShape;
5
5
  export declare function makeWire(k: OcctKernelWasm, Module: OcctWasmModule, edges: KernelShape[]): KernelShape;
6
+ export declare function makeWireFromMixed(k: OcctKernelWasm, Module: OcctWasmModule, items: KernelShape[]): KernelShape;
6
7
  export declare function makeFace(k: OcctKernelWasm, wire: KernelShape, _planar?: boolean): KernelShape;
7
8
  export declare function makeLineEdge(k: OcctKernelWasm, p1: [number, number, number], p2: [number, number, number]): KernelShape;
8
9
  export declare function makeCircleEdge(k: OcctKernelWasm, center: [number, number, number], normal: [number, number, number], radius: number): KernelShape;
@@ -1,12 +1,8 @@
1
1
  import { KernelShape } from '../types.js';
2
2
  import { OcctKernelWasm, OcctWasmModule } from './occtWasmTypes.js';
3
- export declare function computeConvexHullFaces(pts: Array<{
4
- x: number;
5
- y: number;
6
- z: number;
7
- }>): Array<readonly [number, number, number]>;
8
3
  export declare function hullFromPoints(k: OcctKernelWasm, Module: OcctWasmModule, points: Array<{
9
4
  x: number;
10
5
  y: number;
11
6
  z: number;
12
7
  }>, tolerance: number): KernelShape;
8
+ export declare function hull(k: OcctKernelWasm, Module: OcctWasmModule, shapes: KernelShape[], tolerance: number): KernelShape;
@@ -31,7 +31,7 @@ export declare function exportOBJ(mesh: MeshFn, shape: KernelShape, tolerance: n
31
31
  export declare function exportPLY(mesh: MeshFn, shape: KernelShape, tolerance: number): ArrayBuffer;
32
32
  export declare function toBREP(k: OcctKernelWasm, shape: KernelShape): string;
33
33
  export declare function fromBREP(k: OcctKernelWasm, data: string): KernelShape;
34
- export declare function createXCAFDocument(k: OcctKernelWasm, Module: OcctWasmModule, shapes: Array<{
34
+ export declare function createXCAFDocument(k: OcctKernelWasm, _Module: OcctWasmModule, shapes: Array<{
35
35
  shape: KernelShape;
36
36
  name: string;
37
37
  color?: [number, number, number, number] | undefined;
@@ -13,7 +13,13 @@ export declare function makeArc2dTangent(startX: number, startY: number, tangent
13
13
  export declare function makeEllipse2d(cx: number, cy: number, majorRadius: number, minorRadius: number, xDirX?: number, xDirY?: number, sense?: boolean): Curve2dHandle;
14
14
  export declare function makeEllipseArc2d(cx: number, cy: number, majorRadius: number, minorRadius: number, startAngle: number, endAngle: number, xDirX?: number, xDirY?: number, sense?: boolean): Curve2dHandle;
15
15
  export declare function makeBezier2d(points: [number, number][]): Curve2dHandle;
16
- export declare function makeBSpline2d(points: [number, number][]): Curve2dHandle;
16
+ export declare function makeBSpline2d(points: [number, number][], options?: {
17
+ degMin?: number;
18
+ degMax?: number;
19
+ continuity?: 'C0' | 'C1' | 'C2' | 'C3';
20
+ tolerance?: number;
21
+ smoothing?: [number, number, number] | null;
22
+ }): Curve2dHandle;
17
23
  export declare function evaluateCurve2d(curve: Curve2dHandle, param: number): [number, number];
18
24
  export declare function evaluateCurve2dD1(curve: Curve2dHandle, param: number): {
19
25
  point: [number, number];
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_occtWasmAdapter = require("../../occtWasmAdapter-CdyaMnBW.cjs");
2
+ const require_occtWasmAdapter = require("../../occtWasmAdapter-ZiJfgmS1.cjs");
3
3
  exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
@@ -68,7 +68,7 @@ export declare class OcctWasmAdapter implements KernelAdapter {
68
68
  makeWireFromMixed(items: KernelShape[]): KernelShape;
69
69
  makeCompound(shapes: KernelShape[]): KernelShape;
70
70
  solidFromShell(shell: KernelShape): KernelShape;
71
- hull(_shapes: KernelShape[], _tolerance: number): KernelShape;
71
+ hull(shapes: KernelShape[], tolerance: number): KernelShape;
72
72
  hullFromPoints(points: Array<{
73
73
  x: number;
74
74
  y: number;
@@ -1,2 +1,2 @@
1
- import { t as OcctWasmAdapter } from "../../occtWasmAdapter-COKB8ItA.js";
1
+ import { t as OcctWasmAdapter } from "../../occtWasmAdapter-DfdUU9UU.js";
2
2
  export { OcctWasmAdapter };
@@ -230,8 +230,13 @@ export interface OcctKernelWasm {
230
230
  projectEdges(shapeId: number, ox: number, oy: number, oz: number, dx: number, dy: number, dz: number, xx: number, xy: number, xz: number, hasXAxis: boolean): EmProjectionData;
231
231
  getNurbsCurveData(edgeId: number): EmNurbsCurveData;
232
232
  liftCurve2dToPlane(flatPoints2d: EmVectorDouble, planeOx: number, planeOy: number, planeOz: number, planeZx: number, planeZy: number, planeZz: number, planeXx: number, planeXy: number, planeXz: number): number;
233
- createXCAFDocument(shapeIds: EmVectorUint32, joinedNames: string, flatColors: EmVectorDouble): number;
234
- writeXCAFToSTEP(docId: number): string;
233
+ xcafNewDocument(): number;
234
+ xcafClose(docId: number): void;
235
+ xcafAddShape(docId: number, shapeId: number): number;
236
+ xcafSetColor(docId: number, labelId: number, r: number, g: number, b: number): void;
237
+ xcafSetName(docId: number, labelId: number, name: string): void;
238
+ xcafGetRootLabels(docId: number): EmVectorInt;
239
+ xcafExportSTEP(docId: number): string;
235
240
  bsplineSurface(flatPoints: EmVectorDouble, rows: number, cols: number): number;
236
241
  makeFaceOnSurface(faceId: number, wireId: number): number;
237
242
  makeNullShape(): number;
@@ -2,7 +2,7 @@ import { KernelShape, KernelType } from '../types.js';
2
2
  import { OcctKernelWasm, OcctWasmModule } from './occtWasmTypes.js';
3
3
  export declare function extrude(k: OcctKernelWasm, face: KernelShape, direction: [number, number, number], length: number): KernelShape;
4
4
  export declare function revolve(k: OcctKernelWasm, shape: KernelShape, axis: KernelType, angle: number): KernelShape;
5
- export declare function loft(k: OcctKernelWasm, Module: OcctWasmModule, wires: KernelShape[], ruled?: boolean, _startShape?: KernelShape, _endShape?: KernelShape): KernelShape;
5
+ export declare function loft(k: OcctKernelWasm, Module: OcctWasmModule, wires: KernelShape[], ruled?: boolean, startShape?: KernelShape, endShape?: KernelShape): KernelShape;
6
6
  export declare function sweep(k: OcctKernelWasm, wire: KernelShape, spine: KernelShape, options?: {
7
7
  transitionMode?: number;
8
8
  }): KernelShape;
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-C-MpR5-e.js";
1
+ import { Z as getKernel } from "./shapeTypes-BKeiP62J.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-B81GSST_.js";
4
- import { p as uvBounds } from "./faceFns-eVWgSIzt.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-DhdAOL0M.js";
4
+ import { p as uvBounds } from "./faceFns-DLjTsZIu.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-Bbh2doYh.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Nua1z1.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
- const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BNv_2PHm.cjs");
4
+ const require_faceFns = require("./faceFns-3HqgY1VN.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-D7lxkIjt.cjs");
2
+ const require_measureFns = require("./measureFns-CG36omJ5.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-BiflqrZ_.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-BMSt38re.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-D5Nua1z1.cjs");
2
2
  const require_errors = require("./errors-CXJtc4I7.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
- const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BNv_2PHm.cjs");
4
+ const require_shapeFns = require("./shapeFns-CnNKfmw8.cjs");
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -231,6 +231,13 @@ function describeOffendingSolids(shape) {
231
231
  * cheap pre-export probe lets us return a clean `Err` instead of crashing.
232
232
  * Heuristic, not universal: it only catches shapes whose bounding-box evaluation
233
233
  * also throws.
234
+ *
235
+ * Note: the canonical #1126 shape (an annular-sector tread fused with a frenet
236
+ * helical rail) is NOT caught here — `getBounds` *succeeds* on it, as do
237
+ * `isValid`/`validSolid`/`mesh`/`measureArea`, and `autoHeal` cannot repair it.
238
+ * No known non-trapping check detects that BOPAlgo corruption; the only safety net
239
+ * for it is `exportError` classifying the writer's `WebAssembly.RuntimeError` as
240
+ * `*_EXPORT_CRASHED`. A real fix must come from the kernel (OCCT BOPAlgo).
234
241
  */
235
242
  function probeSerializable(shape, fmt) {
236
243
  try {
@@ -1,7 +1,7 @@
1
- import { Z as getKernel } from "./shapeTypes-C-MpR5-e.js";
1
+ import { Z as getKernel } from "./shapeTypes-BKeiP62J.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-B81GSST_.js";
4
- import { O as getFaceOrigins } from "./shapeFns-BbHQjI5-.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-DhdAOL0M.js";
4
+ import { O as getFaceOrigins } from "./shapeFns-C8pitNme.js";
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -231,6 +231,13 @@ function describeOffendingSolids(shape) {
231
231
  * cheap pre-export probe lets us return a clean `Err` instead of crashing.
232
232
  * Heuristic, not universal: it only catches shapes whose bounding-box evaluation
233
233
  * also throws.
234
+ *
235
+ * Note: the canonical #1126 shape (an annular-sector tread fused with a frenet
236
+ * helical rail) is NOT caught here — `getBounds` *succeeds* on it, as do
237
+ * `isValid`/`validSolid`/`mesh`/`measureArea`, and `autoHeal` cannot repair it.
238
+ * No known non-trapping check detects that BOPAlgo corruption; the only safety net
239
+ * for it is `exportError` classifying the writer's `WebAssembly.RuntimeError` as
240
+ * `*_EXPORT_CRASHED`. A real fix must come from the kernel (OCCT BOPAlgo).
234
241
  */
235
242
  function probeSerializable(shape, fmt) {
236
243
  try {