brepjs 18.164.2 → 19.0.0

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 +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-DvYytSi6.js → adjacencyFns-Cuqqg_9C.js} +3 -3
  4. package/dist/{adjacencyFns-BwfvEmcQ.cjs → adjacencyFns-D1sYXJUk.cjs} +3 -3
  5. package/dist/{blueprint-De_1NIvL.js → blueprint-BeuiC2jB.js} +5 -5
  6. package/dist/{blueprint-DrwWyLpF.cjs → blueprint-DbMLINgb.cjs} +5 -5
  7. package/dist/{blueprintFns-Drsn_BwM.cjs → blueprintFns-CtpFK_Qe.cjs} +2 -2
  8. package/dist/{blueprintFns-CMJL12NN.js → blueprintFns-JT9_SPeA.js} +2 -2
  9. package/dist/{blueprintSketcher-4TJDOYi4.cjs → blueprintSketcher-Dedw15H1.cjs} +3 -3
  10. package/dist/{blueprintSketcher-BVPo_PXC.js → blueprintSketcher-Dr5-ITBw.js} +3 -3
  11. package/dist/{boolean2D-BKVZV7Qw.js → boolean2D-D1EzLW3j.js} +4 -4
  12. package/dist/{boolean2D-CfzEFHWx.cjs → boolean2D-Dktt8ed6.cjs} +4 -4
  13. package/dist/brepjs.cjs +29 -29
  14. package/dist/brepjs.js +29 -29
  15. package/dist/{cameraFns-bdXEtNRU.cjs → cameraFns-CKl-ZLoM.cjs} +3 -3
  16. package/dist/{cameraFns-JOFrRrSB.js → cameraFns-D59FeXIj.js} +3 -3
  17. package/dist/core.cjs +2 -2
  18. package/dist/core.js +2 -2
  19. package/dist/{cornerFinder-Clq3J667.cjs → cornerFinder-CLEHlBMf.cjs} +1 -1
  20. package/dist/{cornerFinder-CsNx6c9v.js → cornerFinder-Cq-kBDcR.js} +1 -1
  21. package/dist/{curveFns-B8MzlHk0.js → curveFns-CIyfCLCt.js} +1 -1
  22. package/dist/{curveFns-CdCtUdJ4.cjs → curveFns-DXMlN84x.cjs} +1 -1
  23. package/dist/{drawFns-IHowEJB2.cjs → drawFns-BaGbMy6K.cjs} +12 -12
  24. package/dist/{drawFns-DCv0zYTs.js → drawFns-Dr9iCrbh.js} +12 -12
  25. package/dist/{faceFns-DFSmtFLh.js → faceFns-2wV1msnQ.js} +2 -2
  26. package/dist/{faceFns-CCxaniT2.cjs → faceFns-qnvwgyaw.cjs} +2 -2
  27. package/dist/{healingFns-Cxuvi54i.cjs → healingFns-BSHqLCOx.cjs} +4 -4
  28. package/dist/{healingFns-CZcq-g-n.js → healingFns-J_O-YEpl.js} +4 -4
  29. package/dist/{helpers-AkXo1j_Q.js → helpers-DHU9mCM7.js} +6 -6
  30. package/dist/{helpers-D-cEv-pl.cjs → helpers-YWE4RECX.cjs} +6 -6
  31. package/dist/{importFns-Bn4kj3dX.js → importFns-BHmZYBBq.js} +2 -2
  32. package/dist/{importFns-CDK---eY.cjs → importFns-DF9TqvQt.cjs} +2 -2
  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/kernel/occtWasm/transformOps.d.ts +1 -1
  38. package/dist/{loftFns-DsuYYlLP.cjs → loftFns-B9-6-lOQ.cjs} +1 -1
  39. package/dist/{loftFns-DoKqe4ab.js → loftFns-qB9Ek9-L.js} +1 -1
  40. package/dist/{measureFns-B4tUFMP3.js → measureFns-CCd5bBnv.js} +3 -3
  41. package/dist/{measureFns-Bx4-E_b0.cjs → measureFns-DU8x4zPn.cjs} +3 -3
  42. package/dist/measurement.cjs +1 -1
  43. package/dist/measurement.js +1 -1
  44. package/dist/{meshFns-CZXk_FaF.cjs → meshFns-DkMiqcvB.cjs} +3 -3
  45. package/dist/{meshFns-DvtffmBJ.js → meshFns-DvDybgNn.js} +3 -3
  46. package/dist/{occtWasmAdapter-Cu1SW10s.js → occtWasmAdapter-CIc9I87_.js} +2 -2
  47. package/dist/{occtWasmAdapter-BnMFWwNp.cjs → occtWasmAdapter-y21xnRNM.cjs} +2 -2
  48. package/dist/operations.cjs +2 -2
  49. package/dist/operations.js +2 -2
  50. package/dist/{originTrackingFns-CGZxTHpu.cjs → originTrackingFns-Bm7CD2oW.cjs} +2 -2
  51. package/dist/{originTrackingFns-CrPV6BAg.js → originTrackingFns-j2je8lQv.js} +2 -2
  52. package/dist/{primitiveFns-C_4Qyu1n.cjs → primitiveFns-C-rBAvgV.cjs} +19 -10
  53. package/dist/{primitiveFns-Qw00RMg9.js → primitiveFns-itCYAzxU.js} +19 -10
  54. package/dist/projection.cjs +1 -1
  55. package/dist/projection.js +1 -1
  56. package/dist/query.cjs +2 -2
  57. package/dist/query.js +2 -2
  58. package/dist/{refResolveFns-D4bbfaX9.cjs → refResolveFns-CxIokx3w.cjs} +6 -6
  59. package/dist/{refResolveFns-AOBikNwT.js → refResolveFns-DTZoqjRs.js} +6 -6
  60. package/dist/{shapeFns-Dfzoou1k.js → shapeFns-B_GAp2z3.js} +2 -2
  61. package/dist/{shapeFns-DUjU0qe5.cjs → shapeFns-FzE1ivNh.cjs} +2 -2
  62. package/dist/shapeRef.cjs +1 -1
  63. package/dist/shapeRef.js +1 -1
  64. package/dist/{shapeTypes-Dws97v0n.js → shapeTypes-CIMiWenj.js} +1 -1
  65. package/dist/{shapeTypes-vUF6yWQf.cjs → shapeTypes-DZZldFUS.cjs} +1 -1
  66. package/dist/sketching.cjs +3 -3
  67. package/dist/sketching.js +3 -3
  68. package/dist/{solidBuilders-K2znhlSj.js → solidBuilders-DKwoY2nP.js} +5 -5
  69. package/dist/{solidBuilders-CKZE8v-n.cjs → solidBuilders-x5Bz2ELQ.cjs} +5 -5
  70. package/dist/{surfaceBuilders-CEZaodTC.cjs → surfaceBuilders-B9llhfrz.cjs} +3 -3
  71. package/dist/{surfaceBuilders-Da5eXRvz.js → surfaceBuilders-CHfC8AUd.js} +3 -3
  72. package/dist/text.cjs +2 -2
  73. package/dist/text.js +2 -2
  74. package/dist/{textBlueprints-BaZWs0Yr.js → textBlueprints-B3cJhqsf.js} +7 -7
  75. package/dist/{textBlueprints-DLvh2p6f.cjs → textBlueprints-D6csroh5.cjs} +7 -7
  76. package/dist/{textMetrics-C5hp859Y.js → textMetrics-B_Js6IoN.js} +1 -1
  77. package/dist/{textMetrics-EHMzeJ4l.cjs → textMetrics-sApnOuwi.cjs} +1 -1
  78. package/dist/{threadFns-CjoiERQs.cjs → threadFns-52YHK9wK.cjs} +7 -7
  79. package/dist/{threadFns-WZYYCvJw.js → threadFns-iR-yK8rr.js} +7 -7
  80. package/dist/topology.cjs +9 -9
  81. package/dist/topology.js +9 -9
  82. package/dist/{topologyQueryFns-DrHcZI0R.cjs → topologyQueryFns-DYslfber.cjs} +1 -1
  83. package/dist/{topologyQueryFns-Y54_bj3M.js → topologyQueryFns-Dp_LqPFF.js} +1 -1
  84. package/dist/{validityTypes-51-mt64A.cjs → validityTypes-BYnGyL8L.cjs} +1 -1
  85. package/dist/{validityTypes-DL-4TcAg.js → validityTypes-BqJb23o4.js} +1 -1
  86. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { K as getKernel, y as isFace } from "./shapeTypes-Dws97v0n.js";
1
+ import { K as getKernel, y as isFace } from "./shapeTypes-CIMiWenj.js";
2
2
  import { E as ok, g as err, o as queryError, x as isOk } from "./errors-CTn8i3lY.js";
3
- import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-Y54_bj3M.js";
3
+ import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-Dp_LqPFF.js";
4
4
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
6
- import { l as normalAt, s as getSurfaceType } from "./faceFns-DFSmtFLh.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-Dfzoou1k.js";
8
- import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-B8MzlHk0.js";
9
- import { n as measureArea } from "./measureFns-B4tUFMP3.js";
6
+ import { l as normalAt, s as getSurfaceType } from "./faceFns-2wV1msnQ.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-B_GAp2z3.js";
8
+ import { f as getCurveType, i as curveIsClosed, o as curveLength } from "./curveFns-CIyfCLCt.js";
9
+ import { n as measureArea } from "./measureFns-CCd5bBnv.js";
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DrHcZI0R.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-DYslfber.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
- const require_faceFns = require("./faceFns-CCxaniT2.cjs");
7
- const require_shapeFns = require("./shapeFns-DUjU0qe5.cjs");
8
- const require_curveFns = require("./curveFns-CdCtUdJ4.cjs");
9
- const require_measureFns = require("./measureFns-Bx4-E_b0.cjs");
6
+ const require_faceFns = require("./faceFns-qnvwgyaw.cjs");
7
+ const require_shapeFns = require("./shapeFns-FzE1ivNh.cjs");
8
+ const require_curveFns = require("./curveFns-DXMlN84x.cjs");
9
+ const require_measureFns = require("./measureFns-DU8x4zPn.cjs");
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,8 +1,8 @@
1
- import { K as getKernel, n as castResultShape } from "./shapeTypes-Dws97v0n.js";
1
+ import { K as getKernel, n as castResultShape } from "./shapeTypes-CIMiWenj.js";
2
2
  import { i as wasmIndex, r as vec3At$1 } from "./bug-BdOHwn_e.js";
3
3
  import { E as ok, g as err, r as ioError, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
4
4
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
5
- import { c as make2dBezierCurve, h as make2dThreePointArc, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-De_1NIvL.js";
5
+ import { c as make2dBezierCurve, h as make2dThreePointArc, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-BeuiC2jB.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-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_bug = require("./bug-O02CsAmt.cjs");
3
3
  const require_errors = require("./errors-DWezb9DI.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-DrwWyLpF.cjs");
5
+ const require_blueprint = require("./blueprint-DbMLINgb.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-CZXk_FaF.cjs");
3
- const require_importFns = require("./importFns-CDK---eY.cjs");
2
+ const require_meshFns = require("./meshFns-DkMiqcvB.cjs");
3
+ const require_importFns = require("./importFns-DF9TqvQt.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-DvtffmBJ.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-Bn4kj3dX.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-DvDybgNn.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-BHmZYBBq.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_occtWasmAdapter = require("../../occtWasmAdapter-BnMFWwNp.cjs");
2
+ const require_occtWasmAdapter = require("../../occtWasmAdapter-y21xnRNM.cjs");
3
3
  exports.OcctWasmAdapter = require_occtWasmAdapter.OcctWasmAdapter;
@@ -1,2 +1,2 @@
1
- import { t as OcctWasmAdapter } from "../../occtWasmAdapter-Cu1SW10s.js";
1
+ import { t as OcctWasmAdapter } from "../../occtWasmAdapter-CIc9I87_.js";
2
2
  export { OcctWasmAdapter };
@@ -27,7 +27,7 @@ export declare function translate(k: OcctKernelWasm, shape: KernelShape, x: numb
27
27
  export declare function rotate(k: OcctKernelWasm, shape: KernelShape, angle: number, axis?: readonly [number, number, number], center?: readonly [number, number, number]): KernelShape;
28
28
  export declare function mirror(k: OcctKernelWasm, shape: KernelShape, origin: readonly [number, number, number], normal: readonly [number, number, number]): KernelShape;
29
29
  export declare function scale(k: OcctKernelWasm, shape: KernelShape, center: readonly [number, number, number], factor: number): KernelShape;
30
- export declare function generalTransform(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, linear: readonly [number, number, number, number, number, number, number, number, number], translation: readonly [number, number, number], _isOrthogonal: boolean): KernelShape;
30
+ export declare function generalTransform(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, linear: readonly [number, number, number, number, number, number, number, number, number], translation: readonly [number, number, number], isOrthogonal: boolean): KernelShape;
31
31
  export declare function positionOnCurve(k: OcctKernelWasm, Module: OcctWasmModule, shape: KernelShape, spine: KernelShape, param: number): KernelShape;
32
32
  export declare function linearPattern(k: OcctKernelWasm, shape: KernelShape, direction: [number, number, number], spacing: number, count: number): KernelShape[];
33
33
  export declare function circularPattern(k: OcctKernelWasm, shape: KernelShape, center: [number, number, number], axis: [number, number, number], angleStep: number, count: number): KernelShape[];
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
3
  const require_types = require("./types-KjA8tY4Y.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
@@ -1,4 +1,4 @@
1
- import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-Dws97v0n.js";
1
+ import { K as getKernel, T as isWire, W as _usingCtx, h as disposeResultShape, n as castResultShape, x as isShape3D } from "./shapeTypes-CIMiWenj.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-CTn8i3lY.js";
3
3
  import { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { c as vecLength, t as vecAdd } from "./vecOps-SKPRvPH-.js";
@@ -1,7 +1,7 @@
1
- import { K as getKernel } from "./shapeTypes-Dws97v0n.js";
1
+ import { K as getKernel } from "./shapeTypes-CIMiWenj.js";
2
2
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
3
- import { T as kernelCallRaw } from "./topologyQueryFns-Y54_bj3M.js";
4
- import { m as uvBounds } from "./faceFns-DFSmtFLh.js";
3
+ import { T as kernelCallRaw } from "./topologyQueryFns-Dp_LqPFF.js";
4
+ import { m as uvBounds } from "./faceFns-2wV1msnQ.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-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DrHcZI0R.cjs");
4
- const require_faceFns = require("./faceFns-CCxaniT2.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-DYslfber.cjs");
4
+ const require_faceFns = require("./faceFns-qnvwgyaw.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-Bx4-E_b0.cjs");
2
+ const require_measureFns = require("./measureFns-DU8x4zPn.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-B4tUFMP3.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-CCd5bBnv.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DrHcZI0R.cjs");
4
- const require_originTrackingFns = require("./originTrackingFns-CGZxTHpu.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-DYslfber.cjs");
4
+ const require_originTrackingFns = require("./originTrackingFns-Bm7CD2oW.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-Dws97v0n.js";
1
+ import { K as getKernel, lt as qualityDeflection } from "./shapeTypes-CIMiWenj.js";
2
2
  import { E as ok, g as err, r as ioError } from "./errors-CTn8i3lY.js";
3
- import { d as getSolids, n as getBounds } from "./topologyQueryFns-Y54_bj3M.js";
4
- import { t as getFaceOrigins } from "./originTrackingFns-CrPV6BAg.js";
3
+ import { d as getSolids, n as getBounds } from "./topologyQueryFns-Dp_LqPFF.js";
4
+ import { t as getFaceOrigins } from "./originTrackingFns-j2je8lQv.js";
5
5
  //#region src/topology/meshCache.ts
6
6
  /**
7
7
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -3090,7 +3090,7 @@ function mirror(k, shape, origin, normal) {
3090
3090
  function scale(k, shape, center, factor) {
3091
3091
  return wrapResult(k, k.scale(unwrap(shape), center[0], center[1], center[2], factor));
3092
3092
  }
3093
- function generalTransform(k, Module, shape, linear, translation, _isOrthogonal) {
3093
+ function generalTransform(k, Module, shape, linear, translation, isOrthogonal) {
3094
3094
  const vec = makeVecDouble(Module, [
3095
3095
  linear[0],
3096
3096
  linear[1],
@@ -3106,7 +3106,7 @@ function generalTransform(k, Module, shape, linear, translation, _isOrthogonal)
3106
3106
  translation[2]
3107
3107
  ]);
3108
3108
  try {
3109
- return wrapResult(k, k.generalTransform(unwrap(shape), vec));
3109
+ return wrapResult(k, isOrthogonal ? k.transform(unwrap(shape), vec) : k.generalTransform(unwrap(shape), vec));
3110
3110
  } finally {
3111
3111
  vec.delete();
3112
3112
  }
@@ -3090,7 +3090,7 @@ function mirror(k, shape, origin, normal) {
3090
3090
  function scale(k, shape, center, factor) {
3091
3091
  return wrapResult(k, k.scale(unwrap(shape), center[0], center[1], center[2], factor));
3092
3092
  }
3093
- function generalTransform(k, Module, shape, linear, translation, _isOrthogonal) {
3093
+ function generalTransform(k, Module, shape, linear, translation, isOrthogonal) {
3094
3094
  const vec = makeVecDouble(Module, [
3095
3095
  linear[0],
3096
3096
  linear[1],
@@ -3106,7 +3106,7 @@ function generalTransform(k, Module, shape, linear, translation, _isOrthogonal)
3106
3106
  translation[2]
3107
3107
  ]);
3108
3108
  try {
3109
- return wrapResult(k, k.generalTransform(unwrap(shape), vec));
3109
+ return wrapResult(k, isOrthogonal ? k.transform(unwrap(shape), vec) : k.generalTransform(unwrap(shape), vec));
3110
3110
  } finally {
3111
3111
  vec.delete();
3112
3112
  }
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_threadFns = require("./threadFns-CjoiERQs.cjs");
3
- const require_loftFns = require("./loftFns-DsuYYlLP.cjs");
2
+ const require_threadFns = require("./threadFns-52YHK9wK.cjs");
3
+ const require_loftFns = require("./loftFns-B9-6-lOQ.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-WZYYCvJw.js";
2
- import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-DoKqe4ab.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-iR-yK8rr.js";
2
+ import { c as twistExtrude, o as supportExtrude, r as complexExtrude, s as sweep } from "./loftFns-qB9Ek9-L.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-vUF6yWQf.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-DrHcZI0R.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-DYslfber.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-Dws97v0n.js";
2
- import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-Y54_bj3M.js";
1
+ import { K as getKernel } from "./shapeTypes-CIMiWenj.js";
2
+ import { S as subShapeHashes, c as getFaces, l as getOrCreateCache, r as getCacheEntry } from "./topologyQueryFns-Dp_LqPFF.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
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
- const require_validityTypes = require("./validityTypes-51-mt64A.cjs");
3
+ const require_validityTypes = require("./validityTypes-BYnGyL8L.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_solidBuilders = require("./solidBuilders-CKZE8v-n.cjs");
6
- const require_surfaceBuilders = require("./surfaceBuilders-CEZaodTC.cjs");
5
+ const require_solidBuilders = require("./solidBuilders-x5Bz2ELQ.cjs");
6
+ const require_surfaceBuilders = require("./surfaceBuilders-B9llhfrz.cjs");
7
7
  //#region src/topology/transformFns.ts
8
8
  /**
9
9
  * Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
@@ -127,20 +127,29 @@ function det3x3(m) {
127
127
  /**
128
128
  * Check if a 3x3 matrix is orthogonal (possibly with uniform scale).
129
129
  * M is orthogonal-with-scale if M^T * M = s^2 * I for some scalar s.
130
+ *
131
+ * The tolerance is relative to s^2 and deliberately loose: rotations read from
132
+ * file formats are often rounded to six decimals, which perturbs M^T * M by
133
+ * about 1e-6. Those must still take the rigid path, which re-orthogonalizes
134
+ * them, rather than the general affine path, which re-approximates every
135
+ * surface as a BSpline and drifts out of tolerance when chained.
130
136
  */
131
137
  function isOrthogonalMatrix(m) {
132
- const TOL = 1e-8;
138
+ const REL_TOL = 1e-5;
133
139
  const d00 = m[0] * m[0] + m[3] * m[3] + m[6] * m[6];
134
140
  const d11 = m[1] * m[1] + m[4] * m[4] + m[7] * m[7];
135
141
  const d22 = m[2] * m[2] + m[5] * m[5] + m[8] * m[8];
136
142
  const d01 = m[0] * m[1] + m[3] * m[4] + m[6] * m[7];
137
143
  const d02 = m[0] * m[2] + m[3] * m[5] + m[6] * m[8];
138
144
  const d12 = m[1] * m[2] + m[4] * m[5] + m[7] * m[8];
139
- if (Math.abs(d01) > TOL) return false;
140
- if (Math.abs(d02) > TOL) return false;
141
- if (Math.abs(d12) > TOL) return false;
142
- if (Math.abs(d00 - d11) > TOL) return false;
143
- if (Math.abs(d00 - d22) > TOL) return false;
145
+ const tol = REL_TOL * (d00 + d11 + d22) / 3;
146
+ /* v8 ignore next -- reachable only for degenerate non-finite matrices */
147
+ if (!Number.isFinite(tol)) return false;
148
+ if (Math.abs(d01) > tol) return false;
149
+ if (Math.abs(d02) > tol) return false;
150
+ if (Math.abs(d12) > tol) return false;
151
+ if (Math.abs(d00 - d11) > tol) return false;
152
+ if (Math.abs(d00 - d22) > tol) return false;
144
153
  return true;
145
154
  }
146
155
  /**
@@ -1,9 +1,9 @@
1
- import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-Dws97v0n.js";
1
+ import { K as getKernel, W as _usingCtx, d as createSolid, n as castResultShape } from "./shapeTypes-CIMiWenj.js";
2
2
  import { E as ok, d as validationError, g as err, m as andThen, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
3
- import { n as isClosedWire } from "./validityTypes-DL-4TcAg.js";
3
+ import { n as isClosedWire } from "./validityTypes-BqJb23o4.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-K2znhlSj.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-Da5eXRvz.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-DKwoY2nP.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-CHfC8AUd.js";
7
7
  //#region src/topology/transformFns.ts
8
8
  /**
9
9
  * Immutable shape transforms — translate, rotate, scale, mirror, applyMatrix.
@@ -127,20 +127,29 @@ function det3x3(m) {
127
127
  /**
128
128
  * Check if a 3x3 matrix is orthogonal (possibly with uniform scale).
129
129
  * M is orthogonal-with-scale if M^T * M = s^2 * I for some scalar s.
130
+ *
131
+ * The tolerance is relative to s^2 and deliberately loose: rotations read from
132
+ * file formats are often rounded to six decimals, which perturbs M^T * M by
133
+ * about 1e-6. Those must still take the rigid path, which re-orthogonalizes
134
+ * them, rather than the general affine path, which re-approximates every
135
+ * surface as a BSpline and drifts out of tolerance when chained.
130
136
  */
131
137
  function isOrthogonalMatrix(m) {
132
- const TOL = 1e-8;
138
+ const REL_TOL = 1e-5;
133
139
  const d00 = m[0] * m[0] + m[3] * m[3] + m[6] * m[6];
134
140
  const d11 = m[1] * m[1] + m[4] * m[4] + m[7] * m[7];
135
141
  const d22 = m[2] * m[2] + m[5] * m[5] + m[8] * m[8];
136
142
  const d01 = m[0] * m[1] + m[3] * m[4] + m[6] * m[7];
137
143
  const d02 = m[0] * m[2] + m[3] * m[5] + m[6] * m[8];
138
144
  const d12 = m[1] * m[2] + m[4] * m[5] + m[7] * m[8];
139
- if (Math.abs(d01) > TOL) return false;
140
- if (Math.abs(d02) > TOL) return false;
141
- if (Math.abs(d12) > TOL) return false;
142
- if (Math.abs(d00 - d11) > TOL) return false;
143
- if (Math.abs(d00 - d22) > TOL) return false;
145
+ const tol = REL_TOL * (d00 + d11 + d22) / 3;
146
+ /* v8 ignore next -- reachable only for degenerate non-finite matrices */
147
+ if (!Number.isFinite(tol)) return false;
148
+ if (Math.abs(d01) > tol) return false;
149
+ if (Math.abs(d02) > tol) return false;
150
+ if (Math.abs(d12) > tol) return false;
151
+ if (Math.abs(d00 - d11) > tol) return false;
152
+ if (Math.abs(d00 - d22) > tol) return false;
144
153
  return true;
145
154
  }
146
155
  /**
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-bdXEtNRU.cjs");
2
+ const require_cameraFns = require("./cameraFns-CKl-ZLoM.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-JOFrRrSB.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-D59FeXIj.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-D-cEv-pl.cjs");
3
- const require_cornerFinder = require("./cornerFinder-Clq3J667.cjs");
2
+ const require_helpers = require("./helpers-YWE4RECX.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-CLEHlBMf.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-AkXo1j_Q.js";
2
- import { t as cornerFinder } from "./cornerFinder-CsNx6c9v.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-DHU9mCM7.js";
2
+ import { t as cornerFinder } from "./cornerFinder-Cq-kBDcR.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
2
- const require_topologyQueryFns = require("./topologyQueryFns-DrHcZI0R.cjs");
3
- const require_faceFns = require("./faceFns-CCxaniT2.cjs");
4
- const require_shapeFns = require("./shapeFns-DUjU0qe5.cjs");
5
- const require_measureFns = require("./measureFns-Bx4-E_b0.cjs");
6
- const require_adjacencyFns = require("./adjacencyFns-BwfvEmcQ.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
+ const require_topologyQueryFns = require("./topologyQueryFns-DYslfber.cjs");
3
+ const require_faceFns = require("./faceFns-qnvwgyaw.cjs");
4
+ const require_shapeFns = require("./shapeFns-FzE1ivNh.cjs");
5
+ const require_measureFns = require("./measureFns-DU8x4zPn.cjs");
6
+ const require_adjacencyFns = require("./adjacencyFns-D1sYXJUk.cjs");
7
7
  //#region src/topology/shapeRef/scoring.ts
8
8
  /**
9
9
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,9 +1,9 @@
1
- import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-Dws97v0n.js";
2
- import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-Y54_bj3M.js";
3
- import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-DFSmtFLh.js";
4
- import { n as getHashCode } from "./shapeFns-Dfzoou1k.js";
5
- import { n as measureArea, s as measureLength } from "./measureFns-B4tUFMP3.js";
6
- import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-DvYytSi6.js";
1
+ import { K as getKernel, g as disposeTransientSubShape, o as castShapeWithKnownType } from "./shapeTypes-CIMiWenj.js";
2
+ import { C as vertexPosition, c as getFaces } from "./topologyQueryFns-Dp_LqPFF.js";
3
+ import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-2wV1msnQ.js";
4
+ import { n as getHashCode } from "./shapeFns-B_GAp2z3.js";
5
+ import { n as measureArea, s as measureLength } from "./measureFns-CCd5bBnv.js";
6
+ import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, o as sharedEdges, s as verticesOfEdge, t as adjacentFaceHashes } from "./adjacencyFns-Cuqqg_9C.js";
7
7
  //#region src/topology/shapeRef/scoring.ts
8
8
  /**
9
9
  * Default face scorer combining surface type, normal alignment, centroid proximity,
@@ -1,6 +1,6 @@
1
- import { K as getKernel } from "./shapeTypes-Dws97v0n.js";
1
+ import { K as getKernel } from "./shapeTypes-CIMiWenj.js";
2
2
  import { t as BrepErrorCode } from "./errors-CTn8i3lY.js";
3
- import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-Y54_bj3M.js";
3
+ import { T as kernelCallRaw, w as kernelCall } from "./topologyQueryFns-Dp_LqPFF.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/shapeFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DrHcZI0R.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-DYslfber.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
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-D4bbfaX9.cjs");
2
+ const require_refResolveFns = require("./refResolveFns-CxIokx3w.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-AOBikNwT.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-DTZoqjRs.js";
2
2
  export { assignRoles, captureHint, createDerivedFaceRef, createEdgeRef, createRef, createVertexRef, defaultScorer, isDerivedFaceRef, isEdgeRef, isFaceRef, isLineageRef, isVertexRef, resolveDerivedFaceRef, resolveEdgeRef, resolveLineageRef, resolveRef, resolveRefIn, resolveRefParams, resolveVertexRef, updateRoles };
@@ -1,4 +1,4 @@
1
- import { A as EXACT_BREP_CAPABILITIES, C as serializeCurve2d$2, D as UnsupportedKernelOperationError, E as quickHull, O as isUnsupportedKernelOperationError, S as scaleCurve2d$2, T as translateCurve2d$2, _ as makeEllipse2d$2, a as buildBinarySTL, b as mirrorAtPoint, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeCircle2d$2, h as makeBezier2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeArc2dThreePoints, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeArc2dTangent, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as makeLine2d$2, w as tangentCurve2d, x as rotateCurve2d$2, y as mirrorAcrossAxis } from "./occtWasmAdapter-Cu1SW10s.js";
1
+ import { A as EXACT_BREP_CAPABILITIES, C as serializeCurve2d$2, D as UnsupportedKernelOperationError, E as quickHull, O as isUnsupportedKernelOperationError, S as scaleCurve2d$2, T as translateCurve2d$2, _ as makeEllipse2d$2, a as buildBinarySTL, b as mirrorAtPoint, c as curveBounds, d as evaluateCurve2d$2, f as intersectCurves2dFn, g as makeCircle2d$2, h as makeBezier2d$2, i as buildAsciiSTL, l as curveTypeName, m as makeArc2dThreePoints, n as DEFAULT_STL_ANGULAR_TOLERANCE, o as addCurveToBBox, p as makeArc2dTangent, r as DEFAULT_STL_TOLERANCE, s as createBBox2d, t as OcctWasmAdapter, u as deserializeCurve2d$2, v as makeLine2d$2, w as tangentCurve2d, x as rotateCurve2d$2, y as mirrorAcrossAxis } from "./occtWasmAdapter-CIc9I87_.js";
2
2
  import { i as wasmIndex, r as vec3At } from "./bug-BdOHwn_e.js";
3
3
  //#region src/kernel/quality.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_occtWasmAdapter = require("./occtWasmAdapter-BnMFWwNp.cjs");
1
+ const require_occtWasmAdapter = require("./occtWasmAdapter-y21xnRNM.cjs");
2
2
  const require_bug = require("./bug-O02CsAmt.cjs");
3
3
  //#region src/kernel/quality.ts
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_blueprintSketcher = require("./blueprintSketcher-4TJDOYi4.cjs");
3
- const require_drawFns = require("./drawFns-IHowEJB2.cjs");
4
- const require_textBlueprints = require("./textBlueprints-DLvh2p6f.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-Dedw15H1.cjs");
3
+ const require_drawFns = require("./drawFns-BaGbMy6K.cjs");
4
+ const require_textBlueprints = require("./textBlueprints-D6csroh5.cjs");
5
5
  //#region src/sketching.ts
6
6
  /**
7
7
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
package/dist/sketching.js CHANGED
@@ -1,6 +1,6 @@
1
- import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-BVPo_PXC.js";
2
- import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-DCv0zYTs.js";
3
- import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-BaZWs0Yr.js";
1
+ import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-Dr5-ITBw.js";
2
+ import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-Dr9iCrbh.js";
3
+ import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-B3cJhqsf.js";
4
4
  //#region src/sketching.ts
5
5
  /**
6
6
  * brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
@@ -1,13 +1,13 @@
1
- import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-Dws97v0n.js";
1
+ import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-CIMiWenj.js";
2
2
  import { E as ok, P as unwrap, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, m as andThen, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
3
- import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-Y54_bj3M.js";
3
+ import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-Dp_LqPFF.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  import { a as vecDot, g as vecSub, h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
6
6
  import { o as resolvePlane } from "./planeOps-CkpMeheg.js";
7
- import { _ as cast, y as downcast } from "./faceFns-DFSmtFLh.js";
8
- import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-CrPV6BAg.js";
7
+ import { _ as cast, y as downcast } from "./faceFns-2wV1msnQ.js";
8
+ import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-j2je8lQv.js";
9
9
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
10
- import { r as makeFace } from "./surfaceBuilders-Da5eXRvz.js";
10
+ import { r as makeFace } from "./surfaceBuilders-CHfC8AUd.js";
11
11
  //#region src/topology/metadata/faceTagFns.ts
12
12
  var shapeTagStore = /* @__PURE__ */ new WeakMap();
13
13
  var tagMetadataStore = /* @__PURE__ */ new WeakMap();
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DrHcZI0R.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-DYslfber.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
6
  const require_planeOps = require("./planeOps-CpupTCRM.cjs");
7
- const require_faceFns = require("./faceFns-CCxaniT2.cjs");
8
- const require_originTrackingFns = require("./originTrackingFns-CGZxTHpu.cjs");
7
+ const require_faceFns = require("./faceFns-qnvwgyaw.cjs");
8
+ const require_originTrackingFns = require("./originTrackingFns-Bm7CD2oW.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-CEZaodTC.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-B9llhfrz.cjs");
11
11
  //#region src/topology/metadata/faceTagFns.ts
12
12
  var shapeTagStore = /* @__PURE__ */ new WeakMap();
13
13
  var tagMetadataStore = /* @__PURE__ */ new WeakMap();
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-vUF6yWQf.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DZZldFUS.cjs");
2
2
  const require_errors = require("./errors-DWezb9DI.cjs");
3
- const require_validityTypes = require("./validityTypes-51-mt64A.cjs");
4
- const require_faceFns = require("./faceFns-CCxaniT2.cjs");
3
+ const require_validityTypes = require("./validityTypes-BYnGyL8L.cjs");
4
+ const require_faceFns = require("./faceFns-qnvwgyaw.cjs");
5
5
  //#region src/utils/range.ts
6
6
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
7
7
  function range(len) {
@@ -1,7 +1,7 @@
1
- import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-Dws97v0n.js";
1
+ import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-CIMiWenj.js";
2
2
  import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-CTn8i3lY.js";
3
- import { a as isPlanarFace } from "./validityTypes-DL-4TcAg.js";
4
- import { _ as cast, u as outerWire } from "./faceFns-DFSmtFLh.js";
3
+ import { a as isPlanarFace } from "./validityTypes-BqJb23o4.js";
4
+ import { _ as cast, u as outerWire } from "./faceFns-2wV1msnQ.js";
5
5
  //#region src/utils/range.ts
6
6
  /** Generate an array of integers `[0, 1, …, len - 1]`. */
7
7
  function range(len) {
package/dist/text.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-DLvh2p6f.cjs");
3
- const require_textMetrics = require("./textMetrics-EHMzeJ4l.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-D6csroh5.cjs");
3
+ const require_textMetrics = require("./textMetrics-sApnOuwi.cjs");
4
4
  exports.fontMetrics = require_textMetrics.fontMetrics;
5
5
  exports.getFont = require_textBlueprints.getFont;
6
6
  exports.loadFont = require_textBlueprints.loadFont;