brepjs 18.151.0 → 18.151.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-B1FEq-7P.cjs → adjacencyFns-DmzCVsNA.cjs} +1 -1
  4. package/dist/{adjacencyFns-ChpKOdJX.js → adjacencyFns-oMRMitRE.js} +1 -1
  5. package/dist/{blueprint-SQlROOFK.cjs → blueprint-DT7TQoxE.cjs} +6 -6
  6. package/dist/{blueprint-Be2V1tdb.js → blueprint-Dq3o62cF.js} +6 -6
  7. package/dist/{blueprintFns-DpZo8T6u.js → blueprintFns-B74C4tbO.js} +3 -3
  8. package/dist/{blueprintFns-BcWGUCk3.cjs → blueprintFns-CS4t2ukh.cjs} +3 -3
  9. package/dist/{blueprintSketcher-C9lVrRBr.cjs → blueprintSketcher-AtKzjQzf.cjs} +3 -3
  10. package/dist/{blueprintSketcher-HsSFy10k.js → blueprintSketcher-CEw91ij9.js} +3 -3
  11. package/dist/{boolean2D-Bh07EPIS.cjs → boolean2D-C1TN_Tx_.cjs} +5 -5
  12. package/dist/{boolean2D-CwFJsT_T.js → boolean2D-CTN9BHhX.js} +5 -5
  13. package/dist/brepjs.cjs +69 -32
  14. package/dist/brepjs.js +69 -32
  15. package/dist/{cameraFns-CWS3e1p_.js → cameraFns-By4a7rrk.js} +3 -3
  16. package/dist/{cameraFns-BYBavyGz.cjs → cameraFns-DvwFx7Zy.cjs} +3 -3
  17. package/dist/core/errors.d.ts +1 -0
  18. package/dist/core.cjs +3 -3
  19. package/dist/core.js +3 -3
  20. package/dist/{cornerFinder-D5doC-g3.js → cornerFinder-Bt1Ijr7a.js} +1 -1
  21. package/dist/{cornerFinder-B_6OVtcc.cjs → cornerFinder-wCndsp-s.cjs} +1 -1
  22. package/dist/csg/evaluate.d.ts +6 -0
  23. package/dist/{curveFns-dXPHWXhw.cjs → curveFns-DTbY4aYG.cjs} +1 -1
  24. package/dist/{curveFns-CO0dlocY.js → curveFns-U6vegvin.js} +1 -1
  25. package/dist/{drawFns-C_dvmPvb.cjs → drawFns-BxM81HkL.cjs} +13 -13
  26. package/dist/{drawFns-CVvt5Hmy.js → drawFns-qbcjiKq-.js} +13 -13
  27. package/dist/{errors-MHLiNE-C.js → errors-CTn8i3lY.js} +1 -0
  28. package/dist/{errors-RHkKO5bZ.cjs → errors-DWezb9DI.cjs} +1 -0
  29. package/dist/{faceFns-9lfp_6de.cjs → faceFns-ClDKjey7.cjs} +2 -2
  30. package/dist/{faceFns-C-SjeGpG.js → faceFns-D4z1xEh3.js} +2 -2
  31. package/dist/{healingFns-BtrFRoK5.js → healingFns-CN9ra8Kh.js} +4 -4
  32. package/dist/{healingFns-D4HAilgL.cjs → healingFns-CnRyuMWf.cjs} +4 -4
  33. package/dist/{helpers-BipNXMsi.js → helpers-DiOcrJ0A.js} +6 -6
  34. package/dist/{helpers-uUXFl5Pn.cjs → helpers-HM_a__7P.cjs} +6 -6
  35. package/dist/{importFns-lWFKWnCe.js → importFns-DjS57JAv.js} +2 -2
  36. package/dist/{importFns-CCnECEQt.cjs → importFns-cs7Y4qFg.cjs} +2 -2
  37. package/dist/io.cjs +2 -2
  38. package/dist/io.js +2 -2
  39. package/dist/{loftFns-BNziMKOW.js → loftFns-CvPetZyA.js} +1 -1
  40. package/dist/{loftFns-DUyKz3r7.cjs → loftFns-CzPUAFgL.cjs} +1 -1
  41. package/dist/{measureFns-D9lwC7kw.js → measureFns-DfgTyVBz.js} +3 -3
  42. package/dist/{measureFns-K2jBIt9p.cjs → measureFns-Dr0dCH-w.cjs} +3 -3
  43. package/dist/measurement.cjs +1 -1
  44. package/dist/measurement.js +1 -1
  45. package/dist/{meshFns-D5_15Njg.js → meshFns-FSW58GBR.js} +3 -3
  46. package/dist/{meshFns-D0JF9XF8.cjs → meshFns-cMtop3IN.cjs} +3 -3
  47. package/dist/operations.cjs +2 -2
  48. package/dist/operations.js +2 -2
  49. package/dist/{originTrackingFns-BgWmLwox.cjs → originTrackingFns-CSsyNoUc.cjs} +1 -1
  50. package/dist/{originTrackingFns-BZwAfjbF.js → originTrackingFns-Cd7Rrp9x.js} +1 -1
  51. package/dist/{planeOps-CQahLrCx.js → planeOps-CkpMeheg.js} +1 -1
  52. package/dist/{planeOps-VlFxtvzY.cjs → planeOps-CpupTCRM.cjs} +1 -1
  53. package/dist/{primitiveFns-p0NdUf-t.js → primitiveFns-B0iLpCEN.js} +4 -4
  54. package/dist/{primitiveFns-B_09AGpd.cjs → primitiveFns-BjwF7CHF.cjs} +4 -4
  55. package/dist/projection.cjs +1 -1
  56. package/dist/projection.js +1 -1
  57. package/dist/query.cjs +2 -2
  58. package/dist/query.js +2 -2
  59. package/dist/{refResolveFns-Dnc4_49q.js → refResolveFns-Bkm7htwc.js} +5 -5
  60. package/dist/{refResolveFns-Cin3djM3.cjs → refResolveFns-CTQaQ8Q8.cjs} +5 -5
  61. package/dist/result.cjs +1 -1
  62. package/dist/result.js +1 -1
  63. package/dist/{shapeFns-D65fk--y.cjs → shapeFns-C3AFMiyv.cjs} +2 -2
  64. package/dist/{shapeFns-BZnM8fRy.js → shapeFns-D0hK1y4m.js} +2 -2
  65. package/dist/shapeRef.cjs +1 -1
  66. package/dist/shapeRef.js +1 -1
  67. package/dist/sketching.cjs +3 -3
  68. package/dist/sketching.js +3 -3
  69. package/dist/{solidBuilders-Bm4P-jGM.cjs → solidBuilders-BKSCyfzL.cjs} +6 -6
  70. package/dist/{solidBuilders-CIDWhMT6.js → solidBuilders-BiRBDuvG.js} +6 -6
  71. package/dist/{surfaceBuilders-BC3swenJ.js → surfaceBuilders-C_oBS19q.js} +3 -3
  72. package/dist/{surfaceBuilders-CxbTUaok.cjs → surfaceBuilders-aSFtcDr6.cjs} +3 -3
  73. package/dist/text.cjs +2 -2
  74. package/dist/text.js +2 -2
  75. package/dist/{textBlueprints-75GTk1vk.js → textBlueprints-BM_HzZ_Z.js} +8 -8
  76. package/dist/{textBlueprints-D1OMdDIP.cjs → textBlueprints-rWPsnXS2.cjs} +8 -8
  77. package/dist/{textMetrics-DCBkXf-H.js → textMetrics-BS2MIEXH.js} +2 -2
  78. package/dist/{textMetrics-J2bKijAB.cjs → textMetrics-CQi7r4K0.cjs} +2 -2
  79. package/dist/{threadFns-D55B4LJk.js → threadFns-B86t62TB.js} +7 -7
  80. package/dist/{threadFns-9Xvow5fk.cjs → threadFns-BhTaoFLm.cjs} +7 -7
  81. package/dist/topology.cjs +9 -9
  82. package/dist/topology.js +9 -9
  83. package/dist/{topologyQueryFns-G6xu8ExU.js → topologyQueryFns-Dxwm2jN-.js} +1 -1
  84. package/dist/{topologyQueryFns-nT3Ir1y-.cjs → topologyQueryFns-K7_UgEws.cjs} +1 -1
  85. package/dist/{validityTypes-OvTu-S-y.cjs → validityTypes-Det5YWSW.cjs} +1 -1
  86. package/dist/{validityTypes-seS7aZI9.js → validityTypes-T6dHSAOb.js} +1 -1
  87. package/dist/vectors.cjs +1 -1
  88. package/dist/vectors.js +1 -1
  89. package/package.json +1 -1
package/dist/2d.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_shapeTypes = require("./shapeTypes-Dq5ylbmP.cjs");
3
- const require_errors = require("./errors-RHkKO5bZ.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-nT3Ir1y-.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-C9lVrRBr.cjs");
6
- const require_blueprint = require("./blueprint-SQlROOFK.cjs");
7
- const require_boolean2D = require("./boolean2D-Bh07EPIS.cjs");
8
- const require_blueprintFns = require("./blueprintFns-BcWGUCk3.cjs");
3
+ const require_errors = require("./errors-DWezb9DI.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-K7_UgEws.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-AtKzjQzf.cjs");
6
+ const require_blueprint = require("./blueprint-DT7TQoxE.cjs");
7
+ const require_boolean2D = require("./boolean2D-C1TN_Tx_.cjs");
8
+ const require_blueprintFns = require("./blueprintFns-CS4t2ukh.cjs");
9
9
  //#region src/core/curve2dHandle.ts
10
10
  /**
11
11
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
package/dist/2d.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { P as createKernelHandle, c as createEdge, q as getKernel2D } from "./shapeTypes-JD6SSVwZ.js";
2
- import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
3
- import { T as kernelCallRaw } from "./topologyQueryFns-G6xu8ExU.js";
4
- import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-HsSFy10k.js";
5
- import { t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-Be2V1tdb.js";
6
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CwFJsT_T.js";
7
- import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-DpZo8T6u.js";
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-Dxwm2jN-.js";
4
+ import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-CEw91ij9.js";
5
+ import { t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-Dq3o62cF.js";
6
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CTN9BHhX.js";
7
+ import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-B74C4tbO.js";
8
8
  //#region src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,6 +1,6 @@
1
1
  const require_shapeTypes = require("./shapeTypes-Dq5ylbmP.cjs");
2
2
  const require_occtWasmAdapter = require("./occtWasmAdapter-BnMFWwNp.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-nT3Ir1y-.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-K7_UgEws.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/adjacencyFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  import { G as getActiveKernelId, K as getKernel, r as castResultShapeWithKnownType, t as borrowShapeWithKnownType } from "./shapeTypes-JD6SSVwZ.js";
2
2
  import { O as isUnsupportedKernelOperationError } from "./occtWasmAdapter-Cu1SW10s.js";
3
- import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-G6xu8ExU.js";
3
+ import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-Dxwm2jN-.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/adjacencyFns.ts
6
6
  /**
@@ -1,14 +1,14 @@
1
1
  const require_shapeTypes = require("./shapeTypes-Dq5ylbmP.cjs");
2
2
  const require_bug = require("./bug-O02CsAmt.cjs");
3
- const require_errors = require("./errors-RHkKO5bZ.cjs");
3
+ const require_errors = require("./errors-DWezb9DI.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_types = require("./types-KjA8tY4Y.cjs");
6
- const require_planeOps = require("./planeOps-VlFxtvzY.cjs");
7
- const require_faceFns = require("./faceFns-9lfp_6de.cjs");
8
- const require_curveFns = require("./curveFns-dXPHWXhw.cjs");
6
+ const require_planeOps = require("./planeOps-CpupTCRM.cjs");
7
+ const require_faceFns = require("./faceFns-ClDKjey7.cjs");
8
+ const require_curveFns = require("./curveFns-DTbY4aYG.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-CxbTUaok.cjs");
11
- const require_helpers = require("./helpers-uUXFl5Pn.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-aSFtcDr6.cjs");
11
+ const require_helpers = require("./helpers-HM_a__7P.cjs");
12
12
  //#region src/2d/lib/definitions.ts
13
13
  /** Type guard that checks whether a value is a `Point2D`. */
14
14
  function isPoint2D(point) {
@@ -1,14 +1,14 @@
1
1
  import { K as getKernel, L as registerForCleanup, c as createEdge, p as createWire, q as getKernel2D, z as unregisterFromCleanup } from "./shapeTypes-JD6SSVwZ.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
3
- import { E as ok, P as unwrap, d as validationError, g as err, n as computationError } from "./errors-MHLiNE-C.js";
3
+ import { E as ok, P as unwrap, d as validationError, g as err, n as computationError } from "./errors-CTn8i3lY.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { r as toVec3 } from "./types-D24Y27N0.js";
6
- import { r as makePlane } from "./planeOps-CQahLrCx.js";
7
- import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-C-SjeGpG.js";
8
- import { p as getOrientation } from "./curveFns-CO0dlocY.js";
6
+ import { r as makePlane } from "./planeOps-CkpMeheg.js";
7
+ import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-D4z1xEh3.js";
8
+ import { p as getOrientation } from "./curveFns-U6vegvin.js";
9
9
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
10
- import { r as makeFace } from "./surfaceBuilders-BC3swenJ.js";
11
- import { l as add2d, m as normalize2d$1, p as distance2d, t as getSingleFace, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-BipNXMsi.js";
10
+ import { r as makeFace } from "./surfaceBuilders-C_oBS19q.js";
11
+ import { l as add2d, m as normalize2d$1, p as distance2d, t as getSingleFace, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-DiOcrJ0A.js";
12
12
  //#region src/2d/lib/definitions.ts
13
13
  /** Type guard that checks whether a value is a `Point2D`. */
14
14
  function isPoint2D(point) {
@@ -1,6 +1,6 @@
1
- import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
2
- import { i as CompoundBlueprint } from "./blueprintSketcher-HsSFy10k.js";
3
- import { t as Blueprint } from "./blueprint-Be2V1tdb.js";
1
+ import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-CTn8i3lY.js";
2
+ import { i as CompoundBlueprint } from "./blueprintSketcher-CEw91ij9.js";
3
+ import { t as Blueprint } from "./blueprint-Dq3o62cF.js";
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,6 +1,6 @@
1
- const require_errors = require("./errors-RHkKO5bZ.cjs");
2
- const require_blueprintSketcher = require("./blueprintSketcher-C9lVrRBr.cjs");
3
- const require_blueprint = require("./blueprint-SQlROOFK.cjs");
1
+ const require_errors = require("./errors-DWezb9DI.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-AtKzjQzf.cjs");
3
+ const require_blueprint = require("./blueprint-DT7TQoxE.cjs");
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,10 +1,10 @@
1
1
  const require_shapeTypes = require("./shapeTypes-Dq5ylbmP.cjs");
2
2
  const require_bug = require("./bug-O02CsAmt.cjs");
3
- const require_errors = require("./errors-RHkKO5bZ.cjs");
3
+ const require_errors = require("./errors-DWezb9DI.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
6
- const require_helpers = require("./helpers-uUXFl5Pn.cjs");
7
- const require_blueprint = require("./blueprint-SQlROOFK.cjs");
6
+ const require_helpers = require("./helpers-HM_a__7P.cjs");
7
+ const require_blueprint = require("./blueprint-DT7TQoxE.cjs");
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -1,10 +1,10 @@
1
1
  import { K as getKernel, q as getKernel2D } from "./shapeTypes-JD6SSVwZ.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
3
- import { E as ok, P as unwrap, g as err, n as computationError, s as safeIndex, x as isOk } from "./errors-MHLiNE-C.js";
3
+ import { E as ok, P as unwrap, g as err, n as computationError, s as safeIndex, x as isOk } from "./errors-CTn8i3lY.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
6
- import { _ as rotate2d, d as cartesianToPolar, f as crossProduct2d, g as polarToCartesian, h as polarAngle2d, l as add2d, p as distance2d, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-BipNXMsi.js";
7
- import { C as isPoint2D, b as normalize2d, c as make2dBezierCurve, d as make2dEllipseArc, g as approximateAsBSpline, h as make2dThreePointArc, l as make2dCircle, m as make2dTangentArc, n as asSVG, p as make2dSegmentCurve, r as viewbox, s as make2dArcFromCenter, t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-Be2V1tdb.js";
6
+ import { _ as rotate2d, d as cartesianToPolar, f as crossProduct2d, g as polarToCartesian, h as polarAngle2d, l as add2d, p as distance2d, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-DiOcrJ0A.js";
7
+ import { C as isPoint2D, b as normalize2d, c as make2dBezierCurve, d as make2dEllipseArc, g as approximateAsBSpline, h as make2dThreePointArc, l as make2dCircle, m as make2dTangentArc, n as asSVG, p as make2dSegmentCurve, r as viewbox, s as make2dArcFromCenter, t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-Dq3o62cF.js";
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -1,10 +1,10 @@
1
1
  const require_bug = require("./bug-O02CsAmt.cjs");
2
- const require_errors = require("./errors-RHkKO5bZ.cjs");
2
+ const require_errors = require("./errors-DWezb9DI.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
4
- const require_surfaceBuilders = require("./surfaceBuilders-CxbTUaok.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-C9lVrRBr.cjs");
6
- const require_helpers = require("./helpers-uUXFl5Pn.cjs");
7
- const require_blueprint = require("./blueprint-SQlROOFK.cjs");
4
+ const require_surfaceBuilders = require("./surfaceBuilders-aSFtcDr6.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-AtKzjQzf.cjs");
6
+ const require_helpers = require("./helpers-HM_a__7P.cjs");
7
+ const require_blueprint = require("./blueprint-DT7TQoxE.cjs");
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
@@ -1,10 +1,10 @@
1
1
  import { i as wasmIndex, n as bug } from "./bug-BdOHwn_e.js";
2
- import { P as unwrap, s as safeIndex } from "./errors-MHLiNE-C.js";
2
+ import { P as unwrap, s as safeIndex } from "./errors-CTn8i3lY.js";
3
3
  import { r as lastOrThrow } from "./arrayAccess-DrUGPADn.js";
4
- import { v as zip } from "./surfaceBuilders-BC3swenJ.js";
5
- import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-HsSFy10k.js";
6
- import { f as crossProduct2d, o as PRECISION_INTERSECTION, v as samePoint$1, x as subtract2d } from "./helpers-BipNXMsi.js";
7
- import { S as removeDuplicatePoints, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-Be2V1tdb.js";
4
+ import { v as zip } from "./surfaceBuilders-C_oBS19q.js";
5
+ import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-CEw91ij9.js";
6
+ import { f as crossProduct2d, o as PRECISION_INTERSECTION, v as samePoint$1, x as subtract2d } from "./helpers-DiOcrJ0A.js";
7
+ import { S as removeDuplicatePoints, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-Dq3o62cF.js";
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
package/dist/brepjs.cjs CHANGED
@@ -3,39 +3,39 @@ const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
3
3
  const require_shapeTypes = require("./shapeTypes-Dq5ylbmP.cjs");
4
4
  const require_occtWasmAdapter = require("./occtWasmAdapter-BnMFWwNp.cjs");
5
5
  const require_bug = require("./bug-O02CsAmt.cjs");
6
- const require_errors = require("./errors-RHkKO5bZ.cjs");
7
- const require_topologyQueryFns = require("./topologyQueryFns-nT3Ir1y-.cjs");
8
- const require_validityTypes = require("./validityTypes-OvTu-S-y.cjs");
6
+ const require_errors = require("./errors-DWezb9DI.cjs");
7
+ const require_topologyQueryFns = require("./topologyQueryFns-K7_UgEws.cjs");
8
+ const require_validityTypes = require("./validityTypes-Det5YWSW.cjs");
9
9
  const require_constants = require("./constants-BOVyEYGH.cjs");
10
10
  const require_types = require("./types-KjA8tY4Y.cjs");
11
11
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
12
- const require_planeOps = require("./planeOps-VlFxtvzY.cjs");
13
- const require_faceFns = require("./faceFns-9lfp_6de.cjs");
14
- const require_originTrackingFns = require("./originTrackingFns-BgWmLwox.cjs");
15
- const require_solidBuilders = require("./solidBuilders-Bm4P-jGM.cjs");
16
- const require_primitiveFns = require("./primitiveFns-B_09AGpd.cjs");
17
- const require_shapeFns = require("./shapeFns-D65fk--y.cjs");
18
- const require_curveFns = require("./curveFns-dXPHWXhw.cjs");
19
- const require_meshFns = require("./meshFns-D0JF9XF8.cjs");
12
+ const require_planeOps = require("./planeOps-CpupTCRM.cjs");
13
+ const require_faceFns = require("./faceFns-ClDKjey7.cjs");
14
+ const require_originTrackingFns = require("./originTrackingFns-CSsyNoUc.cjs");
15
+ const require_solidBuilders = require("./solidBuilders-BKSCyfzL.cjs");
16
+ const require_primitiveFns = require("./primitiveFns-BjwF7CHF.cjs");
17
+ const require_shapeFns = require("./shapeFns-C3AFMiyv.cjs");
18
+ const require_curveFns = require("./curveFns-DTbY4aYG.cjs");
19
+ const require_meshFns = require("./meshFns-cMtop3IN.cjs");
20
20
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
21
- const require_surfaceBuilders = require("./surfaceBuilders-CxbTUaok.cjs");
22
- const require_healingFns = require("./healingFns-D4HAilgL.cjs");
23
- const require_threadFns = require("./threadFns-9Xvow5fk.cjs");
24
- const require_blueprintSketcher = require("./blueprintSketcher-C9lVrRBr.cjs");
25
- const require_helpers = require("./helpers-uUXFl5Pn.cjs");
26
- const require_blueprint = require("./blueprint-SQlROOFK.cjs");
27
- const require_drawFns = require("./drawFns-C_dvmPvb.cjs");
28
- const require_measureFns = require("./measureFns-K2jBIt9p.cjs");
29
- const require_cornerFinder = require("./cornerFinder-B_6OVtcc.cjs");
30
- const require_boolean2D = require("./boolean2D-Bh07EPIS.cjs");
31
- const require_blueprintFns = require("./blueprintFns-BcWGUCk3.cjs");
32
- const require_importFns = require("./importFns-CCnECEQt.cjs");
33
- const require_loftFns = require("./loftFns-DUyKz3r7.cjs");
34
- const require_textBlueprints = require("./textBlueprints-D1OMdDIP.cjs");
35
- const require_refResolveFns = require("./refResolveFns-Cin3djM3.cjs");
36
- const require_adjacencyFns = require("./adjacencyFns-B1FEq-7P.cjs");
37
- const require_cameraFns = require("./cameraFns-BYBavyGz.cjs");
38
- const require_textMetrics = require("./textMetrics-J2bKijAB.cjs");
21
+ const require_surfaceBuilders = require("./surfaceBuilders-aSFtcDr6.cjs");
22
+ const require_healingFns = require("./healingFns-CnRyuMWf.cjs");
23
+ const require_threadFns = require("./threadFns-BhTaoFLm.cjs");
24
+ const require_blueprintSketcher = require("./blueprintSketcher-AtKzjQzf.cjs");
25
+ const require_helpers = require("./helpers-HM_a__7P.cjs");
26
+ const require_blueprint = require("./blueprint-DT7TQoxE.cjs");
27
+ const require_drawFns = require("./drawFns-BxM81HkL.cjs");
28
+ const require_measureFns = require("./measureFns-Dr0dCH-w.cjs");
29
+ const require_cornerFinder = require("./cornerFinder-wCndsp-s.cjs");
30
+ const require_boolean2D = require("./boolean2D-C1TN_Tx_.cjs");
31
+ const require_blueprintFns = require("./blueprintFns-CS4t2ukh.cjs");
32
+ const require_importFns = require("./importFns-cs7Y4qFg.cjs");
33
+ const require_loftFns = require("./loftFns-CzPUAFgL.cjs");
34
+ const require_textBlueprints = require("./textBlueprints-rWPsnXS2.cjs");
35
+ const require_refResolveFns = require("./refResolveFns-CTQaQ8Q8.cjs");
36
+ const require_adjacencyFns = require("./adjacencyFns-DmzCVsNA.cjs");
37
+ const require_cameraFns = require("./cameraFns-DvwFx7Zy.cjs");
38
+ const require_textMetrics = require("./textMetrics-CQi7r4K0.cjs");
39
39
  const require_workerPool = require("./workerPool-D30NsiIW.cjs");
40
40
  //#region src/kernel/types.ts
41
41
  /** Check if the kernel supports hidden-line-removal projection. */
@@ -3355,6 +3355,20 @@ function relocateFaceGroups(faceGroups, innerHashes, placedHashes) {
3355
3355
  faceId: remap.get(g.faceId) ?? g.faceId
3356
3356
  }));
3357
3357
  }
3358
+ var SCALE_INVARIANT_DIAGONAL = 10;
3359
+ function scaleDefaultTolerance(base, shape) {
3360
+ let diagonal;
3361
+ try {
3362
+ const b = require_topologyQueryFns.getBounds(shape);
3363
+ const dx = b.xMax - b.xMin;
3364
+ const dy = b.yMax - b.yMin;
3365
+ const dz = b.zMax - b.zMin;
3366
+ diagonal = Math.sqrt(dx * dx + dy * dy + dz * dz);
3367
+ } catch {
3368
+ return base;
3369
+ }
3370
+ return base * Math.max(1, diagonal / SCALE_INVARIANT_DIAGONAL);
3371
+ }
3358
3372
  var Evaluator = class {
3359
3373
  cache = /* @__PURE__ */ new Map();
3360
3374
  refCounts = /* @__PURE__ */ new Map();
@@ -3419,9 +3433,9 @@ var Evaluator = class {
3419
3433
  meshOpts.signal?.throwIfAborted();
3420
3434
  const useCache = meshOpts.cache ?? true;
3421
3435
  const quality = require_shapeTypes.qualityDeflection();
3422
- const tolerance = meshOpts.tolerance ?? quality.tolerance;
3436
+ const explicitTolerance = meshOpts.tolerance;
3423
3437
  const angularTolerance = meshOpts.angularTolerance ?? quality.angularTolerance;
3424
- const meshKey = `${cacheKey(node, env, this.kernelId, this.defaultTolerance)}|${require_meshFns.buildMeshCacheKey(tolerance, angularTolerance, meshOpts.skipNormals ?? false, meshOpts.includeUVs ?? false)}`;
3438
+ const meshKey = `${cacheKey(node, env, this.kernelId, this.defaultTolerance)}|${explicitTolerance === void 0 ? "rel|" : ""}${require_meshFns.buildMeshCacheKey(explicitTolerance ?? quality.tolerance, angularTolerance, meshOpts.skipNormals ?? false, meshOpts.includeUVs ?? false)}`;
3425
3439
  if (useCache) {
3426
3440
  const cached = this.meshCache.get(meshKey);
3427
3441
  if (cached !== void 0) {
@@ -3455,15 +3469,38 @@ var Evaluator = class {
3455
3469
  }
3456
3470
  }
3457
3471
  }
3472
+ const tolerance = explicitTolerance ?? this.defaultToleranceFor(node, env, quality.tolerance);
3458
3473
  const shape = this.evaluate(node, env);
3459
3474
  if (!shape.ok) return shape;
3460
- const built = require_shapeTypes.withKernel(this.kernelId, () => require_meshFns.mesh(shape.value, meshOpts));
3475
+ const resolvedOpts = {
3476
+ ...meshOpts,
3477
+ tolerance,
3478
+ angularTolerance
3479
+ };
3480
+ let built;
3481
+ try {
3482
+ built = require_shapeTypes.withKernel(this.kernelId, () => require_meshFns.mesh(shape.value, resolvedOpts));
3483
+ } catch (e) {
3484
+ if (meshOpts.signal?.aborted) throw e;
3485
+ return require_errors.err(require_errors.kernelError(require_errors.BrepErrorCode.MESH_FAILED, `evaluateMesh: ${e instanceof Error ? e.message : String(e)}`, e));
3486
+ }
3461
3487
  if (useCache) {
3462
3488
  this.meshCache.set(meshKey, built);
3463
3489
  if (this.maxMeshCacheEntries !== void 0) this.trimMeshCache(this.maxMeshCacheEntries);
3464
3490
  }
3465
3491
  return require_errors.ok(built);
3466
3492
  }
3493
+ /** Scale-relative default deflection, derived from the placement-stripped
3494
+ * geometry so the resolved density is identical whether or not the
3495
+ * rigid-reuse path served the call: a rotated placement's axis-aligned
3496
+ * bounds inflate the diagonal by up to sqrt(3). The bounds are read while
3497
+ * the just-evaluated shape is live; only the number outlives it. */
3498
+ defaultToleranceFor(node, env, base) {
3499
+ const { inner } = peelRigid(node, env);
3500
+ const source = this.evaluate(inner, env);
3501
+ if (!source.ok) return base;
3502
+ return scaleDefaultTolerance(base, source.value);
3503
+ }
3467
3504
  evaluateInner(node, env) {
3468
3505
  const key = cacheKey(node, env, this.kernelId, this.defaultTolerance);
3469
3506
  const cached = this.cache.get(key);
package/dist/brepjs.js CHANGED
@@ -1,39 +1,39 @@
1
1
  import { $ as prewarm, A as is2D, B as withArenaCheckpoint, C as isSolid, E as getShapeKind, F as getDisposalStats, G as getActiveKernelId, H as withScopeResult, I as isLive, J as getKernelCapabilities, K as getKernel, M as DisposalScope, N as createHandle, O as as2D, P as createKernelHandle, Q as initFromOC, R as resetDisposalStats, S as isShell, T as isWire, U as withScopeResultAsync, V as withScope, W as _usingCtx, X as init, Y as getKernelTier, Z as initFromManifold, _ as isCompound, a as castShape3D, at as BrepkitAdapter, b as isShape1D, c as createEdge, ct as currentQuality, d as createSolid, et as registerKernel, f as createVertex, h as disposeResultShape, i as castShape, it as withTier, j as is3D, k as as3D, l as createFace, lt as qualityDeflection, n as castResultShape, nt as withKernel, ot as getPerformanceStats, p as createWire, q as getKernel2D, rt as withQuality, s as createCompound, st as resetPerformanceStats, tt as registerKernelTier, u as createShell, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-JD6SSVwZ.js";
2
2
  import { A as EXACT_BREP_CAPABILITIES, k as DEFAULT_CAPABILITIES, t as OcctWasmAdapter } from "./occtWasmAdapter-Cu1SW10s.js";
3
3
  import { i as wasmIndex, n as bug, t as BrepBugError } from "./bug-BdOHwn_e.js";
4
- import { A as tap, C as mapBoth, D as or, E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, O as orElse, P as unwrap, R as zip, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, j as tapErr, k as pipeline, l as typeCastError, m as andThen, n as computationError, o as queryError, p as all, r as ioError, t as BrepErrorCode, u as unsupportedError, v as flatten, w as mapErr, x as isOk, y as fromNullable } from "./errors-MHLiNE-C.js";
5
- import { C as vertexPosition, E as kernelCallScoped, T as kernelCallRaw, _ as iterFaces, a as getCachedSurfaceType, b as iterVertices, c as getFaces, d as getSolids, f as getVertices, g as iterEdges, h as iterCompSolids, m as invalidateShapeCache, n as getBounds, o as getCompSolids, p as getWires, s as getEdges, t as describe$1, u as getShells, v as iterShells, w as kernelCall, x as iterWires, y as iterSolids } from "./topologyQueryFns-G6xu8ExU.js";
6
- import { a as isPlanarFace, c as manifoldShell, d as planarWire, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, o as isPlanarWire, r as isManifoldShell, s as isValidSolid, t as closedWire, u as planarFace } from "./validityTypes-seS7aZI9.js";
4
+ import { A as tap, C as mapBoth, D as or, E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, O as orElse, P as unwrap, R as zip, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, j as tapErr, k as pipeline, l as typeCastError, m as andThen, n as computationError, o as queryError, p as all, r as ioError, t as BrepErrorCode, u as unsupportedError, v as flatten, w as mapErr, x as isOk, y as fromNullable } from "./errors-CTn8i3lY.js";
5
+ import { C as vertexPosition, E as kernelCallScoped, T as kernelCallRaw, _ as iterFaces, a as getCachedSurfaceType, b as iterVertices, c as getFaces, d as getSolids, f as getVertices, g as iterEdges, h as iterCompSolids, m as invalidateShapeCache, n as getBounds, o as getCompSolids, p as getWires, s as getEdges, t as describe$1, u as getShells, v as iterShells, w as kernelCall, x as iterWires, y as iterSolids } from "./topologyQueryFns-Dxwm2jN-.js";
6
+ import { a as isPlanarFace, c as manifoldShell, d as planarWire, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, o as isPlanarWire, r as isManifoldShell, s as isValidSolid, t as closedWire, u as planarFace } from "./validityTypes-T6dHSAOb.js";
7
7
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
8
8
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
9
9
  import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-SKPRvPH-.js";
10
- import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-CQahLrCx.js";
11
- import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, p as removeHolesFromFace, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-C-SjeGpG.js";
12
- import { i as setShapeOrigin, t as getFaceOrigins } from "./originTrackingFns-BZwAfjbF.js";
13
- import { A as parseColor, D as colorShape, E as colorFaces, F as tagFaces, M as getFaceTags, N as getTagMetadata, O as getFaceColor, P as setTagMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, _ as section$1, b as split$1, d as booleanPipeline, f as cut$2, g as intersect$2, h as fuseAll$2, j as findFacesByTag, k as getShapeColor, m as fuse$2, p as cutAll$2, r as makeCylinder, t as makeCompound, v as sectionToFace$1, y as slice$1 } from "./solidBuilders-CIDWhMT6.js";
14
- import { A as locate$1, C as threePointArc, D as wireLoop, E as wire, F as transformCopy$1, I as translate$2, M as resize, N as rotate$2, O as applyMatrix$1, P as scale$3, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, j as mirror$2, k as composeTransforms, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus$1, x as subFace, y as solid } from "./primitiveFns-p0NdUf-t.js";
15
- import { a as isSameShape, i as isEqualShape, n as getHashCode, o as simplify$1, r as isEmpty$2, s as toBREP$1, t as clone$1 } from "./shapeFns-BZnM8fRy.js";
16
- import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-CO0dlocY.js";
17
- import { a as meshEdges$1, c as meshMultiLOD, d as createMeshCache, i as mesh$1, l as buildMeshCacheKey, n as exportSTEP, o as meshLODs, r as exportSTL, s as meshLODsProgressive, t as exportIGES, u as clearMeshCache } from "./meshFns-D5_15Njg.js";
10
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-CkpMeheg.js";
11
+ import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, p as removeHolesFromFace, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-D4z1xEh3.js";
12
+ import { i as setShapeOrigin, t as getFaceOrigins } from "./originTrackingFns-Cd7Rrp9x.js";
13
+ import { A as parseColor, D as colorShape, E as colorFaces, F as tagFaces, M as getFaceTags, N as getTagMetadata, O as getFaceColor, P as setTagMetadata, S as hasAnyMetadata, T as propagateMetadataThroughRelocation, _ as section$1, b as split$1, d as booleanPipeline, f as cut$2, g as intersect$2, h as fuseAll$2, j as findFacesByTag, k as getShapeColor, m as fuse$2, p as cutAll$2, r as makeCylinder, t as makeCompound, v as sectionToFace$1, y as slice$1 } from "./solidBuilders-BiRBDuvG.js";
14
+ import { A as locate$1, C as threePointArc, D as wireLoop, E as wire, F as transformCopy$1, I as translate$2, M as resize, N as rotate$2, O as applyMatrix$1, P as scale$3, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, j as mirror$2, k as composeTransforms, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus$1, x as subFace, y as solid } from "./primitiveFns-B0iLpCEN.js";
15
+ import { a as isSameShape, i as isEqualShape, n as getHashCode, o as simplify$1, r as isEmpty$2, s as toBREP$1, t as clone$1 } from "./shapeFns-D0hK1y4m.js";
16
+ import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-U6vegvin.js";
17
+ import { a as meshEdges$1, c as meshMultiLOD, d as createMeshCache, i as mesh$1, l as buildMeshCacheKey, n as exportSTEP, o as meshLODs, r as exportSTL, s as meshLODsProgressive, t as exportIGES, u as clearMeshCache } from "./meshFns-FSW58GBR.js";
18
18
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
19
- import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, p as makeEllipseArc, r as makeFace, s as assembleWire, u as makeBezierCurve } from "./surfaceBuilders-BC3swenJ.js";
20
- import { A as toBufferGeometryData, C as chamfer$2, D as shell$2, E as offset$1, M as toLODGeometryData, N as toLODGeometryLevels, O as thicken$1, P as toLineGeometryData, S as chamferDistAngle, T as fillet$2, _ as checkBoolean, a as healFace, b as getNurbsCurveData, c as isValid$1, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, i as heal$1, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, w as draft$1, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-BtrFRoK5.js";
21
- import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, G as quatFromAxisAngle, H as circularPattern, I as createAssemblyNode, J as quatRotate, K as quatFromTo, 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, a as deserializeHistory, 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, p as serializeHistory, q as quatMultiply, 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-D55B4LJk.js";
22
- import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-HsSFy10k.js";
23
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BipNXMsi.js";
24
- import { _ as approximateAsSvgCompatibleCurve, o as ellipseArcFlags } from "./blueprint-Be2V1tdb.js";
25
- import { A as sketchEllipse, 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, _ 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-CVvt5Hmy.js";
26
- import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-D9lwC7kw.js";
27
- import { t as cornerFinder } from "./cornerFinder-D5doC-g3.js";
28
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CwFJsT_T.js";
29
- import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-DpZo8T6u.js";
30
- 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-lWFKWnCe.js";
31
- import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as loftAll, o as supportExtrude, r as complexExtrude, s as sweep$1, t as loft$2 } from "./loftFns-BNziMKOW.js";
32
- import { a as Sketch, b as extrudeAll, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch, x as revolve$2, y as extrude$2 } from "./textBlueprints-75GTk1vk.js";
33
- 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-Dnc4_49q.js";
34
- import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-ChpKOdJX.js";
35
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CWS3e1p_.js";
36
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DCBkXf-H.js";
19
+ import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, p as makeEllipseArc, r as makeFace, s as assembleWire, u as makeBezierCurve } from "./surfaceBuilders-C_oBS19q.js";
20
+ import { A as toBufferGeometryData, C as chamfer$2, D as shell$2, E as offset$1, M as toLODGeometryData, N as toLODGeometryLevels, O as thicken$1, P as toLineGeometryData, S as chamferDistAngle, T as fillet$2, _ as checkBoolean, a as healFace, b as getNurbsCurveData, c as isValid$1, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, i as heal$1, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, w as draft$1, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-CN9ra8Kh.js";
21
+ import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, G as quatFromAxisAngle, H as circularPattern, I as createAssemblyNode, J as quatRotate, K as quatFromTo, 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, a as deserializeHistory, 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, p as serializeHistory, q as quatMultiply, 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-B86t62TB.js";
22
+ import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CEw91ij9.js";
23
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-DiOcrJ0A.js";
24
+ import { _ as approximateAsSvgCompatibleCurve, o as ellipseArcFlags } from "./blueprint-Dq3o62cF.js";
25
+ import { A as sketchEllipse, 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, _ 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-qbcjiKq-.js";
26
+ import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-DfgTyVBz.js";
27
+ import { t as cornerFinder } from "./cornerFinder-Bt1Ijr7a.js";
28
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-CTN9BHhX.js";
29
+ import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-B74C4tbO.js";
30
+ 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-DjS57JAv.js";
31
+ import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as loftAll, o as supportExtrude, r as complexExtrude, s as sweep$1, t as loft$2 } from "./loftFns-CvPetZyA.js";
32
+ import { a as Sketch, b as extrudeAll, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch, x as revolve$2, y as extrude$2 } from "./textBlueprints-BM_HzZ_Z.js";
33
+ 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-Bkm7htwc.js";
34
+ import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-oMRMitRE.js";
35
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-By4a7rrk.js";
36
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-BS2MIEXH.js";
37
37
  import { _ as isSuccessResponse, a as createWorkerClient, c as enqueueTask, d as rejectAll, f as isBatchRequest, g as isOperationRequest, h as isInitRequest, i as registerHandler, l as isEmpty$1, m as isErrorResponse, n as createOperationRegistry, o as createTaskQueue, p as isDisposeRequest, r as createWorkerHandler, s as dequeueTask, t as createWorkerPool, u as pendingCount } from "./workerPool-XcYX2UZ0.js";
38
38
  //#region \0rolldown/runtime.js
39
39
  var __defProp = Object.defineProperty;
@@ -3365,6 +3365,20 @@ function relocateFaceGroups(faceGroups, innerHashes, placedHashes) {
3365
3365
  faceId: remap.get(g.faceId) ?? g.faceId
3366
3366
  }));
3367
3367
  }
3368
+ var SCALE_INVARIANT_DIAGONAL = 10;
3369
+ function scaleDefaultTolerance(base, shape) {
3370
+ let diagonal;
3371
+ try {
3372
+ const b = getBounds(shape);
3373
+ const dx = b.xMax - b.xMin;
3374
+ const dy = b.yMax - b.yMin;
3375
+ const dz = b.zMax - b.zMin;
3376
+ diagonal = Math.sqrt(dx * dx + dy * dy + dz * dz);
3377
+ } catch {
3378
+ return base;
3379
+ }
3380
+ return base * Math.max(1, diagonal / SCALE_INVARIANT_DIAGONAL);
3381
+ }
3368
3382
  var Evaluator = class {
3369
3383
  cache = /* @__PURE__ */ new Map();
3370
3384
  refCounts = /* @__PURE__ */ new Map();
@@ -3429,9 +3443,9 @@ var Evaluator = class {
3429
3443
  meshOpts.signal?.throwIfAborted();
3430
3444
  const useCache = meshOpts.cache ?? true;
3431
3445
  const quality = qualityDeflection();
3432
- const tolerance = meshOpts.tolerance ?? quality.tolerance;
3446
+ const explicitTolerance = meshOpts.tolerance;
3433
3447
  const angularTolerance = meshOpts.angularTolerance ?? quality.angularTolerance;
3434
- const meshKey = `${cacheKey(node, env, this.kernelId, this.defaultTolerance)}|${buildMeshCacheKey(tolerance, angularTolerance, meshOpts.skipNormals ?? false, meshOpts.includeUVs ?? false)}`;
3448
+ const meshKey = `${cacheKey(node, env, this.kernelId, this.defaultTolerance)}|${explicitTolerance === void 0 ? "rel|" : ""}${buildMeshCacheKey(explicitTolerance ?? quality.tolerance, angularTolerance, meshOpts.skipNormals ?? false, meshOpts.includeUVs ?? false)}`;
3435
3449
  if (useCache) {
3436
3450
  const cached = this.meshCache.get(meshKey);
3437
3451
  if (cached !== void 0) {
@@ -3465,15 +3479,38 @@ var Evaluator = class {
3465
3479
  }
3466
3480
  }
3467
3481
  }
3482
+ const tolerance = explicitTolerance ?? this.defaultToleranceFor(node, env, quality.tolerance);
3468
3483
  const shape = this.evaluate(node, env);
3469
3484
  if (!shape.ok) return shape;
3470
- const built = withKernel(this.kernelId, () => mesh$1(shape.value, meshOpts));
3485
+ const resolvedOpts = {
3486
+ ...meshOpts,
3487
+ tolerance,
3488
+ angularTolerance
3489
+ };
3490
+ let built;
3491
+ try {
3492
+ built = withKernel(this.kernelId, () => mesh$1(shape.value, resolvedOpts));
3493
+ } catch (e) {
3494
+ if (meshOpts.signal?.aborted) throw e;
3495
+ return err(kernelError(BrepErrorCode.MESH_FAILED, `evaluateMesh: ${e instanceof Error ? e.message : String(e)}`, e));
3496
+ }
3471
3497
  if (useCache) {
3472
3498
  this.meshCache.set(meshKey, built);
3473
3499
  if (this.maxMeshCacheEntries !== void 0) this.trimMeshCache(this.maxMeshCacheEntries);
3474
3500
  }
3475
3501
  return ok(built);
3476
3502
  }
3503
+ /** Scale-relative default deflection, derived from the placement-stripped
3504
+ * geometry so the resolved density is identical whether or not the
3505
+ * rigid-reuse path served the call: a rotated placement's axis-aligned
3506
+ * bounds inflate the diagonal by up to sqrt(3). The bounds are read while
3507
+ * the just-evaluated shape is live; only the number outlives it. */
3508
+ defaultToleranceFor(node, env, base) {
3509
+ const { inner } = peelRigid(node, env);
3510
+ const source = this.evaluate(inner, env);
3511
+ if (!source.ok) return base;
3512
+ return scaleDefaultTolerance(base, source.value);
3513
+ }
3477
3514
  evaluateInner(node, env) {
3478
3515
  const key = cacheKey(node, env, this.kernelId, this.defaultTolerance);
3479
3516
  const cached = this.cache.get(key);
@@ -1,8 +1,8 @@
1
1
  import { K as getKernel, W as _usingCtx, n as castResultShape } from "./shapeTypes-JD6SSVwZ.js";
2
- import { E as ok, P as unwrap, d as validationError, g as err } from "./errors-MHLiNE-C.js";
3
- import { s as getEdges } from "./topologyQueryFns-G6xu8ExU.js";
2
+ import { E as ok, P as unwrap, d as validationError, g as err } from "./errors-CTn8i3lY.js";
3
+ import { s as getEdges } from "./topologyQueryFns-Dxwm2jN-.js";
4
4
  import { c as vecLength, d as vecNormalize, g as vecSub, r as vecCross } from "./vecOps-SKPRvPH-.js";
5
- import { t as clone } from "./shapeFns-BZnM8fRy.js";
5
+ import { t as clone } from "./shapeFns-D0hK1y4m.js";
6
6
  //#region src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
@@ -1,8 +1,8 @@
1
1
  const require_shapeTypes = require("./shapeTypes-Dq5ylbmP.cjs");
2
- const require_errors = require("./errors-RHkKO5bZ.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-nT3Ir1y-.cjs");
2
+ const require_errors = require("./errors-DWezb9DI.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-K7_UgEws.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
5
- const require_shapeFns = require("./shapeFns-D65fk--y.cjs");
5
+ const require_shapeFns = require("./shapeFns-C3AFMiyv.cjs");
6
6
  //#region src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
@@ -21,6 +21,7 @@ export declare const BrepErrorCode: {
21
21
  readonly FIX_SHAPE_FAILED: "FIX_SHAPE_FAILED";
22
22
  readonly SOLID_FROM_SHELL_FAILED: "SOLID_FROM_SHELL_FAILED";
23
23
  readonly FIX_SELF_INTERSECTION_FAILED: "FIX_SELF_INTERSECTION_FAILED";
24
+ readonly MESH_FAILED: "MESH_FAILED";
24
25
  readonly ELLIPSE_RADII: "ELLIPSE_RADII";
25
26
  readonly FUSE_ALL_EMPTY: "FUSE_ALL_EMPTY";
26
27
  readonly FILLET_NO_EDGES: "FILLET_NO_EDGES";
package/dist/core.cjs CHANGED
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_shapeTypes = require("./shapeTypes-Dq5ylbmP.cjs");
3
3
  const require_bug = require("./bug-O02CsAmt.cjs");
4
- const require_errors = require("./errors-RHkKO5bZ.cjs");
5
- const require_validityTypes = require("./validityTypes-OvTu-S-y.cjs");
4
+ const require_errors = require("./errors-DWezb9DI.cjs");
5
+ const require_validityTypes = require("./validityTypes-Det5YWSW.cjs");
6
6
  const require_constants = require("./constants-BOVyEYGH.cjs");
7
7
  const require_types = require("./types-KjA8tY4Y.cjs");
8
8
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
9
- const require_planeOps = require("./planeOps-VlFxtvzY.cjs");
9
+ const require_planeOps = require("./planeOps-CpupTCRM.cjs");
10
10
  exports.BrepBugError = require_bug.BrepBugError;
11
11
  exports.DEG2RAD = require_constants.DEG2RAD;
12
12
  exports.DisposalScope = require_shapeTypes.DisposalScope;
package/dist/core.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { A as is2D, C as isSolid, E as getShapeKind, H as withScopeResult, I as isLive, M as DisposalScope, N as createHandle, P as createKernelHandle, S as isShell, T as isWire, U as withScopeResultAsync, V as withScope, _ as isCompound, b as isShape1D, i as castShape, j as is3D, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-JD6SSVwZ.js";
2
2
  import { n as bug, t as BrepBugError } from "./bug-BdOHwn_e.js";
3
- import { E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, P as unwrap, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, l as typeCastError, m as andThen, n as computationError, o as queryError, r as ioError, u as unsupportedError, w as mapErr, x as isOk } from "./errors-MHLiNE-C.js";
4
- import { c as manifoldShell, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, r as isManifoldShell, s as isValidSolid, t as closedWire } from "./validityTypes-seS7aZI9.js";
3
+ import { E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, P as unwrap, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, l as typeCastError, m as andThen, n as computationError, o as queryError, r as ioError, u as unsupportedError, w as mapErr, x as isOk } from "./errors-CTn8i3lY.js";
4
+ import { c as manifoldShell, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, r as isManifoldShell, s as isValidSolid, t as closedWire } from "./validityTypes-T6dHSAOb.js";
5
5
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
6
6
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
7
7
  import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-SKPRvPH-.js";
8
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-CQahLrCx.js";
8
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-CkpMeheg.js";
9
9
  export { BrepBugError, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, andThen, bug, castShape, closedWire, collect, computationError, createHandle, createKernelHandle, createNamedPlane, createPlane, err, flatMap, getShapeKind, ioError, is2D, is3D, isClosedWire, isCompound, isEdge, isErr, isFace, isLive, isManifoldShell, isOk, isOrientedFace, isShape1D, isShape3D, isShell, isSolid, isValidSolid, isVertex, isWire, kernelError, manifoldShell, map, mapErr, match, moduleInitError, ok, orientedFace, pivotPlane, queryError, resolveDirection, resolvePlane, sketcherStateError, toVec2, toVec3, translatePlane, tryCatch, tryCatchAsync, typeCastError, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validSolid, validationError, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, withScope, withScopeResult, withScopeResultAsync };
@@ -1,6 +1,6 @@
1
1
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
2
2
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
3
- import { p as distance2d, u as angle2d, v as samePoint } from "./helpers-BipNXMsi.js";
3
+ import { p as distance2d, u as angle2d, v as samePoint } from "./helpers-DiOcrJ0A.js";
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,6 +1,6 @@
1
1
  const require_constants = require("./constants-BOVyEYGH.cjs");
2
2
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
3
- const require_helpers = require("./helpers-uUXFl5Pn.cjs");
3
+ const require_helpers = require("./helpers-HM_a__7P.cjs");
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {