brepjs 18.34.0 → 18.35.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 (88) hide show
  1. package/dist/2d.cjs +7 -7
  2. package/dist/2d.js +7 -7
  3. package/dist/{blueprint-Ctq3YI2J.cjs → blueprint-BB_nIqH9.cjs} +7 -7
  4. package/dist/{blueprint-Dgn4HasF.js → blueprint-DmWmhXi4.js} +7 -7
  5. package/dist/{blueprintFns-CJ8_2wwd.js → blueprintFns-B4xOCuT3.js} +3 -3
  6. package/dist/{blueprintFns-BSc5kM0e.cjs → blueprintFns-C3NplQ86.cjs} +3 -3
  7. package/dist/{blueprintSketcher-DHzyZSgL.cjs → blueprintSketcher-C1C9mJuK.cjs} +4 -4
  8. package/dist/{blueprintSketcher-DfN5LL45.js → blueprintSketcher-DaqbMIfk.js} +4 -4
  9. package/dist/{boolean2D-BDVlp701.js → boolean2D-B3DOcj6G.js} +5 -5
  10. package/dist/{boolean2D-DRlzu7K9.cjs → boolean2D-CbChdB3y.cjs} +5 -5
  11. package/dist/{booleanFns-CE3u1eIK.js → booleanFns-Byv33KMu.js} +6 -6
  12. package/dist/{booleanFns-BZEfiLXh.cjs → booleanFns-X-pT22Jh.cjs} +6 -6
  13. package/dist/brepjs.cjs +32 -26
  14. package/dist/brepjs.js +27 -27
  15. package/dist/{cameraFns-D8o9TUpN.cjs → cameraFns-B9duZ94U.cjs} +3 -3
  16. package/dist/{cameraFns-CFnPg5-H.js → cameraFns-DkUpqMdm.js} +3 -3
  17. package/dist/core/errors.d.ts +2 -0
  18. package/dist/core.cjs +3 -3
  19. package/dist/core.js +3 -3
  20. package/dist/{cornerFinder-B1DivYhK.js → cornerFinder-4ieWbVIN.js} +1 -1
  21. package/dist/{cornerFinder-B3DEv78h.cjs → cornerFinder-BEHY1k0Q.cjs} +1 -1
  22. package/dist/{curveFns-ZXCrxKal.cjs → curveFns-ChkLRL8a.cjs} +2 -2
  23. package/dist/{curveFns-CwBnLSGs.js → curveFns-DHAvRosC.js} +2 -2
  24. package/dist/{drawFns-DmDtAGJ3.js → drawFns-D2u7C_7g.js} +14 -14
  25. package/dist/{drawFns-B3xmKGqo.cjs → drawFns-DzgqLm1w.cjs} +14 -14
  26. package/dist/{errors-DxoD7zgx.cjs → errors-D9tBO0km.cjs} +2 -0
  27. package/dist/{errors-BJSTLaDI.js → errors-DOPT3OTg.js} +2 -0
  28. package/dist/{extrudeFns-B2Jh4xdE.js → extrudeFns-WH0yd_Fb.js} +2 -2
  29. package/dist/{extrudeFns-BCHwL5Rz.cjs → extrudeFns-WYDSlEW8.cjs} +2 -2
  30. package/dist/{faceFns-dIScXlyz.cjs → faceFns-DNOsmyRn.cjs} +3 -3
  31. package/dist/{faceFns-43zWb-uD.js → faceFns-Druzi4mz.js} +3 -3
  32. package/dist/{helpers-WD_MY4EK.cjs → helpers-BxCilYLb.cjs} +7 -7
  33. package/dist/{helpers-BcvfYBlZ.js → helpers-DXRsnEpy.js} +7 -7
  34. package/dist/{historyFns-D0-tL5u2.cjs → historyFns-C9J3s9xB.cjs} +5 -5
  35. package/dist/{historyFns-CesKJg-g.js → historyFns-DqY8zLUq.js} +5 -5
  36. package/dist/{importFns-CfXF57GK.cjs → importFns-CAR9g6W8.cjs} +3 -3
  37. package/dist/{importFns-nh6XUS6V.js → importFns-D8NOuxmA.js} +3 -3
  38. package/dist/index.d.ts +1 -1
  39. package/dist/io.cjs +2 -2
  40. package/dist/io.js +2 -2
  41. package/dist/{measureFns-BlNPRAt1.cjs → measureFns-CSbBsOLY.cjs} +4 -4
  42. package/dist/{measureFns-CZPHU8Fq.js → measureFns-Dg3pLNRE.js} +4 -4
  43. package/dist/measurement.cjs +1 -1
  44. package/dist/measurement.js +1 -1
  45. package/dist/{meshFns-44MzVWmw.js → meshFns-CkzlLwZw.js} +18 -7
  46. package/dist/{meshFns-thnWU79u.cjs → meshFns-yusYccFx.cjs} +18 -7
  47. package/dist/operations.cjs +2 -2
  48. package/dist/operations.js +2 -2
  49. package/dist/{planeOps-C6wxugvC.cjs → planeOps-DTY92UCh.cjs} +1 -1
  50. package/dist/{planeOps-CblVcWbn.js → planeOps-YTeuXs80.js} +1 -1
  51. package/dist/{primitiveFns-7-BpVEfR.js → primitiveFns-CbpHBZdf.js} +8 -8
  52. package/dist/{primitiveFns-wcHq2Dpc.cjs → primitiveFns-DzGTYy_l.cjs} +8 -8
  53. package/dist/projection.cjs +1 -1
  54. package/dist/projection.js +1 -1
  55. package/dist/query.cjs +2 -2
  56. package/dist/query.js +2 -2
  57. package/dist/result.cjs +1 -1
  58. package/dist/result.js +1 -1
  59. package/dist/{shapeFns-tYJBM_yH.js → shapeFns-BYKFvtTb.js} +3 -3
  60. package/dist/{shapeFns-DpurOSYX.cjs → shapeFns-CSlSyyi1.cjs} +3 -3
  61. package/dist/shapeRef.cjs +1 -1
  62. package/dist/shapeRef.js +1 -1
  63. package/dist/{shapeRefFns-DNlnIVGa.cjs → shapeRefFns-B4xO4AI1.cjs} +4 -4
  64. package/dist/{shapeRefFns-DhkB2xrl.js → shapeRefFns-UIsEV1jg.js} +4 -4
  65. package/dist/{shapeTypes-DgIDUXrS.js → shapeTypes-D946X6Qx.js} +1 -1
  66. package/dist/{shapeTypes-C16Am1Cu.cjs → shapeTypes-DRIhPf8A.cjs} +1 -1
  67. package/dist/sketching.cjs +3 -3
  68. package/dist/sketching.js +3 -3
  69. package/dist/{solidBuilders-oYCo3H_H.js → solidBuilders-2xiE6FDe.js} +3 -3
  70. package/dist/{solidBuilders-BRd294hA.cjs → solidBuilders-8PLYgzL9.cjs} +3 -3
  71. package/dist/{surfaceBuilders-BuNn7mbE.js → surfaceBuilders-CUFC3tNT.js} +3 -3
  72. package/dist/{surfaceBuilders-C-MXZeRY.cjs → surfaceBuilders-CZ7u_Xmi.cjs} +3 -3
  73. package/dist/text.cjs +2 -2
  74. package/dist/text.js +2 -2
  75. package/dist/{textBlueprints-ihVTYQz7.cjs → textBlueprints-CZ4MphXu.cjs} +9 -9
  76. package/dist/{textBlueprints-4DfEJMBH.js → textBlueprints-Dv4YWJrA.js} +9 -9
  77. package/dist/{textMetrics-KvDcXO5Z.cjs → textMetrics-BpmNTwLm.cjs} +2 -2
  78. package/dist/{textMetrics-CgtxG_bI.js → textMetrics-Dvh4HzSZ.js} +2 -2
  79. package/dist/topology/meshFns.d.ts +0 -5
  80. package/dist/topology/shapeFns.d.ts +1 -1
  81. package/dist/topology/topologyQueryFns.d.ts +22 -1
  82. package/dist/topology.cjs +7 -7
  83. package/dist/topology.js +7 -7
  84. package/dist/{topologyQueryFns-DNs19Af_.js → topologyQueryFns-D5YTf9GW.js} +45 -3
  85. package/dist/{topologyQueryFns-DTvwHQnu.cjs → topologyQueryFns-esX6R5j4.cjs} +80 -2
  86. package/dist/vectors.cjs +1 -1
  87. package/dist/vectors.js +1 -1
  88. package/package.json +4 -1
@@ -1,22 +1,22 @@
1
- import { R as DisposalScope, Y as _usingCtx, Z as getKernel, a as createEdge, o as createFace, u as createWire } from "./shapeTypes-DgIDUXrS.js";
1
+ import { R as DisposalScope, Y as _usingCtx, Z as getKernel, a as createEdge, o as createFace, u as createWire } from "./shapeTypes-D946X6Qx.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
- import { R as unwrap, h as bug, s as safeIndex } from "./errors-BJSTLaDI.js";
4
- import { o as getEdges } from "./topologyQueryFns-DNs19Af_.js";
3
+ import { R as unwrap, h as bug, s as safeIndex } from "./errors-DOPT3OTg.js";
4
+ import { s as getEdges } from "./topologyQueryFns-D5YTf9GW.js";
5
5
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
6
6
  import { r as toVec3 } from "./types-D24Y27N0.js";
7
7
  import { d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-SKPRvPH-.js";
8
- import { a as planeToWorld, o as resolvePlane } from "./planeOps-CblVcWbn.js";
9
- import { _ as downcast, c as normalAt, l as outerWire, n as faceCenter, p as uvBounds, u as pointOnSurface } from "./faceFns-43zWb-uD.js";
10
- import { c as curveStartPoint, m as offsetWire2D, r as curveIsClosed } from "./curveFns-CwBnLSGs.js";
8
+ import { a as planeToWorld, o as resolvePlane } from "./planeOps-YTeuXs80.js";
9
+ import { _ as downcast, c as normalAt, l as outerWire, n as faceCenter, p as uvBounds, u as pointOnSurface } from "./faceFns-Druzi4mz.js";
10
+ import { c as curveStartPoint, m as offsetWire2D, r as curveIsClosed } from "./curveFns-DHAvRosC.js";
11
11
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
12
- import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-BuNn7mbE.js";
13
- import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-DfN5LL45.js";
14
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-BcvfYBlZ.js";
15
- import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-Dgn4HasF.js";
16
- import { t as cornerFinder } from "./cornerFinder-B1DivYhK.js";
17
- import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BDVlp701.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-4DfEJMBH.js";
19
- import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-CFnPg5-H.js";
12
+ import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-CUFC3tNT.js";
13
+ import { a as Blueprints, c as make2dOffset, i as CompoundBlueprint, l as intersectCurves, n as BaseSketcher2d, o as chamferCurves, s as filletCurves, u as Flatbush } from "./blueprintSketcher-DaqbMIfk.js";
14
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-DXRsnEpy.js";
15
+ import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-DmWmhXi4.js";
16
+ import { t as cornerFinder } from "./cornerFinder-4ieWbVIN.js";
17
+ import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-B3DOcj6G.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-Dv4YWJrA.js";
19
+ import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-DkUpqMdm.js";
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
@@ -1,22 +1,22 @@
1
- const require_textBlueprints = require("./textBlueprints-ihVTYQz7.cjs");
2
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-CZ4MphXu.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
3
3
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
4
- const require_errors = require("./errors-DxoD7zgx.cjs");
5
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
4
+ const require_errors = require("./errors-D9tBO0km.cjs");
5
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.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-C6wxugvC.cjs");
10
- const require_faceFns = require("./faceFns-dIScXlyz.cjs");
11
- const require_curveFns = require("./curveFns-ZXCrxKal.cjs");
9
+ const require_planeOps = require("./planeOps-DTY92UCh.cjs");
10
+ const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
11
+ const require_curveFns = require("./curveFns-ChkLRL8a.cjs");
12
12
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
13
- const require_surfaceBuilders = require("./surfaceBuilders-C-MXZeRY.cjs");
14
- const require_blueprintSketcher = require("./blueprintSketcher-DHzyZSgL.cjs");
15
- const require_helpers = require("./helpers-WD_MY4EK.cjs");
16
- const require_blueprint = require("./blueprint-Ctq3YI2J.cjs");
17
- const require_cornerFinder = require("./cornerFinder-B3DEv78h.cjs");
18
- const require_boolean2D = require("./boolean2D-DRlzu7K9.cjs");
19
- const require_cameraFns = require("./cameraFns-D8o9TUpN.cjs");
13
+ const require_surfaceBuilders = require("./surfaceBuilders-CZ7u_Xmi.cjs");
14
+ const require_blueprintSketcher = require("./blueprintSketcher-C1C9mJuK.cjs");
15
+ const require_helpers = require("./helpers-BxCilYLb.cjs");
16
+ const require_blueprint = require("./blueprint-BB_nIqH9.cjs");
17
+ const require_cornerFinder = require("./cornerFinder-BEHY1k0Q.cjs");
18
+ const require_boolean2D = require("./boolean2D-CbChdB3y.cjs");
19
+ const require_cameraFns = require("./cameraFns-B9duZ94U.cjs");
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
@@ -354,8 +354,10 @@ var BrepErrorCode = {
354
354
  STEP_EXPORT_FAILED: "STEP_EXPORT_FAILED",
355
355
  STEP_EXPORT_CONFIGURED_FAILED: "STEP_EXPORT_CONFIGURED_FAILED",
356
356
  STEP_FILE_READ_ERROR: "STEP_FILE_READ_ERROR",
357
+ STEP_EXPORT_CRASHED: "STEP_EXPORT_CRASHED",
357
358
  STL_EXPORT_FAILED: "STL_EXPORT_FAILED",
358
359
  STL_FILE_READ_ERROR: "STL_FILE_READ_ERROR",
360
+ STL_EXPORT_CRASHED: "STL_EXPORT_CRASHED",
359
361
  STEP_IMPORT_FAILED: "STEP_IMPORT_FAILED",
360
362
  STL_IMPORT_FAILED: "STL_IMPORT_FAILED",
361
363
  IGES_EXPORT_FAILED: "IGES_EXPORT_FAILED",
@@ -354,8 +354,10 @@ var BrepErrorCode = {
354
354
  STEP_EXPORT_FAILED: "STEP_EXPORT_FAILED",
355
355
  STEP_EXPORT_CONFIGURED_FAILED: "STEP_EXPORT_CONFIGURED_FAILED",
356
356
  STEP_FILE_READ_ERROR: "STEP_FILE_READ_ERROR",
357
+ STEP_EXPORT_CRASHED: "STEP_EXPORT_CRASHED",
357
358
  STL_EXPORT_FAILED: "STL_EXPORT_FAILED",
358
359
  STL_FILE_READ_ERROR: "STL_FILE_READ_ERROR",
360
+ STL_EXPORT_CRASHED: "STL_EXPORT_CRASHED",
359
361
  STEP_IMPORT_FAILED: "STEP_IMPORT_FAILED",
360
362
  STL_IMPORT_FAILED: "STL_IMPORT_FAILED",
361
363
  IGES_EXPORT_FAILED: "IGES_EXPORT_FAILED",
@@ -1,5 +1,5 @@
1
- import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-BJSTLaDI.js";
1
+ import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DOPT3OTg.js";
3
3
  import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
4
4
  //#region src/operations/extrudeUtils.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
4
  //#region src/operations/extrudeUtils.ts
5
5
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
4
4
  const require_types = require("./types-KjA8tY4Y.cjs");
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, R as unwrap, b as err, l as typeCastError } from "./errors-BJSTLaDI.js";
3
- import { a as getCachedSurfaceType } from "./topologyQueryFns-DNs19Af_.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, R as unwrap, b as err, l as typeCastError } from "./errors-DOPT3OTg.js";
3
+ import { a as getCachedSurfaceType } from "./topologyQueryFns-D5YTf9GW.js";
4
4
  import { r as toVec3 } from "./types-D24Y27N0.js";
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.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-dIScXlyz.cjs");
7
- const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
8
- const require_curveFns = require("./curveFns-ZXCrxKal.cjs");
9
- const require_measureFns = require("./measureFns-BlNPRAt1.cjs");
6
+ const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
7
+ const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
8
+ const require_curveFns = require("./curveFns-ChkLRL8a.cjs");
9
+ const require_measureFns = require("./measureFns-CSbBsOLY.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,12 +1,12 @@
1
- import { Z as getKernel, p as isFace } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-BJSTLaDI.js";
3
- import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-DNs19Af_.js";
1
+ import { Z as getKernel, p as isFace } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-DOPT3OTg.js";
3
+ import { c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-D5YTf9GW.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 { c as normalAt, o as getSurfaceType } from "./faceFns-43zWb-uD.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-tYJBM_yH.js";
8
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-CwBnLSGs.js";
9
- import { n as measureArea } from "./measureFns-CZPHU8Fq.js";
6
+ import { c as normalAt, o as getSurfaceType } from "./faceFns-Druzi4mz.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-BYKFvtTb.js";
8
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-DHAvRosC.js";
9
+ import { n as measureArea } from "./measureFns-Dg3pLNRE.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,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
- const require_faceFns = require("./faceFns-dIScXlyz.cjs");
5
- const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
6
- const require_booleanFns = require("./booleanFns-BZEfiLXh.cjs");
4
+ const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
5
+ const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
6
+ const require_booleanFns = require("./booleanFns-X-pT22Jh.cjs");
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,9 +1,9 @@
1
- import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-BJSTLaDI.js";
1
+ import { B as createKernelHandle, Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-DOPT3OTg.js";
3
3
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
4
- import { v as fromBREP } from "./faceFns-43zWb-uD.js";
5
- import { s as toBREP } from "./shapeFns-tYJBM_yH.js";
6
- import { a as fuseAll } from "./booleanFns-CE3u1eIK.js";
4
+ import { v as fromBREP } from "./faceFns-Druzi4mz.js";
5
+ import { s as toBREP } from "./shapeFns-BYKFvtTb.js";
6
+ import { a as fuseAll } from "./booleanFns-Byv33KMu.js";
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
+ const require_errors = require("./errors-D9tBO0km.cjs");
4
4
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
5
- const require_blueprint = require("./blueprint-Ctq3YI2J.cjs");
5
+ const require_blueprint = require("./blueprint-BB_nIqH9.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) {
@@ -1,8 +1,8 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-DgIDUXrS.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
2
2
  import { n as wasmIndex, t as vec3At$1 } from "./vec3-Dpha8d5k.js";
3
- import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
3
+ import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-DOPT3OTg.js";
4
4
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
5
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-Dgn4HasF.js";
5
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-DmWmhXi4.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) {
package/dist/index.d.ts CHANGED
@@ -72,7 +72,7 @@ export type { Curve2DHandle } from './core/curve2dHandle.js';
72
72
  export { createHandle, createKernelHandle, DisposalScope, withScope, withScopeResult, withScopeResultAsync, isLive, getDisposalStats, resetDisposalStats, } from './core/disposal.js';
73
73
  export type { Plane, PlaneName, PlaneInput } from './core/planeTypes.js';
74
74
  export { createPlane, createNamedPlane, resolvePlane, translatePlane, pivotPlane, } from './core/planeOps.js';
75
- export { getHashCode, isSameShape, isEqualShape, getEdges, getFaces, getWires, getVertices, iterEdges, iterFaces, iterWires, iterVertices, getBounds, vertexPosition, invalidateShapeCache, setShapeOrigin, getFaceOrigins, resize, type Bounds3D, type ShapeDescription, } from './topology/shapeFns.js';
75
+ export { getHashCode, isSameShape, isEqualShape, getEdges, getFaces, getWires, getVertices, getSolids, getShells, getCompSolids, iterEdges, iterFaces, iterWires, iterVertices, iterSolids, iterShells, iterCompSolids, getBounds, vertexPosition, invalidateShapeCache, setShapeOrigin, getFaceOrigins, resize, type Bounds3D, type ShapeDescription, } from './topology/shapeFns.js';
76
76
  export { tagFaces, findFacesByTag, getFaceTags, setTagMetadata, getTagMetadata, } from './topology/metadata/faceTagFns.js';
77
77
  export { colorFaces, colorShape, getFaceColor, getShapeColor, } from './topology/metadata/colorFns.js';
78
78
  export type { Color, ColorInput } from './topology/metadata/colorFns.js';
package/dist/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-thnWU79u.cjs");
3
- const require_importFns = require("./importFns-CfXF57GK.cjs");
2
+ const require_meshFns = require("./meshFns-yusYccFx.cjs");
3
+ const require_importFns = require("./importFns-CAR9g6W8.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-44MzVWmw.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-nh6XUS6V.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-CkzlLwZw.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-D8NOuxmA.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
4
- const require_faceFns = require("./faceFns-dIScXlyz.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
4
+ const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
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
- import { Z as getKernel } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
3
- import { v as kernelCallRaw } from "./topologyQueryFns-DNs19Af_.js";
4
- import { p as uvBounds } from "./faceFns-43zWb-uD.js";
1
+ import { Z as getKernel } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DOPT3OTg.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-D5YTf9GW.js";
4
+ import { p as uvBounds } from "./faceFns-Druzi4mz.js";
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-BlNPRAt1.cjs");
2
+ const require_measureFns = require("./measureFns-CSbBsOLY.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-CZPHU8Fq.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-Dg3pLNRE.js";
2
2
  export { createDistanceQuery, measureArea, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps };
@@ -1,6 +1,6 @@
1
- import { Z as getKernel } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, b as err, r as ioError } from "./errors-BJSTLaDI.js";
3
- import { O as getFaceOrigins } from "./shapeFns-tYJBM_yH.js";
1
+ import { Z as getKernel } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, r as ioError } from "./errors-DOPT3OTg.js";
3
+ import { O as getFaceOrigins } from "./shapeFns-BYKFvtTb.js";
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -181,13 +181,25 @@ function meshEdges(shape, { tolerance = .001, angularTolerance = .1, cache = tru
181
181
  *
182
182
  * @returns Ok with a Blob (MIME type `application/STEP`), or Err on failure.
183
183
  */
184
+ /**
185
+ * Classify a thrown export error into three distinct cases:
186
+ * - the kernel throws "<FMT> export failed:" when the writer reports a non-success status;
187
+ * - a `WebAssembly.RuntimeError` means the writer trapped on geometry it could not serialize
188
+ * (e.g. a degenerate sub-shape) — this can corrupt the kernel for the rest of the session,
189
+ * so it must not be silently relabelled as a file-read issue;
190
+ * - anything else is an FS read failure on the V7 file path (write succeeded, readback threw).
191
+ */
192
+ function exportError(e, fmt) {
193
+ if (e instanceof Error && e.message.startsWith(`${fmt} export failed`)) return ioError(`${fmt}_EXPORT_FAILED`, `Failed to write ${fmt} file`, e);
194
+ if (e instanceof WebAssembly.RuntimeError) return ioError(`${fmt}_EXPORT_CRASHED`, `${fmt} export crashed the kernel (${e.message}); the shape likely contains geometry the ${fmt} writer cannot serialize`, e);
195
+ return ioError(`${fmt}_FILE_READ_ERROR`, `Failed to read exported ${fmt} file`, e);
196
+ }
184
197
  function exportSTEP(shape) {
185
198
  try {
186
199
  const stepString = getKernel().exportSTEP([shape.wrapped]);
187
200
  return ok(new Blob([stepString], { type: "application/STEP" }));
188
201
  } catch (e) {
189
- const isWriteFailure = e instanceof Error && e.message.startsWith("STEP export failed");
190
- return err(ioError(isWriteFailure ? "STEP_EXPORT_FAILED" : "STEP_FILE_READ_ERROR", isWriteFailure ? "Failed to write STEP file" : "Failed to read exported STEP file", e));
202
+ return err(exportError(e, "STEP"));
191
203
  }
192
204
  }
193
205
  /**
@@ -201,8 +213,7 @@ function exportSTL(shape, { tolerance = .001, angularTolerance = .1, binary = fa
201
213
  const stlData = getKernel().exportSTL(shape.wrapped, binary);
202
214
  return ok(new Blob([stlData], { type: "application/sla" }));
203
215
  } catch (e) {
204
- const isWriteFailure = e instanceof Error && e.message.startsWith("STL export failed");
205
- return err(ioError(isWriteFailure ? "STL_EXPORT_FAILED" : "STL_FILE_READ_ERROR", isWriteFailure ? "Failed to write STL file" : "Failed to read exported STL file", e));
216
+ return err(exportError(e, "STL"));
206
217
  }
207
218
  }
208
219
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
4
4
  //#region src/topology/meshCache.ts
5
5
  /**
6
6
  * Build a parameter key for the inner cache map (excludes shape identity).
@@ -181,13 +181,25 @@ function meshEdges(shape, { tolerance = .001, angularTolerance = .1, cache = tru
181
181
  *
182
182
  * @returns Ok with a Blob (MIME type `application/STEP`), or Err on failure.
183
183
  */
184
+ /**
185
+ * Classify a thrown export error into three distinct cases:
186
+ * - the kernel throws "<FMT> export failed:" when the writer reports a non-success status;
187
+ * - a `WebAssembly.RuntimeError` means the writer trapped on geometry it could not serialize
188
+ * (e.g. a degenerate sub-shape) — this can corrupt the kernel for the rest of the session,
189
+ * so it must not be silently relabelled as a file-read issue;
190
+ * - anything else is an FS read failure on the V7 file path (write succeeded, readback threw).
191
+ */
192
+ function exportError(e, fmt) {
193
+ if (e instanceof Error && e.message.startsWith(`${fmt} export failed`)) return require_errors.ioError(`${fmt}_EXPORT_FAILED`, `Failed to write ${fmt} file`, e);
194
+ if (e instanceof WebAssembly.RuntimeError) return require_errors.ioError(`${fmt}_EXPORT_CRASHED`, `${fmt} export crashed the kernel (${e.message}); the shape likely contains geometry the ${fmt} writer cannot serialize`, e);
195
+ return require_errors.ioError(`${fmt}_FILE_READ_ERROR`, `Failed to read exported ${fmt} file`, e);
196
+ }
184
197
  function exportSTEP(shape) {
185
198
  try {
186
199
  const stepString = require_shapeTypes.getKernel().exportSTEP([shape.wrapped]);
187
200
  return require_errors.ok(new Blob([stepString], { type: "application/STEP" }));
188
201
  } catch (e) {
189
- const isWriteFailure = e instanceof Error && e.message.startsWith("STEP export failed");
190
- return require_errors.err(require_errors.ioError(isWriteFailure ? "STEP_EXPORT_FAILED" : "STEP_FILE_READ_ERROR", isWriteFailure ? "Failed to write STEP file" : "Failed to read exported STEP file", e));
202
+ return require_errors.err(exportError(e, "STEP"));
191
203
  }
192
204
  }
193
205
  /**
@@ -201,8 +213,7 @@ function exportSTL(shape, { tolerance = .001, angularTolerance = .1, binary = fa
201
213
  const stlData = require_shapeTypes.getKernel().exportSTL(shape.wrapped, binary);
202
214
  return require_errors.ok(new Blob([stlData], { type: "application/sla" }));
203
215
  } catch (e) {
204
- const isWriteFailure = e instanceof Error && e.message.startsWith("STL export failed");
205
- return require_errors.err(require_errors.ioError(isWriteFailure ? "STL_EXPORT_FAILED" : "STL_FILE_READ_ERROR", isWriteFailure ? "Failed to write STL file" : "Failed to read exported STL file", e));
216
+ return require_errors.err(exportError(e, "STL"));
206
217
  }
207
218
  }
208
219
  /**
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_historyFns = require("./historyFns-D0-tL5u2.cjs");
3
- const require_extrudeFns = require("./extrudeFns-BCHwL5Rz.cjs");
2
+ const require_historyFns = require("./historyFns-C9J3s9xB.cjs");
3
+ const require_extrudeFns = require("./extrudeFns-WYDSlEW8.cjs");
4
4
  exports.addChild = require_historyFns.addChild;
5
5
  exports.addStep = require_historyFns.addStep;
6
6
  exports.circularPattern = require_historyFns.circularPattern;
@@ -1,3 +1,3 @@
1
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-CesKJg-g.js";
2
- import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-B2Jh4xdE.js";
1
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, T as gridPattern, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, g as addChild, h as undoLast, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-DqY8zLUq.js";
2
+ import { c as sweep, i as complexExtrude, l as twistExtrude, s as supportExtrude } from "./extrudeFns-WH0yd_Fb.js";
3
3
  export { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, findNode, findStep, getShape as getHistoryShape, gridPattern, linearPattern, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly };
@@ -1,4 +1,4 @@
1
- const require_errors = require("./errors-DxoD7zgx.cjs");
1
+ const require_errors = require("./errors-D9tBO0km.cjs");
2
2
  const require_constants = require("./constants-BOVyEYGH.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 { A as ok, R as unwrap, b as err, d as validationError } from "./errors-BJSTLaDI.js";
1
+ import { A as ok, R as unwrap, b as err, d as validationError } from "./errors-DOPT3OTg.js";
2
2
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
3
3
  import { r as toVec3 } from "./types-D24Y27N0.js";
4
4
  import { d as vecNormalize, h as vecScale, m as vecRotate, r as vecCross, s as vecIsZero, t as vecAdd } from "./vecOps-SKPRvPH-.js";
@@ -1,13 +1,13 @@
1
- import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-BJSTLaDI.js";
3
- import { c as getOrCreateCache, d as invalidateShapeCache, i as getCachedIsValid, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-DNs19Af_.js";
1
+ import { Z as getKernel, _ as isSolid, c as createSolid, h as isShape3D, p as isFace, r as castShapeWithKnownType, t as castShape, x as isClosedWire, y as isWire } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, T as isOk, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DOPT3OTg.js";
3
+ import { c as getFaces, i as getCachedIsValid, l as getOrCreateCache, m as invalidateShapeCache, p as getWires, s as getEdges } from "./topologyQueryFns-D5YTf9GW.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
- import { _ as downcast } from "./faceFns-43zWb-uD.js";
6
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-tYJBM_yH.js";
5
+ import { _ as downcast } from "./faceFns-Druzi4mz.js";
6
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, h as translate } from "./shapeFns-BYKFvtTb.js";
7
7
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
8
- import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-BuNn7mbE.js";
9
- import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-CE3u1eIK.js";
10
- import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-oYCo3H_H.js";
8
+ import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-CUFC3tNT.js";
9
+ import { a as fuseAll, i as fuse, n as cut, r as cutAll } from "./booleanFns-Byv33KMu.js";
10
+ import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-2xiE6FDe.js";
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
- const require_faceFns = require("./faceFns-dIScXlyz.cjs");
6
- const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
5
+ const require_faceFns = require("./faceFns-DNOsmyRn.cjs");
6
+ const require_shapeFns = require("./shapeFns-CSlSyyi1.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-C-MXZeRY.cjs");
9
- const require_booleanFns = require("./booleanFns-BZEfiLXh.cjs");
10
- const require_solidBuilders = require("./solidBuilders-BRd294hA.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-CZ7u_Xmi.cjs");
9
+ const require_booleanFns = require("./booleanFns-X-pT22Jh.cjs");
10
+ const require_solidBuilders = require("./solidBuilders-8PLYgzL9.cjs");
11
11
  //#region src/topology/threeHelpers.ts
12
12
  /**
13
13
  * Convert a ShapeMesh into BufferGeometry-compatible typed arrays.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_cameraFns = require("./cameraFns-D8o9TUpN.cjs");
2
+ const require_cameraFns = require("./cameraFns-B9duZ94U.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-CFnPg5-H.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-DkUpqMdm.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-WD_MY4EK.cjs");
3
- const require_cornerFinder = require("./cornerFinder-B3DEv78h.cjs");
2
+ const require_helpers = require("./helpers-BxCilYLb.cjs");
3
+ const require_cornerFinder = require("./cornerFinder-BEHY1k0Q.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-BcvfYBlZ.js";
2
- import { t as cornerFinder } from "./cornerFinder-B1DivYhK.js";
1
+ import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-DXRsnEpy.js";
2
+ import { t as cornerFinder } from "./cornerFinder-4ieWbVIN.js";
3
3
  export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
package/dist/result.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
3
  exports.BrepBugError = require_errors.BrepBugError;
4
4
  exports.BrepErrorCode = require_errors.BrepErrorCode;
5
5
  exports.OK = require_errors.OK;
package/dist/result.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-BJSTLaDI.js";
1
+ import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, N as pipeline, O as mapErr, R as unwrap, T as isOk, V as unwrapOrElse, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-DOPT3OTg.js";
2
2
  export { BrepBugError, BrepErrorCode, OK, andThen, bug, collect, computationError, err, flatMap, ioError, isErr, isOk, kernelError, map, mapErr, match, moduleInitError, ok, pipeline, queryError, sketcherStateError, tryCatch, tryCatchAsync, typeCastError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validationError };
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
3
- import { _ as kernelCall, c as getOrCreateCache, r as getCacheEntry, s as getFaces, v as kernelCallRaw } from "./topologyQueryFns-DNs19Af_.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-D946X6Qx.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DOPT3OTg.js";
3
+ import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-D5YTf9GW.js";
4
4
  import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-DRIhPf8A.cjs");
2
+ const require_errors = require("./errors-D9tBO0km.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-esX6R5j4.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  //#region src/topology/metadata/originTrackingFns.ts
6
6
  /**
package/dist/shapeRef.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeRefFns = require("./shapeRefFns-DNlnIVGa.cjs");
2
+ const require_shapeRefFns = require("./shapeRefFns-B4xO4AI1.cjs");
3
3
  exports.assignRoles = require_shapeRefFns.assignRoles;
4
4
  exports.captureHint = require_shapeRefFns.captureHint;
5
5
  exports.createRef = require_shapeRefFns.createRef;
package/dist/shapeRef.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-DhkB2xrl.js";
1
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-UIsEV1jg.js";
2
2
  export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };