brepjs 20.12.9 → 20.12.11

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 (95) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-CfhGIMeR.cjs → adjacencyFns-DSGyqGyy.cjs} +3 -3
  4. package/dist/{adjacencyFns-1Cmjb2ot.js → adjacencyFns-DfPO5LGP.js} +3 -3
  5. package/dist/{blueprint-DbJVzU9F.cjs → blueprint-BY2aygt_.cjs} +5 -5
  6. package/dist/{blueprint-BVcuEefs.js → blueprint-DbNFPHzC.js} +5 -5
  7. package/dist/{blueprintFns-DePTHG1I.cjs → blueprintFns-AfHtvBKP.cjs} +2 -2
  8. package/dist/{blueprintFns-mD4pDyFP.js → blueprintFns-dU5V5WcD.js} +2 -2
  9. package/dist/{blueprintSketcher-B5CFmhjg.cjs → blueprintSketcher-DHp6AeEM.cjs} +3 -3
  10. package/dist/{blueprintSketcher-BrGmq-65.js → blueprintSketcher-nBI9PlsW.js} +3 -3
  11. package/dist/{boolean2D-CFKg1FJ_.cjs → boolean2D-C6TS6oFP.cjs} +4 -4
  12. package/dist/{boolean2D-BrHrY60M.js → boolean2D-DuWgyjOR.js} +4 -4
  13. package/dist/{booleanFns-CKDyqKz0.js → booleanFns-BwzBRGqj.js} +4 -4
  14. package/dist/{booleanFns-C640CeaY.cjs → booleanFns-D0qfjH0a.cjs} +4 -4
  15. package/dist/brepjs.cjs +72 -55
  16. package/dist/brepjs.js +72 -55
  17. package/dist/{cameraFns-hXUKJkLg.cjs → cameraFns-B9xKg36U.cjs} +3 -3
  18. package/dist/{cameraFns-DIbua1lC.js → cameraFns-CLkNCsYU.js} +3 -3
  19. package/dist/core.cjs +2 -2
  20. package/dist/core.js +2 -2
  21. package/dist/{cornerFinder-BYDkloVc.js → cornerFinder-CeyQ5JMA.js} +1 -1
  22. package/dist/{cornerFinder-ByBGU0r7.cjs → cornerFinder-Da8Dv4bp.cjs} +1 -1
  23. package/dist/{curveFns-Cqgtmhr0.cjs → curveFns-B8mm5cou.cjs} +1 -1
  24. package/dist/{curveFns-DphpaoQ4.js → curveFns-EsJgIpc6.js} +1 -1
  25. package/dist/{drawFns-Ch3ah8K9.js → drawFns-BQIHgHQg.js} +12 -12
  26. package/dist/{drawFns-GwVZX47o.cjs → drawFns-JZV96JGO.cjs} +12 -12
  27. package/dist/{faceFns-D4cDeMRf.js → faceFns-2jGPfqvB.js} +2 -2
  28. package/dist/{faceFns-BDqVGEoB.cjs → faceFns-Jo9hMVqL.cjs} +2 -2
  29. package/dist/{healingFns--vBKh5pa.js → healingFns-D6mUhe0Z.js} +85 -22
  30. package/dist/{healingFns-Fu7Xl8fu.cjs → healingFns-qioD81Of.cjs} +91 -22
  31. package/dist/{helpers-Wnq-YPWv.cjs → helpers-BvYkHZK7.cjs} +6 -6
  32. package/dist/{helpers-CroIo2SI.js → helpers-CsHdKbfF.js} +6 -6
  33. package/dist/{importFns-tHr15Lhm.cjs → importFns-BzzUvnKA.cjs} +5 -5
  34. package/dist/{importFns-D5Bt_44J.js → importFns-C8yUNPzJ.js} +5 -5
  35. package/dist/io/stepConfigFns.d.ts +1 -1
  36. package/dist/io.cjs +2 -2
  37. package/dist/io.js +2 -2
  38. package/dist/kernel/interfaces/modifierOps.d.ts +12 -0
  39. package/dist/kernel/occtWasm/helpers.d.ts +1 -0
  40. package/dist/kernel/occtWasm/modifierOps.d.ts +8 -0
  41. package/dist/kernel/occtWasm/occtWasmAdapter.cjs +1 -1
  42. package/dist/kernel/occtWasm/occtWasmAdapter.d.ts +5 -0
  43. package/dist/kernel/occtWasm/occtWasmAdapter.js +1 -1
  44. package/dist/kernel/occtWasm/occtWasmTypes.d.ts +4 -0
  45. package/dist/{loftFns-T0GxcPlB.cjs → loftFns-CnerVgTM.cjs} +1 -1
  46. package/dist/{loftFns-Bh_RuF7a.js → loftFns-jnQL_zpD.js} +1 -1
  47. package/dist/{measureFns-C3TZ5Fj9.js → measureFns-D3egqKcW.js} +3 -3
  48. package/dist/{measureFns-DGm6ndQY.cjs → measureFns-R85865k9.cjs} +3 -3
  49. package/dist/measurement.cjs +2 -2
  50. package/dist/measurement.js +2 -2
  51. package/dist/{meshFns-Go1XSyUh.js → meshFns-Bo4EQJFO.js} +4 -4
  52. package/dist/{meshFns-DDgZ3vpr.cjs → meshFns-Cs_qrlXI.cjs} +4 -4
  53. package/dist/{occtWasmAdapter-CZPZnpCe.cjs → occtWasmAdapter-BK--kx4R.cjs} +62 -12
  54. package/dist/{occtWasmAdapter-EM3EhKwk.js → occtWasmAdapter-C-Qi-jxS.js} +62 -12
  55. package/dist/operations.cjs +2 -2
  56. package/dist/operations.js +2 -2
  57. package/dist/{primitiveFns-CeRc4Sls.js → primitiveFns-NxbTqKy7.js} +5 -5
  58. package/dist/{primitiveFns-Dg_XWYtp.cjs → primitiveFns-eiM6OjWU.cjs} +5 -5
  59. package/dist/{principalBoxFns-BuK-ueAB.js → principalBoxFns-BgetPvvQ.js} +3 -3
  60. package/dist/{principalBoxFns-B5zdek3y.cjs → principalBoxFns-DepJW5im.cjs} +3 -3
  61. package/dist/projection.cjs +1 -1
  62. package/dist/projection.js +1 -1
  63. package/dist/query.cjs +2 -2
  64. package/dist/query.js +2 -2
  65. package/dist/{refResolveFns-WRcvVhV-.js → refResolveFns-Bl10yOGJ.js} +6 -6
  66. package/dist/{refResolveFns-CFwsYCKA.cjs → refResolveFns-DpWvqRm0.cjs} +6 -6
  67. package/dist/{shapeFns-DuxfaqTw.cjs → shapeFns-D47cmLG8.cjs} +2 -2
  68. package/dist/{shapeFns-CYjU8PsF.js → shapeFns-kFm-m8jh.js} +2 -2
  69. package/dist/shapeRef.cjs +1 -1
  70. package/dist/shapeRef.js +1 -1
  71. package/dist/{shapeTypes--7XBFlOD.cjs → shapeTypes-C06KHgTm.cjs} +1 -1
  72. package/dist/{shapeTypes-DvzbSivn.js → shapeTypes-DoPnZHn_.js} +1 -1
  73. package/dist/sketching.cjs +3 -3
  74. package/dist/sketching.js +3 -3
  75. package/dist/{solidBuilders-D0bIZX9K.cjs → solidBuilders-Dwm0hXn5.cjs} +3 -3
  76. package/dist/{solidBuilders-BqSVC4cB.js → solidBuilders-ZDGdvaTU.js} +3 -3
  77. package/dist/{surfaceBuilders--HOoTQad.js → surfaceBuilders-BBs6D6Km.js} +3 -3
  78. package/dist/{surfaceBuilders-CPQHyL_5.cjs → surfaceBuilders-D5kFAV1i.cjs} +3 -3
  79. package/dist/text.cjs +2 -2
  80. package/dist/text.js +2 -2
  81. package/dist/{textBlueprints-plsbHqiI.js → textBlueprints-BvZNjVwM.js} +8 -8
  82. package/dist/{textBlueprints-B4HzJzZM.cjs → textBlueprints-D3XhH1kb.cjs} +8 -8
  83. package/dist/{textMetrics-IIS6DUTr.js → textMetrics-BGPUxjiq.js} +1 -1
  84. package/dist/{textMetrics-CBwUIDI7.cjs → textMetrics-zk48vXsM.cjs} +1 -1
  85. package/dist/{threadFns-CmZFykpi.js → threadFns-CEr8JDsu.js} +7 -7
  86. package/dist/{threadFns-e8_26ZYw.cjs → threadFns-DNFoBBrH.cjs} +7 -7
  87. package/dist/topology/apiTypes.d.ts +6 -2
  88. package/dist/topology/chamferAngleFns.d.ts +24 -0
  89. package/dist/topology.cjs +9 -9
  90. package/dist/topology.js +9 -9
  91. package/dist/{topologyQueryFns-NszVx8a0.cjs → topologyQueryFns-BUhKY2Kj.cjs} +1 -1
  92. package/dist/{topologyQueryFns-BUzMuIs5.js → topologyQueryFns-yOGEI9hO.js} +1 -1
  93. package/dist/{validityTypes-CdY06B8c.js → validityTypes-CGrEOscY.js} +1 -1
  94. package/dist/{validityTypes-Ds4zNICF.cjs → validityTypes-lfyOkCQm.cjs} +1 -1
  95. package/package.json +2 -2
@@ -3,7 +3,14 @@ import { OcctKernelWasm, OcctWasmModule } from './occtWasmTypes.js';
3
3
  import { EdgeValueSpec } from './helpers.js';
4
4
  export declare function fillet(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], radius: EdgeValueSpec): KernelShape;
5
5
  export declare function chamfer(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], distance: EdgeValueSpec): KernelShape;
6
+ interface DistAngle {
7
+ readonly distance: number;
8
+ readonly angleDeg: number;
9
+ }
6
10
  export declare function chamferDistAngle(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, edges: KernelShape[], distance: number, angleDeg: number): KernelShape;
11
+ export declare function chamferDistAngles(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, entries: ReadonlyArray<{
12
+ edge: KernelShape;
13
+ } & DistAngle>): KernelShape;
7
14
  export declare function shell(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, faces: KernelShape[], thickness: number, tolerance?: number): KernelShape;
8
15
  export declare function thicken(k: OcctKernelWasm, shape: KernelShape, thickness: number): KernelShape;
9
16
  export declare function offset(k: OcctKernelWasm, shape: KernelShape, distance: number, tolerance?: number): KernelShape;
@@ -14,3 +21,4 @@ export declare function defeature(k: OcctKernelWasm, Module: OcctWasmModule, sha
14
21
  export declare function offsetWire2D(k: OcctKernelWasm, wire: KernelShape, offset: number, joinType?: number | 'arc' | 'intersection' | 'tangent'): KernelShape;
15
22
  export declare function simplify(k: OcctKernelWasm, shape: KernelShape): KernelShape;
16
23
  export declare function reverseShape(k: OcctKernelWasm, shape: KernelShape): KernelShape;
24
+ export {};
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_occtWasmAdapter = require("../../occtWasmAdapter-CZPZnpCe.cjs");
2
+ const require_occtWasmAdapter = require("../../occtWasmAdapter-BK--kx4R.cjs");
3
3
  exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
@@ -166,6 +166,11 @@ export declare class OcctWasmAdapter implements KernelAdapter {
166
166
  fillet(shape: KernelShape, edges: KernelShape[], radius: number | [number, number] | ((edge: KernelShape) => number | [number, number])): KernelShape;
167
167
  chamfer(shape: KernelShape, edges: KernelShape[], distance: number | [number, number] | ((edge: KernelShape) => number | [number, number])): KernelShape;
168
168
  chamferDistAngle(shape: KernelShape, edges: KernelShape[], distance: number, angleDeg: number): KernelShape;
169
+ chamferDistAngles(shape: KernelShape, edges: ReadonlyArray<{
170
+ edge: KernelShape;
171
+ distance: number;
172
+ angleDeg: number;
173
+ }>): KernelShape;
169
174
  shell(shape: KernelShape, faces: KernelShape[], thickness: number, tolerance?: number): KernelShape;
170
175
  thicken(shape: KernelShape, thickness: number): KernelShape;
171
176
  offset(shape: KernelShape, distance: number, tolerance?: number): KernelShape;
@@ -1 +1 @@
1
- export { t as OcctWasmAdapter } from "../../occtWasmAdapter-EM3EhKwk.js";
1
+ export { t as OcctWasmAdapter } from "../../occtWasmAdapter-C-Qi-jxS.js";
@@ -253,6 +253,8 @@ export interface OcctKernelWasm {
253
253
  * inch, ft, mi, mil, um, uin). Geometry is read as millimeters.
254
254
  */
255
255
  exportStepWithUnit?(id: number, unit: string): string;
256
+ /** occt-wasm >= 5.10.0: `schema` is 'AP203', 'AP214', or 'AP242'; '' keeps AP214. */
257
+ exportStepWithOptions?(id: number, unit: string, schema: string): string;
256
258
  importStl(data: string): number;
257
259
  /** Absent from published occt-wasm builds (no IGES translator), so callers feature-detect. */
258
260
  importIges?(data: string): number;
@@ -307,6 +309,8 @@ export interface OcctKernelWasm {
307
309
  xcafExportSTEP(docId: number): string;
308
310
  /** occt-wasm >= 5.9.0: units as in {@link exportStepWithUnit}. */
309
311
  xcafExportSTEPWithUnit?(docId: number, unit: string): string;
312
+ /** occt-wasm >= 5.10.0: unit and schema as in {@link exportStepWithOptions}. */
313
+ xcafExportSTEPWithOptions?(docId: number, unit: string, schema: string): string;
310
314
  bsplineSurface(flatPoints: EmVectorDouble, rows: number, cols: number): number;
311
315
  makeFaceOnSurface(faceId: number, wireId: number): number;
312
316
  makeNullShape(): number;
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  const require_types = require("./types-CjF9Rofr.cjs");
4
4
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
@@ -1,4 +1,4 @@
1
- import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DvzbSivn.js";
1
+ import { G as _usingCtx, T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-DoPnZHn_.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-BTccWbtE.js";
3
3
  import { r as toVec3 } from "./types-CKXsIm9-.js";
4
4
  import { c as vecLength, t as vecAdd } from "./vecOps-S-m9H_fe.js";
@@ -1,7 +1,7 @@
1
- import { q as getKernel } from "./shapeTypes-DvzbSivn.js";
1
+ import { q as getKernel } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
3
- import { E as kernelCallRaw } from "./topologyQueryFns-BUzMuIs5.js";
4
- import { m as uvBounds } from "./faceFns-D4cDeMRf.js";
3
+ import { E as kernelCallRaw } from "./topologyQueryFns-yOGEI9hO.js";
4
+ import { m as uvBounds } from "./faceFns-2jGPfqvB.js";
5
5
  // 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--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
4
- const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BUhKY2Kj.cjs");
4
+ const require_faceFns = require("./faceFns-Jo9hMVqL.cjs");
5
5
  // src/measurement/measureCache.ts
6
6
  var cache = /* @__PURE__ */ new WeakMap();
7
7
  function getCachedMeasurement(shape, key) {
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_measureFns = require("./measureFns-DGm6ndQY.cjs");
3
- const require_principalBoxFns = require("./principalBoxFns-B5zdek3y.cjs");
2
+ const require_measureFns = require("./measureFns-R85865k9.cjs");
3
+ const require_principalBoxFns = require("./principalBoxFns-DepJW5im.cjs");
4
4
  exports.createDistanceQuery = require_measureFns.createDistanceQuery;
5
5
  exports.measureArea = require_measureFns.measureArea;
6
6
  exports.measureDistance = require_measureFns.measureDistance;
@@ -1,3 +1,3 @@
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-C3TZ5Fj9.js";
2
- import { t as principalBoundingBox } from "./principalBoxFns-BuK-ueAB.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-D3egqKcW.js";
2
+ import { t as principalBoundingBox } from "./principalBoxFns-BgetPvvQ.js";
3
3
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, principalBoundingBox };
@@ -1,8 +1,8 @@
1
- import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-DvzbSivn.js";
2
- import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-EM3EhKwk.js";
1
+ import { q as getKernel, ut as qualityDeflection } from "./shapeTypes-DoPnZHn_.js";
2
+ import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-C-Qi-jxS.js";
3
3
  import { E as ok, g as err, r as ioError, t as BrepErrorCode, u as unsupportedError } from "./errors-BTccWbtE.js";
4
- import { d as getSolids, n as getBounds } from "./topologyQueryFns-BUzMuIs5.js";
5
- import { d as getFaceOrigins } from "./solidBuilders-BqSVC4cB.js";
4
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-yOGEI9hO.js";
5
+ import { d as getFaceOrigins } from "./solidBuilders-ZDGdvaTU.js";
6
6
  // src/topology/meshCache.ts
7
7
  /**
8
8
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
2
- const require_occtWasmAdapter = require("./occtWasmAdapter-CZPZnpCe.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
+ const require_occtWasmAdapter = require("./occtWasmAdapter-BK--kx4R.cjs");
3
3
  const require_errors = require("./errors-O_blYTWT.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
5
- const require_solidBuilders = require("./solidBuilders-D0bIZX9K.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-BUhKY2Kj.cjs");
5
+ const require_solidBuilders = require("./solidBuilders-Dwm0hXn5.cjs");
6
6
  // src/topology/meshCache.ts
7
7
  /**
8
8
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -2350,6 +2350,9 @@ function draftAnglesRad(faces, angleDeg) {
2350
2350
  function needsOcctWasm59(what) {
2351
2351
  return new UnsupportedKernelOperationError(`occt-wasm: ${what} requires occt-wasm >= 5.9.0`);
2352
2352
  }
2353
+ function needsOcctWasm510(what) {
2354
+ return new UnsupportedKernelOperationError(`occt-wasm: ${what} requires occt-wasm >= 5.10.0`);
2355
+ }
2353
2356
  /**
2354
2357
  * Rotate a shape from the kernel's default Z-axis to an arbitrary direction.
2355
2358
  * Used by primitives whose creation API only takes a Z-aligned form.
@@ -3812,14 +3815,21 @@ function chamfer(k, Module, shape, edges, distance) {
3812
3815
  faceVec.delete();
3813
3816
  }
3814
3817
  }
3815
- function chamferDistAngle(k, Module, shape, edges, distance, angleDeg) {
3818
+ /**
3819
+ * Chamfer edge i by `distances[i]` and `anglesDeg[i]`. Builds without the
3820
+ * per-edge entry point take only `shared`, the one value every edge has.
3821
+ */
3822
+ function runChamferDistAngles(k, Module, shape, edges, distances, anglesDeg, shared) {
3816
3823
  const id = unwrap(shape);
3817
3824
  const edgeVec = makeVecU32(Module, edges.map(unwrap));
3818
3825
  try {
3819
- if (!k.chamferDistAngles) return wrapResult(k, k.chamferDistAngle(id, edgeVec, distance, angleDeg));
3826
+ if (!k.chamferDistAngles) {
3827
+ if (!shared) throw needsOcctWasm59("per-edge distance-angle chamfers");
3828
+ return wrapResult(k, k.chamferDistAngle(id, edgeVec, shared.distance, shared.angleDeg));
3829
+ }
3820
3830
  const chamferDistAngles = k.chamferDistAngles.bind(k);
3821
- const distanceVec = makeVecDouble(Module, Array(edges.length).fill(distance));
3822
- const angleVec = makeVecDouble(Module, Array(edges.length).fill(angleDeg));
3831
+ const distanceVec = makeVecDouble(Module, distances);
3832
+ const angleVec = makeVecDouble(Module, anglesDeg);
3823
3833
  const faceVec = makeVecU32(Module, []);
3824
3834
  try {
3825
3835
  return wrapResult(k, reportingFaultyEdges(edges, () => chamferDistAngles(id, edgeVec, distanceVec, angleVec, faceVec)));
@@ -3832,6 +3842,21 @@ function chamferDistAngle(k, Module, shape, edges, distance, angleDeg) {
3832
3842
  edgeVec.delete();
3833
3843
  }
3834
3844
  }
3845
+ function chamferDistAngle(k, Module, shape, edges, distance, angleDeg) {
3846
+ return runChamferDistAngles(k, Module, shape, edges, Array(edges.length).fill(distance), Array(edges.length).fill(angleDeg), {
3847
+ distance,
3848
+ angleDeg
3849
+ });
3850
+ }
3851
+ /** The distance and angle every edge takes, or `undefined` when they differ. */
3852
+ function sharedDistAngle(entries) {
3853
+ const [first] = entries;
3854
+ if (first === void 0) return void 0;
3855
+ return entries.every((e) => e.distance === first.distance && e.angleDeg === first.angleDeg) ? first : void 0;
3856
+ }
3857
+ function chamferDistAngles(k, Module, shape, entries) {
3858
+ return runChamferDistAngles(k, Module, shape, entries.map((e) => e.edge), entries.map((e) => e.distance), entries.map((e) => e.angleDeg), sharedDistAngle(entries));
3859
+ }
3835
3860
  function shell(k, Module, shape, faces, thickness, tolerance) {
3836
3861
  const vec = makeVecU32(Module, faces.map(unwrap));
3837
3862
  try {
@@ -4579,6 +4604,17 @@ var MM_PER_UNIT = {
4579
4604
  uin: 254e-7,
4580
4605
  microinch: 254e-7
4581
4606
  };
4607
+ var STEP_SCHEMAS = {
4608
+ 203: "AP203",
4609
+ 214: "AP214",
4610
+ 242: "AP242"
4611
+ };
4612
+ function stepSchemaName(schema) {
4613
+ if (schema === void 0) return "";
4614
+ const name = STEP_SCHEMAS[schema];
4615
+ if (name === void 0) throw new Error(`occt-wasm: unknown STEP schema ${schema} (expected 203, 214, or 242)`);
4616
+ return name;
4617
+ }
4582
4618
  function mmPerUnit(unit) {
4583
4619
  const mm = MM_PER_UNIT[unit.toLowerCase()];
4584
4620
  if (mm === void 0) throw new Error(`occt-wasm: unknown STEP length unit '${unit}'`);
@@ -4594,14 +4630,17 @@ function resolveStepUnits(options) {
4594
4630
  const write = options?.unit ?? options?.modelUnit ?? "mm";
4595
4631
  return {
4596
4632
  write,
4597
- modelScale: mmPerUnit(options?.modelUnit ?? write)
4633
+ modelScale: mmPerUnit(options?.modelUnit ?? write),
4634
+ schema: stepSchemaName(options?.schema)
4598
4635
  };
4599
4636
  }
4600
- /**
4601
- * The writer for `units`: the 5.9 unit-aware one, else the millimeter-only
4602
- * one when the file is in millimeters anyway.
4603
- */
4604
- function stepWriter(withUnit, inMillimeters, units) {
4637
+ /** The newest writer `units` needs, else an error naming the occt-wasm release that has it. */
4638
+ function stepWriter(writers, units) {
4639
+ const { withOptions, withUnit, inMillimeters } = writers;
4640
+ if (units.schema) {
4641
+ if (!withOptions) throw needsOcctWasm510(`STEP export as ${units.schema}`);
4642
+ return (id) => withOptions(id, units.write, units.schema);
4643
+ }
4605
4644
  if (withUnit) return (id) => withUnit(id, units.write);
4606
4645
  if (mmPerUnit(units.write) === 1) return inMillimeters;
4607
4646
  throw needsOcctWasm59(`STEP export in '${units.write}'`);
@@ -4618,7 +4657,11 @@ function withScaled(k, id, factor, use) {
4618
4657
  }
4619
4658
  /** One STEP file holding every shape (as a compound when there are several). */
4620
4659
  function writeStepShapes(k, makeCompound, shapes, units) {
4621
- const write = stepWriter(k.exportStepWithUnit?.bind(k), (id) => k.exportStep(id), units);
4660
+ const write = stepWriter({
4661
+ withOptions: k.exportStepWithOptions?.bind(k),
4662
+ withUnit: k.exportStepWithUnit?.bind(k),
4663
+ inMillimeters: (id) => k.exportStep(id)
4664
+ }, units);
4622
4665
  if (shapes.length === 1) return withScaled(k, unwrap(shapes[0]), units.modelScale, write);
4623
4666
  const compoundId = unwrap(makeCompound(shapes));
4624
4667
  try {
@@ -4812,7 +4855,11 @@ function writeXcafDoc(k, docId, units) {
4812
4855
  } finally {
4813
4856
  roots.delete();
4814
4857
  }
4815
- return stepWriter(k.xcafExportSTEPWithUnit?.bind(k), (id) => k.xcafExportSTEP(id), units)(docId);
4858
+ return stepWriter({
4859
+ withOptions: k.xcafExportSTEPWithOptions?.bind(k),
4860
+ withUnit: k.xcafExportSTEPWithUnit?.bind(k),
4861
+ inMillimeters: (id) => k.xcafExportSTEP(id)
4862
+ }, units)(docId);
4816
4863
  }
4817
4864
  /** Write `parts` as one XCAF STEP file, scaling each into millimeters first if needed. */
4818
4865
  function writeXcafParts(k, parts, units) {
@@ -6566,6 +6613,9 @@ var OcctWasmAdapter = class OcctWasmAdapter {
6566
6613
  chamferDistAngle(shape, edges, distance, angleDeg) {
6567
6614
  return chamferDistAngle(this.k, this.Module, shape, edges, distance, angleDeg);
6568
6615
  }
6616
+ chamferDistAngles(shape, edges) {
6617
+ return chamferDistAngles(this.k, this.Module, shape, edges);
6618
+ }
6569
6619
  shell(shape, faces, thickness, tolerance) {
6570
6620
  return shell(this.k, this.Module, shape, faces, thickness, tolerance);
6571
6621
  }
@@ -2350,6 +2350,9 @@ function draftAnglesRad(faces, angleDeg) {
2350
2350
  function needsOcctWasm59(what) {
2351
2351
  return new UnsupportedKernelOperationError(`occt-wasm: ${what} requires occt-wasm >= 5.9.0`);
2352
2352
  }
2353
+ function needsOcctWasm510(what) {
2354
+ return new UnsupportedKernelOperationError(`occt-wasm: ${what} requires occt-wasm >= 5.10.0`);
2355
+ }
2353
2356
  /**
2354
2357
  * Rotate a shape from the kernel's default Z-axis to an arbitrary direction.
2355
2358
  * Used by primitives whose creation API only takes a Z-aligned form.
@@ -3812,14 +3815,21 @@ function chamfer(k, Module, shape, edges, distance) {
3812
3815
  faceVec.delete();
3813
3816
  }
3814
3817
  }
3815
- function chamferDistAngle(k, Module, shape, edges, distance, angleDeg) {
3818
+ /**
3819
+ * Chamfer edge i by `distances[i]` and `anglesDeg[i]`. Builds without the
3820
+ * per-edge entry point take only `shared`, the one value every edge has.
3821
+ */
3822
+ function runChamferDistAngles(k, Module, shape, edges, distances, anglesDeg, shared) {
3816
3823
  const id = unwrap(shape);
3817
3824
  const edgeVec = makeVecU32(Module, edges.map(unwrap));
3818
3825
  try {
3819
- if (!k.chamferDistAngles) return wrapResult(k, k.chamferDistAngle(id, edgeVec, distance, angleDeg));
3826
+ if (!k.chamferDistAngles) {
3827
+ if (!shared) throw needsOcctWasm59("per-edge distance-angle chamfers");
3828
+ return wrapResult(k, k.chamferDistAngle(id, edgeVec, shared.distance, shared.angleDeg));
3829
+ }
3820
3830
  const chamferDistAngles = k.chamferDistAngles.bind(k);
3821
- const distanceVec = makeVecDouble(Module, Array(edges.length).fill(distance));
3822
- const angleVec = makeVecDouble(Module, Array(edges.length).fill(angleDeg));
3831
+ const distanceVec = makeVecDouble(Module, distances);
3832
+ const angleVec = makeVecDouble(Module, anglesDeg);
3823
3833
  const faceVec = makeVecU32(Module, []);
3824
3834
  try {
3825
3835
  return wrapResult(k, reportingFaultyEdges(edges, () => chamferDistAngles(id, edgeVec, distanceVec, angleVec, faceVec)));
@@ -3832,6 +3842,21 @@ function chamferDistAngle(k, Module, shape, edges, distance, angleDeg) {
3832
3842
  edgeVec.delete();
3833
3843
  }
3834
3844
  }
3845
+ function chamferDistAngle(k, Module, shape, edges, distance, angleDeg) {
3846
+ return runChamferDistAngles(k, Module, shape, edges, Array(edges.length).fill(distance), Array(edges.length).fill(angleDeg), {
3847
+ distance,
3848
+ angleDeg
3849
+ });
3850
+ }
3851
+ /** The distance and angle every edge takes, or `undefined` when they differ. */
3852
+ function sharedDistAngle(entries) {
3853
+ const [first] = entries;
3854
+ if (first === void 0) return void 0;
3855
+ return entries.every((e) => e.distance === first.distance && e.angleDeg === first.angleDeg) ? first : void 0;
3856
+ }
3857
+ function chamferDistAngles(k, Module, shape, entries) {
3858
+ return runChamferDistAngles(k, Module, shape, entries.map((e) => e.edge), entries.map((e) => e.distance), entries.map((e) => e.angleDeg), sharedDistAngle(entries));
3859
+ }
3835
3860
  function shell(k, Module, shape, faces, thickness, tolerance) {
3836
3861
  const vec = makeVecU32(Module, faces.map(unwrap));
3837
3862
  try {
@@ -4579,6 +4604,17 @@ var MM_PER_UNIT = {
4579
4604
  uin: 254e-7,
4580
4605
  microinch: 254e-7
4581
4606
  };
4607
+ var STEP_SCHEMAS = {
4608
+ 203: "AP203",
4609
+ 214: "AP214",
4610
+ 242: "AP242"
4611
+ };
4612
+ function stepSchemaName(schema) {
4613
+ if (schema === void 0) return "";
4614
+ const name = STEP_SCHEMAS[schema];
4615
+ if (name === void 0) throw new Error(`occt-wasm: unknown STEP schema ${schema} (expected 203, 214, or 242)`);
4616
+ return name;
4617
+ }
4582
4618
  function mmPerUnit(unit) {
4583
4619
  const mm = MM_PER_UNIT[unit.toLowerCase()];
4584
4620
  if (mm === void 0) throw new Error(`occt-wasm: unknown STEP length unit '${unit}'`);
@@ -4594,14 +4630,17 @@ function resolveStepUnits(options) {
4594
4630
  const write = options?.unit ?? options?.modelUnit ?? "mm";
4595
4631
  return {
4596
4632
  write,
4597
- modelScale: mmPerUnit(options?.modelUnit ?? write)
4633
+ modelScale: mmPerUnit(options?.modelUnit ?? write),
4634
+ schema: stepSchemaName(options?.schema)
4598
4635
  };
4599
4636
  }
4600
- /**
4601
- * The writer for `units`: the 5.9 unit-aware one, else the millimeter-only
4602
- * one when the file is in millimeters anyway.
4603
- */
4604
- function stepWriter(withUnit, inMillimeters, units) {
4637
+ /** The newest writer `units` needs, else an error naming the occt-wasm release that has it. */
4638
+ function stepWriter(writers, units) {
4639
+ const { withOptions, withUnit, inMillimeters } = writers;
4640
+ if (units.schema) {
4641
+ if (!withOptions) throw needsOcctWasm510(`STEP export as ${units.schema}`);
4642
+ return (id) => withOptions(id, units.write, units.schema);
4643
+ }
4605
4644
  if (withUnit) return (id) => withUnit(id, units.write);
4606
4645
  if (mmPerUnit(units.write) === 1) return inMillimeters;
4607
4646
  throw needsOcctWasm59(`STEP export in '${units.write}'`);
@@ -4618,7 +4657,11 @@ function withScaled(k, id, factor, use) {
4618
4657
  }
4619
4658
  /** One STEP file holding every shape (as a compound when there are several). */
4620
4659
  function writeStepShapes(k, makeCompound, shapes, units) {
4621
- const write = stepWriter(k.exportStepWithUnit?.bind(k), (id) => k.exportStep(id), units);
4660
+ const write = stepWriter({
4661
+ withOptions: k.exportStepWithOptions?.bind(k),
4662
+ withUnit: k.exportStepWithUnit?.bind(k),
4663
+ inMillimeters: (id) => k.exportStep(id)
4664
+ }, units);
4622
4665
  if (shapes.length === 1) return withScaled(k, unwrap(shapes[0]), units.modelScale, write);
4623
4666
  const compoundId = unwrap(makeCompound(shapes));
4624
4667
  try {
@@ -4812,7 +4855,11 @@ function writeXcafDoc(k, docId, units) {
4812
4855
  } finally {
4813
4856
  roots.delete();
4814
4857
  }
4815
- return stepWriter(k.xcafExportSTEPWithUnit?.bind(k), (id) => k.xcafExportSTEP(id), units)(docId);
4858
+ return stepWriter({
4859
+ withOptions: k.xcafExportSTEPWithOptions?.bind(k),
4860
+ withUnit: k.xcafExportSTEPWithUnit?.bind(k),
4861
+ inMillimeters: (id) => k.xcafExportSTEP(id)
4862
+ }, units)(docId);
4816
4863
  }
4817
4864
  /** Write `parts` as one XCAF STEP file, scaling each into millimeters first if needed. */
4818
4865
  function writeXcafParts(k, parts, units) {
@@ -6566,6 +6613,9 @@ var OcctWasmAdapter = class OcctWasmAdapter {
6566
6613
  chamferDistAngle(shape, edges, distance, angleDeg) {
6567
6614
  return chamferDistAngle(this.k, this.Module, shape, edges, distance, angleDeg);
6568
6615
  }
6616
+ chamferDistAngles(shape, edges) {
6617
+ return chamferDistAngles(this.k, this.Module, shape, edges);
6618
+ }
6569
6619
  shell(shape, faces, thickness, tolerance) {
6570
6620
  return shell(this.k, this.Module, shape, faces, thickness, tolerance);
6571
6621
  }
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-e8_26ZYw.cjs");
3
- const require_loftFns = require("./loftFns-T0GxcPlB.cjs");
2
+ const require_threadFns = require("./threadFns-DNFoBBrH.cjs");
3
+ const require_loftFns = require("./loftFns-CnerVgTM.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-CmZFykpi.js";
2
- import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-Bh_RuF7a.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-CEr8JDsu.js";
2
+ import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-jnQL_zpD.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
- import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-DvzbSivn.js";
1
+ import { E as GeometryCleanupError, G as _usingCtx, d as createSolid, n as castResultShape, q as getKernel } from "./shapeTypes-DoPnZHn_.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-CdY06B8c.js";
3
+ import { n as isClosedWire } from "./validityTypes-CGrEOscY.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-BqSVC4cB.js";
7
- import { d as collectInputFaceHashes, f as hasAnyMetadata, h as propagateMetadataThroughRelocation, m as propagateMetadataByHash, p as propagateAllMetadata } from "./booleanFns-CKDyqKz0.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--HOoTQad.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-ZDGdvaTU.js";
7
+ import { d as collectInputFaceHashes, f as hasAnyMetadata, h as propagateMetadataThroughRelocation, m as propagateMetadataByHash, p as propagateAllMetadata } from "./booleanFns-BwzBRGqj.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-BBs6D6Km.js";
9
9
  // src/topology/transformFns.ts
10
10
  /**
11
11
  * Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_validityTypes = require("./validityTypes-Ds4zNICF.cjs");
3
+ const require_validityTypes = require("./validityTypes-lfyOkCQm.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-D0bIZX9K.cjs");
7
- const require_booleanFns = require("./booleanFns-C640CeaY.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-CPQHyL_5.cjs");
6
+ const require_solidBuilders = require("./solidBuilders-Dwm0hXn5.cjs");
7
+ const require_booleanFns = require("./booleanFns-D0qfjH0a.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-D5kFAV1i.cjs");
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-DvzbSivn.js";
1
+ import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-DoPnZHn_.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, S as subShapeCount } from "./topologyQueryFns-BUzMuIs5.js";
4
+ import { E as kernelCallRaw, S as subShapeCount } from "./topologyQueryFns-yOGEI9hO.js";
5
5
  import { r as vecCross } from "./vecOps-S-m9H_fe.js";
6
- import { f as getCachedMeasurement, p as setCachedMeasurement } from "./measureFns-C3TZ5Fj9.js";
6
+ import { f as getCachedMeasurement, p as setCachedMeasurement } from "./measureFns-D3egqKcW.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--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.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-NszVx8a0.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-BUhKY2Kj.cjs");
5
5
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
6
- const require_measureFns = require("./measureFns-DGm6ndQY.cjs");
6
+ const require_measureFns = require("./measureFns-R85865k9.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-hXUKJkLg.cjs");
2
+ const require_cameraFns = require("./cameraFns-B9xKg36U.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-DIbua1lC.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-CLkNCsYU.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-Wnq-YPWv.cjs");
3
- const require_cornerFinder = require("./cornerFinder-ByBGU0r7.cjs");
2
+ const require_helpers = require("./helpers-BvYkHZK7.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-Da8Dv4bp.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-CroIo2SI.js";
2
- import { t as cornerFinder } from "./cornerFinder-BYDkloVc.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CsHdKbfF.js";
2
+ import { t as cornerFinder } from "./cornerFinder-CeyQ5JMA.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,10 +1,10 @@
1
- import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-DvzbSivn.js";
2
- import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-BUzMuIs5.js";
3
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-D4cDeMRf.js";
1
+ import { g as disposeTransientSubShape, o as castShapeWithKnownType, q as getKernel } from "./shapeTypes-DoPnZHn_.js";
2
+ import { c as getFaces, w as vertexPosition } from "./topologyQueryFns-yOGEI9hO.js";
3
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-2jGPfqvB.js";
4
4
  import { t as getFaceRoles } from "./faceRoleFns-BPxzQF-n.js";
5
- import { n as getHashCode } from "./shapeFns-CYjU8PsF.js";
6
- import { n as measureArea, s as measureLength } from "./measureFns-C3TZ5Fj9.js";
7
- import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-1Cmjb2ot.js";
5
+ import { n as getHashCode } from "./shapeFns-kFm-m8jh.js";
6
+ import { n as measureArea, s as measureLength } from "./measureFns-D3egqKcW.js";
7
+ import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-DfPO5LGP.js";
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
- const require_shapeTypes = require("./shapeTypes--7XBFlOD.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
3
- const require_faceFns = require("./faceFns-BDqVGEoB.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-BUhKY2Kj.cjs");
3
+ const require_faceFns = require("./faceFns-Jo9hMVqL.cjs");
4
4
  const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
5
- const require_shapeFns = require("./shapeFns-DuxfaqTw.cjs");
6
- const require_measureFns = require("./measureFns-DGm6ndQY.cjs");
7
- const require_adjacencyFns = require("./adjacencyFns-CfhGIMeR.cjs");
5
+ const require_shapeFns = require("./shapeFns-D47cmLG8.cjs");
6
+ const require_measureFns = require("./measureFns-R85865k9.cjs");
7
+ const require_adjacencyFns = require("./adjacencyFns-DSGyqGyy.cjs");
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--7XBFlOD.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-C06KHgTm.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-NszVx8a0.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-BUhKY2Kj.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-DvzbSivn.js";
1
+ import { q as getKernel } from "./shapeTypes-DoPnZHn_.js";
2
2
  import { t as BrepErrorCode } from "./errors-BTccWbtE.js";
3
- import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-BUzMuIs5.js";
3
+ import { E as kernelCallRaw, T as kernelCall } from "./topologyQueryFns-yOGEI9hO.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-CFwsYCKA.cjs");
2
+ const require_refResolveFns = require("./refResolveFns-DpWvqRm0.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-WRcvVhV-.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-Bl10yOGJ.js";
@@ -1,4 +1,4 @@
1
- const require_occtWasmAdapter = require("./occtWasmAdapter-CZPZnpCe.cjs");
1
+ const require_occtWasmAdapter = require("./occtWasmAdapter-BK--kx4R.cjs");
2
2
  const require_bug = require("./bug-CBcpIPuf.cjs");
3
3
  // src/kernel/quality.ts
4
4
  /**