brepjs 18.34.0 → 18.35.1

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 +7 -7
  2. package/dist/2d.js +7 -7
  3. package/dist/{blueprint-Ctq3YI2J.cjs → blueprint-BF0DcVwE.cjs} +7 -7
  4. package/dist/{blueprint-Dgn4HasF.js → blueprint-KwH2JNPU.js} +7 -7
  5. package/dist/{blueprintFns-BSc5kM0e.cjs → blueprintFns-CbPsMijw.cjs} +3 -3
  6. package/dist/{blueprintFns-CJ8_2wwd.js → blueprintFns-X7jVGGUE.js} +3 -3
  7. package/dist/{blueprintSketcher-DfN5LL45.js → blueprintSketcher-BwFpbp0B.js} +4 -4
  8. package/dist/{blueprintSketcher-DHzyZSgL.cjs → blueprintSketcher-m18T1U1T.cjs} +4 -4
  9. package/dist/{boolean2D-DRlzu7K9.cjs → boolean2D-BzlbvCIH.cjs} +5 -5
  10. package/dist/{boolean2D-BDVlp701.js → boolean2D-DAq015PP.js} +5 -5
  11. package/dist/{booleanFns-BZEfiLXh.cjs → booleanFns-D19tR8Gn.cjs} +6 -6
  12. package/dist/{booleanFns-CE3u1eIK.js → booleanFns-nHsLqZ7Y.js} +6 -6
  13. package/dist/brepjs.cjs +32 -26
  14. package/dist/brepjs.js +27 -27
  15. package/dist/{cameraFns-CFnPg5-H.js → cameraFns-Bhjy2SuC.js} +3 -3
  16. package/dist/{cameraFns-D8o9TUpN.cjs → cameraFns-D_8-JO0p.cjs} +3 -3
  17. package/dist/core/errors.d.ts +4 -0
  18. package/dist/core.cjs +3 -3
  19. package/dist/core.js +3 -3
  20. package/dist/{cornerFinder-B3DEv78h.cjs → cornerFinder-Bmp3Vm5g.cjs} +1 -1
  21. package/dist/{cornerFinder-B1DivYhK.js → cornerFinder-U6kzoCXY.js} +1 -1
  22. package/dist/{curveFns-ZXCrxKal.cjs → curveFns-p1YEnmZu.cjs} +2 -2
  23. package/dist/{curveFns-CwBnLSGs.js → curveFns-rUkX4tEm.js} +2 -2
  24. package/dist/{drawFns-B3xmKGqo.cjs → drawFns-BGIQ1IeV.cjs} +14 -14
  25. package/dist/{drawFns-DmDtAGJ3.js → drawFns-ZhKR7xa0.js} +14 -14
  26. package/dist/{errors-DxoD7zgx.cjs → errors-CXJtc4I7.cjs} +4 -0
  27. package/dist/{errors-BJSTLaDI.js → errors-DNWJsfVU.js} +4 -0
  28. package/dist/{extrudeFns-B2Jh4xdE.js → extrudeFns-Cl_azGgy.js} +2 -2
  29. package/dist/{extrudeFns-BCHwL5Rz.cjs → extrudeFns-DpRGUaxD.cjs} +2 -2
  30. package/dist/{faceFns-dIScXlyz.cjs → faceFns-C6qUr_gw.cjs} +3 -3
  31. package/dist/{faceFns-43zWb-uD.js → faceFns-eVWgSIzt.js} +3 -3
  32. package/dist/{helpers-BcvfYBlZ.js → helpers-BhJOo535.js} +7 -7
  33. package/dist/{helpers-WD_MY4EK.cjs → helpers-DNVILwHA.cjs} +7 -7
  34. package/dist/{historyFns-CesKJg-g.js → historyFns-ByJG4mBP.js} +5 -5
  35. package/dist/{historyFns-D0-tL5u2.cjs → historyFns-C2glA6vu.cjs} +5 -5
  36. package/dist/{importFns-CfXF57GK.cjs → importFns-CJc5NYJp.cjs} +3 -3
  37. package/dist/{importFns-nh6XUS6V.js → importFns-DuAmdf0Q.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/kernel/manifold/replay.d.ts +7 -0
  42. package/dist/{measureFns-CZPHU8Fq.js → measureFns-BiflqrZ_.js} +4 -4
  43. package/dist/{measureFns-BlNPRAt1.cjs → measureFns-D7lxkIjt.cjs} +4 -4
  44. package/dist/measurement.cjs +1 -1
  45. package/dist/measurement.js +1 -1
  46. package/dist/{meshFns-44MzVWmw.js → meshFns-Bbm7_5wS.js} +43 -7
  47. package/dist/{meshFns-thnWU79u.cjs → meshFns-D66okPxP.cjs} +43 -7
  48. package/dist/operations.cjs +2 -2
  49. package/dist/operations.js +2 -2
  50. package/dist/{planeOps-C6wxugvC.cjs → planeOps-BA4HfgQu.cjs} +1 -1
  51. package/dist/{planeOps-CblVcWbn.js → planeOps-DSjjtrjg.js} +1 -1
  52. package/dist/{primitiveFns-wcHq2Dpc.cjs → primitiveFns-CXn9Jl4q.cjs} +8 -8
  53. package/dist/{primitiveFns-7-BpVEfR.js → primitiveFns-vQh7Lz7B.js} +8 -8
  54. package/dist/projection.cjs +1 -1
  55. package/dist/projection.js +1 -1
  56. package/dist/query.cjs +2 -2
  57. package/dist/query.js +2 -2
  58. package/dist/result.cjs +1 -1
  59. package/dist/result.js +1 -1
  60. package/dist/{shapeFns-DpurOSYX.cjs → shapeFns-B3v9_keQ.cjs} +3 -3
  61. package/dist/{shapeFns-tYJBM_yH.js → shapeFns-BbHQjI5-.js} +3 -3
  62. package/dist/shapeRef.cjs +1 -1
  63. package/dist/shapeRef.js +1 -1
  64. package/dist/{shapeRefFns-DhkB2xrl.js → shapeRefFns-BOsX8Tim.js} +4 -4
  65. package/dist/{shapeRefFns-DNlnIVGa.cjs → shapeRefFns-CkafUjdM.cjs} +4 -4
  66. package/dist/{shapeTypes-C16Am1Cu.cjs → shapeTypes-Bbh2doYh.cjs} +24 -10
  67. package/dist/{shapeTypes-DgIDUXrS.js → shapeTypes-C-MpR5-e.js} +24 -10
  68. package/dist/sketching.cjs +3 -3
  69. package/dist/sketching.js +3 -3
  70. package/dist/{solidBuilders-oYCo3H_H.js → solidBuilders-C44fKbQQ.js} +3 -3
  71. package/dist/{solidBuilders-BRd294hA.cjs → solidBuilders-Ck6gpdQR.cjs} +3 -3
  72. package/dist/{surfaceBuilders-BuNn7mbE.js → surfaceBuilders-D4p1YPCz.js} +3 -3
  73. package/dist/{surfaceBuilders-C-MXZeRY.cjs → surfaceBuilders-DsISMCwj.cjs} +3 -3
  74. package/dist/text.cjs +2 -2
  75. package/dist/text.js +2 -2
  76. package/dist/{textBlueprints-4DfEJMBH.js → textBlueprints-BKdQqBn8.js} +9 -9
  77. package/dist/{textBlueprints-ihVTYQz7.cjs → textBlueprints-C93RophN.cjs} +9 -9
  78. package/dist/{textMetrics-KvDcXO5Z.cjs → textMetrics-2vq4PFfz.cjs} +2 -2
  79. package/dist/{textMetrics-CgtxG_bI.js → textMetrics-DEmVsP5C.js} +2 -2
  80. package/dist/topology/meshFns.d.ts +0 -5
  81. package/dist/topology/shapeFns.d.ts +1 -1
  82. package/dist/topology/topologyQueryFns.d.ts +22 -1
  83. package/dist/topology.cjs +7 -7
  84. package/dist/topology.js +7 -7
  85. package/dist/{topologyQueryFns-DNs19Af_.js → topologyQueryFns-B81GSST_.js} +45 -3
  86. package/dist/{topologyQueryFns-DTvwHQnu.cjs → topologyQueryFns-C0kAqcn5.cjs} +80 -2
  87. package/dist/vectors.cjs +1 -1
  88. package/dist/vectors.js +1 -1
  89. package/package.json +10 -7
package/dist/2d.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
3
- const require_errors = require("./errors-DxoD7zgx.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-DHzyZSgL.cjs");
6
- const require_blueprint = require("./blueprint-Ctq3YI2J.cjs");
7
- const require_boolean2D = require("./boolean2D-DRlzu7K9.cjs");
8
- const require_blueprintFns = require("./blueprintFns-BSc5kM0e.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
3
+ const require_errors = require("./errors-CXJtc4I7.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-m18T1U1T.cjs");
6
+ const require_blueprint = require("./blueprint-BF0DcVwE.cjs");
7
+ const require_boolean2D = require("./boolean2D-BzlbvCIH.cjs");
8
+ const require_blueprintFns = require("./blueprintFns-CbPsMijw.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
- import { B as createKernelHandle, Q as getKernel2D, a as createEdge } 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 { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-DfN5LL45.js";
5
- import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-Dgn4HasF.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-BDVlp701.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-CJ8_2wwd.js";
1
+ import { B as createKernelHandle, Q as getKernel2D, a as createEdge } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
3
+ import { w as kernelCallRaw } from "./topologyQueryFns-B81GSST_.js";
4
+ import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-BwFpbp0B.js";
5
+ import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-KwH2JNPU.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-DAq015PP.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-X7jVGGUE.js";
8
8
  //#region src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,14 +1,14 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
+ const require_errors = require("./errors-CXJtc4I7.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-C6wxugvC.cjs");
7
- const require_faceFns = require("./faceFns-dIScXlyz.cjs");
8
- const require_curveFns = require("./curveFns-ZXCrxKal.cjs");
6
+ const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
7
+ const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
8
+ const require_curveFns = require("./curveFns-p1YEnmZu.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-C-MXZeRY.cjs");
11
- const require_helpers = require("./helpers-WD_MY4EK.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-DsISMCwj.cjs");
11
+ const require_helpers = require("./helpers-DNVILwHA.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
- import { G as unregisterFromCleanup, Q as getKernel2D, U as registerForCleanup, Z as getKernel, a as createEdge, u as createWire } from "./shapeTypes-DgIDUXrS.js";
1
+ import { G as unregisterFromCleanup, Q as getKernel2D, U as registerForCleanup, Z as getKernel, a as createEdge, u as createWire } from "./shapeTypes-C-MpR5-e.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
- import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-BJSTLaDI.js";
3
+ import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-DNWJsfVU.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-CblVcWbn.js";
7
- import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-43zWb-uD.js";
8
- import { f as getOrientation } from "./curveFns-CwBnLSGs.js";
6
+ import { r as makePlane } from "./planeOps-DSjjtrjg.js";
7
+ import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-eVWgSIzt.js";
8
+ import { f as getOrientation } from "./curveFns-rUkX4tEm.js";
9
9
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
10
- import { r as makeFace } from "./surfaceBuilders-BuNn7mbE.js";
11
- import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-BcvfYBlZ.js";
10
+ import { r as makeFace } from "./surfaceBuilders-D4p1YPCz.js";
11
+ import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-BhJOo535.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
- const require_errors = require("./errors-DxoD7zgx.cjs");
2
- const require_blueprintSketcher = require("./blueprintSketcher-DHzyZSgL.cjs");
3
- const require_blueprint = require("./blueprint-Ctq3YI2J.cjs");
1
+ const require_errors = require("./errors-CXJtc4I7.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-m18T1U1T.cjs");
3
+ const require_blueprint = require("./blueprint-BF0DcVwE.cjs");
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
- import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
2
- import { i as CompoundBlueprint } from "./blueprintSketcher-DfN5LL45.js";
3
- import { t as Blueprint } from "./blueprint-Dgn4HasF.js";
1
+ import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
2
+ import { i as CompoundBlueprint } from "./blueprintSketcher-BwFpbp0B.js";
3
+ import { t as Blueprint } from "./blueprint-KwH2JNPU.js";
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
- import { Q as getKernel2D, Z as getKernel } from "./shapeTypes-DgIDUXrS.js";
1
+ import { Q as getKernel2D, Z as getKernel } from "./shapeTypes-C-MpR5-e.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
- import { A as ok, R as unwrap, T as isOk, b as err, h as bug, n as computationError, s as safeIndex } from "./errors-BJSTLaDI.js";
3
+ import { A as ok, R as unwrap, T as isOk, b as err, h as bug, n as computationError, s as safeIndex } from "./errors-DNWJsfVU.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 samePoint, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, v as scalarMultiply2d } from "./helpers-BcvfYBlZ.js";
7
- import { _ as Curve2D, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-Dgn4HasF.js";
6
+ import { _ as samePoint, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, v as scalarMultiply2d } from "./helpers-BhJOo535.js";
7
+ import { _ as Curve2D, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-KwH2JNPU.js";
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /** @template T */
10
10
  var FlatQueue = class {
@@ -1,10 +1,10 @@
1
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
- const require_errors = require("./errors-DxoD7zgx.cjs");
3
+ const require_errors = require("./errors-CXJtc4I7.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-WD_MY4EK.cjs");
7
- const require_blueprint = require("./blueprint-Ctq3YI2J.cjs");
6
+ const require_helpers = require("./helpers-DNVILwHA.cjs");
7
+ const require_blueprint = require("./blueprint-BF0DcVwE.cjs");
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /** @template T */
10
10
  var FlatQueue = class {
@@ -1,10 +1,10 @@
1
1
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
2
- const require_errors = require("./errors-DxoD7zgx.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
4
- const require_surfaceBuilders = require("./surfaceBuilders-C-MXZeRY.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-DHzyZSgL.cjs");
6
- const require_helpers = require("./helpers-WD_MY4EK.cjs");
7
- const require_blueprint = require("./blueprint-Ctq3YI2J.cjs");
4
+ const require_surfaceBuilders = require("./surfaceBuilders-DsISMCwj.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-m18T1U1T.cjs");
6
+ const require_helpers = require("./helpers-DNVILwHA.cjs");
7
+ const require_blueprint = require("./blueprint-BF0DcVwE.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 { n as wasmIndex } from "./vec3-Dpha8d5k.js";
2
- import { R as unwrap, h as bug, s as safeIndex } from "./errors-BJSTLaDI.js";
2
+ import { R as unwrap, h as bug, s as safeIndex } from "./errors-DNWJsfVU.js";
3
3
  import { r as lastOrThrow } from "./arrayAccess-DrUGPADn.js";
4
- import { v as zip } from "./surfaceBuilders-BuNn7mbE.js";
5
- import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-DfN5LL45.js";
6
- import { _ as samePoint$1, b as subtract2d, f as crossProduct2d, s as PRECISION_INTERSECTION } from "./helpers-BcvfYBlZ.js";
7
- import { b as removeDuplicatePoints, f as make2dSegmentCurve, t as Blueprint } from "./blueprint-Dgn4HasF.js";
4
+ import { v as zip } from "./surfaceBuilders-D4p1YPCz.js";
5
+ import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-BwFpbp0B.js";
6
+ import { _ as samePoint$1, b as subtract2d, f as crossProduct2d, s as PRECISION_INTERSECTION } from "./helpers-BhJOo535.js";
7
+ import { b as removeDuplicatePoints, f as make2dSegmentCurve, t as Blueprint } from "./blueprint-KwH2JNPU.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.
@@ -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-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
- const require_planeOps = require("./planeOps-C6wxugvC.cjs");
7
- const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
6
+ const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
7
+ const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
8
8
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-C-MXZeRY.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-DsISMCwj.cjs");
10
10
  //#region src/topology/booleanFns.ts
11
11
  /**
12
12
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -1,12 +1,12 @@
1
- import { Z as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-BJSTLaDI.js";
3
- import { l as getVertices, o as getEdges, u as getWires } from "./topologyQueryFns-DNs19Af_.js";
1
+ import { Z as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-DNWJsfVU.js";
3
+ import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-B81GSST_.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  import { h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
6
- import { o as resolvePlane } from "./planeOps-CblVcWbn.js";
7
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-tYJBM_yH.js";
6
+ import { o as resolvePlane } from "./planeOps-DSjjtrjg.js";
7
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-BbHQjI5-.js";
8
8
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
9
- import { r as makeFace } from "./surfaceBuilders-BuNn7mbE.js";
9
+ import { r as makeFace } from "./surfaceBuilders-D4p1YPCz.js";
10
10
  //#region src/topology/booleanFns.ts
11
11
  /**
12
12
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
package/dist/brepjs.cjs CHANGED
@@ -1,36 +1,36 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-ihVTYQz7.cjs");
3
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-C93RophN.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
4
4
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
5
5
  const require_occtWasmAdapter = require("./occtWasmAdapter-CdyaMnBW.cjs");
6
- const require_errors = require("./errors-DxoD7zgx.cjs");
7
- const require_topologyQueryFns = require("./topologyQueryFns-DTvwHQnu.cjs");
6
+ const require_errors = require("./errors-CXJtc4I7.cjs");
7
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
8
8
  const require_constants = require("./constants-BOVyEYGH.cjs");
9
9
  const require_types = require("./types-KjA8tY4Y.cjs");
10
10
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
11
- const require_planeOps = require("./planeOps-C6wxugvC.cjs");
12
- const require_faceFns = require("./faceFns-dIScXlyz.cjs");
13
- const require_shapeFns = require("./shapeFns-DpurOSYX.cjs");
14
- const require_curveFns = require("./curveFns-ZXCrxKal.cjs");
15
- const require_meshFns = require("./meshFns-thnWU79u.cjs");
11
+ const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
12
+ const require_faceFns = require("./faceFns-C6qUr_gw.cjs");
13
+ const require_shapeFns = require("./shapeFns-B3v9_keQ.cjs");
14
+ const require_curveFns = require("./curveFns-p1YEnmZu.cjs");
15
+ const require_meshFns = require("./meshFns-D66okPxP.cjs");
16
16
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
17
- const require_surfaceBuilders = require("./surfaceBuilders-C-MXZeRY.cjs");
18
- const require_booleanFns = require("./booleanFns-BZEfiLXh.cjs");
19
- const require_primitiveFns = require("./primitiveFns-wcHq2Dpc.cjs");
20
- const require_historyFns = require("./historyFns-D0-tL5u2.cjs");
21
- const require_blueprintSketcher = require("./blueprintSketcher-DHzyZSgL.cjs");
22
- const require_helpers = require("./helpers-WD_MY4EK.cjs");
23
- const require_drawFns = require("./drawFns-B3xmKGqo.cjs");
24
- const require_solidBuilders = require("./solidBuilders-BRd294hA.cjs");
25
- const require_measureFns = require("./measureFns-BlNPRAt1.cjs");
26
- const require_cornerFinder = require("./cornerFinder-B3DEv78h.cjs");
27
- const require_boolean2D = require("./boolean2D-DRlzu7K9.cjs");
28
- const require_blueprintFns = require("./blueprintFns-BSc5kM0e.cjs");
29
- const require_importFns = require("./importFns-CfXF57GK.cjs");
30
- const require_extrudeFns = require("./extrudeFns-BCHwL5Rz.cjs");
31
- const require_cameraFns = require("./cameraFns-D8o9TUpN.cjs");
32
- const require_textMetrics = require("./textMetrics-KvDcXO5Z.cjs");
33
- const require_shapeRefFns = require("./shapeRefFns-DNlnIVGa.cjs");
17
+ const require_surfaceBuilders = require("./surfaceBuilders-DsISMCwj.cjs");
18
+ const require_booleanFns = require("./booleanFns-D19tR8Gn.cjs");
19
+ const require_primitiveFns = require("./primitiveFns-CXn9Jl4q.cjs");
20
+ const require_historyFns = require("./historyFns-C2glA6vu.cjs");
21
+ const require_blueprintSketcher = require("./blueprintSketcher-m18T1U1T.cjs");
22
+ const require_helpers = require("./helpers-DNVILwHA.cjs");
23
+ const require_drawFns = require("./drawFns-BGIQ1IeV.cjs");
24
+ const require_solidBuilders = require("./solidBuilders-Ck6gpdQR.cjs");
25
+ const require_measureFns = require("./measureFns-D7lxkIjt.cjs");
26
+ const require_cornerFinder = require("./cornerFinder-Bmp3Vm5g.cjs");
27
+ const require_boolean2D = require("./boolean2D-BzlbvCIH.cjs");
28
+ const require_blueprintFns = require("./blueprintFns-CbPsMijw.cjs");
29
+ const require_importFns = require("./importFns-CJc5NYJp.cjs");
30
+ const require_extrudeFns = require("./extrudeFns-DpRGUaxD.cjs");
31
+ const require_cameraFns = require("./cameraFns-D_8-JO0p.cjs");
32
+ const require_textMetrics = require("./textMetrics-2vq4PFfz.cjs");
33
+ const require_shapeRefFns = require("./shapeRefFns-CkafUjdM.cjs");
34
34
  const require_workerHandler = require("./workerHandler-CdlOTwJg.cjs");
35
35
  //#region src/topology/shapeBooleans.ts
36
36
  var BOPAlgo_GlueShift = 1;
@@ -5366,6 +5366,7 @@ exports.fuseWithEvolution = require_primitiveFns.fuseWithEvolution;
5366
5366
  exports.gearGeometry = gearGeometry;
5367
5367
  exports.getBounds = require_topologyQueryFns.getBounds;
5368
5368
  exports.getBounds2D = require_blueprintFns.getBounds2D;
5369
+ exports.getCompSolids = require_topologyQueryFns.getCompSolids;
5369
5370
  exports.getCurveType = require_curveFns.getCurveType;
5370
5371
  exports.getDisposalStats = require_shapeTypes.getDisposalStats;
5371
5372
  exports.getEdges = require_topologyQueryFns.getEdges;
@@ -5384,7 +5385,9 @@ exports.getOrientation2D = require_blueprintFns.getOrientation2D;
5384
5385
  exports.getPerformanceStats = require_shapeTypes.getPerformanceStats;
5385
5386
  exports.getShapeColor = require_shapeFns.getShapeColor;
5386
5387
  exports.getShapeKind = require_shapeTypes.getShapeKind;
5388
+ exports.getShells = require_topologyQueryFns.getShells;
5387
5389
  exports.getSingleFace = require_helpers.getSingleFace;
5390
+ exports.getSolids = require_topologyQueryFns.getSolids;
5388
5391
  exports.getSurfaceType = require_faceFns.getSurfaceType;
5389
5392
  exports.getTagMetadata = require_shapeFns.getTagMetadata;
5390
5393
  exports.getVertices = require_topologyQueryFns.getVertices;
@@ -5458,8 +5461,11 @@ exports.isValid = isValid;
5458
5461
  exports.isValidSolid = require_shapeTypes.isValidSolid;
5459
5462
  exports.isVertex = require_shapeTypes.isVertex;
5460
5463
  exports.isWire = require_shapeTypes.isWire;
5464
+ exports.iterCompSolids = require_topologyQueryFns.iterCompSolids;
5461
5465
  exports.iterEdges = require_topologyQueryFns.iterEdges;
5462
5466
  exports.iterFaces = require_topologyQueryFns.iterFaces;
5467
+ exports.iterShells = require_topologyQueryFns.iterShells;
5468
+ exports.iterSolids = require_topologyQueryFns.iterSolids;
5463
5469
  exports.iterTopo = require_faceFns.iterTopo;
5464
5470
  exports.iterVertices = require_topologyQueryFns.iterVertices;
5465
5471
  exports.iterWires = require_topologyQueryFns.iterWires;
package/dist/brepjs.js CHANGED
@@ -1,35 +1,35 @@
1
- import { $ as init, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getActiveKernelId, Y as _usingCtx, Z as getKernel, _ as isSolid, a as createEdge, at as supportsConstraintSketch, b as closedWire, c as createSolid, ct as getPerformanceStats, d as isCompound, et as initFromManifold, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as withKernel, j as validSolid, k as planarFace, l as createVertex, lt as resetPerformanceStats, m as isShape1D, n as castShape3D, nt as prewarm, o as createFace, ot as supportsProjection, p as isFace, q as withScopeResult, rt as registerKernel, s as createShell, st as BrepkitAdapter, t as castShape, tt as initFromOC, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-DgIDUXrS.js";
1
+ import { $ as init, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getActiveKernelId, Y as _usingCtx, Z as getKernel, _ as isSolid, a as createEdge, at as supportsConstraintSketch, b as closedWire, c as createSolid, ct as getPerformanceStats, d as isCompound, et as initFromManifold, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as withKernel, j as validSolid, k as planarFace, l as createVertex, lt as resetPerformanceStats, m as isShape1D, n as castShape3D, nt as prewarm, o as createFace, ot as supportsProjection, p as isFace, q as withScopeResult, rt as registerKernel, s as createShell, st as BrepkitAdapter, t as castShape, tt as initFromOC, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-C-MpR5-e.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
3
  import { t as OcctWasmAdapter } from "./occtWasmAdapter-COKB8ItA.js";
4
- import { A as ok, B as unwrapOr, C as fromNullable, D as mapBoth, E as map, F as tapErr, H as zip, I as tryCatch, L as tryCatchAsync, M as orElse, N as pipeline, O as mapErr, P as tap, R as unwrap, S as flatten, T as isOk, V as unwrapOrElse, _ as all, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, j as or, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-BJSTLaDI.js";
5
- import { _ as kernelCall, a as getCachedSurfaceType, d as invalidateShapeCache, f as iterEdges, g as vertexPosition, h as iterWires, l as getVertices, m as iterVertices, n as getBounds, o as getEdges, p as iterFaces, s as getFaces, t as describe$1, u as getWires, v as kernelCallRaw, y as kernelCallScoped } from "./topologyQueryFns-DNs19Af_.js";
4
+ import { A as ok, B as unwrapOr, C as fromNullable, D as mapBoth, E as map, F as tapErr, H as zip, I as tryCatch, L as tryCatchAsync, M as orElse, N as pipeline, O as mapErr, P as tap, R as unwrap, S as flatten, T as isOk, V as unwrapOrElse, _ as all, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, j as or, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-DNWJsfVU.js";
5
+ import { C as kernelCall, S as vertexPosition, T as kernelCallScoped, _ 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 kernelCallRaw, x as iterWires, y as iterSolids } from "./topologyQueryFns-B81GSST_.js";
6
6
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
7
7
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
8
8
  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";
9
- import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-CblVcWbn.js";
10
- import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-43zWb-uD.js";
11
- import { C as findFacesByTag, D as tagFaces, E as setTagMetadata, O as getFaceOrigins, S as getShapeColor, T as getTagMetadata, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$2, h as translate$2, i as isEqualShape, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$2, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$2, w as getFaceTags, x as getFaceColor, y as colorFaces } from "./shapeFns-tYJBM_yH.js";
12
- import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-CwBnLSGs.js";
13
- import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o as meshMultiLOD, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-44MzVWmw.js";
9
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-DSjjtrjg.js";
10
+ import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-eVWgSIzt.js";
11
+ import { C as findFacesByTag, D as tagFaces, E as setTagMetadata, O as getFaceOrigins, S as getShapeColor, T as getTagMetadata, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$2, h as translate$2, i as isEqualShape, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$2, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$2, w as getFaceTags, x as getFaceColor, y as colorFaces } from "./shapeFns-BbHQjI5-.js";
12
+ import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-rUkX4tEm.js";
13
+ import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o as meshMultiLOD, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-Bbm7_5wS.js";
14
14
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
15
- import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-BuNn7mbE.js";
16
- import { a as fuseAll, c as sectionToFace$1, i as fuse$2, l as slice$1, n as cut$2, o as intersect$2, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-CE3u1eIK.js";
17
- import { $ as fuseAllBisect, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as cutAllBisect, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, dt as toLODGeometryData, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-7-BpVEfR.js";
18
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, 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";
19
- import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-DfN5LL45.js";
20
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BcvfYBlZ.js";
21
- 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-DmDtAGJ3.js";
22
- import { r as makeCylinder } from "./solidBuilders-oYCo3H_H.js";
23
- 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-CZPHU8Fq.js";
24
- import { t as cornerFinder } from "./cornerFinder-B1DivYhK.js";
25
- 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-BDVlp701.js";
26
- 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-CJ8_2wwd.js";
27
- 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";
28
- import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-B2Jh4xdE.js";
29
- import { a as Sketch, b as loftAll, 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, y as loft$1 } from "./textBlueprints-4DfEJMBH.js";
30
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CFnPg5-H.js";
31
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CgtxG_bI.js";
32
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-DhkB2xrl.js";
15
+ import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-D4p1YPCz.js";
16
+ import { a as fuseAll, c as sectionToFace$1, i as fuse$2, l as slice$1, n as cut$2, o as intersect$2, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-nHsLqZ7Y.js";
17
+ import { $ as fuseAllBisect, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as cutAllBisect, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, dt as toLODGeometryData, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-vQh7Lz7B.js";
18
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, 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-ByJG4mBP.js";
19
+ import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BwFpbp0B.js";
20
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BhJOo535.js";
21
+ 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-ZhKR7xa0.js";
22
+ import { r as makeCylinder } from "./solidBuilders-C44fKbQQ.js";
23
+ 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-BiflqrZ_.js";
24
+ import { t as cornerFinder } from "./cornerFinder-U6kzoCXY.js";
25
+ 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-DAq015PP.js";
26
+ 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-X7jVGGUE.js";
27
+ import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-DuAmdf0Q.js";
28
+ import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-Cl_azGgy.js";
29
+ import { a as Sketch, b as loftAll, 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, y as loft$1 } from "./textBlueprints-BKdQqBn8.js";
30
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-Bhjy2SuC.js";
31
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DEmVsP5C.js";
32
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BOsX8Tim.js";
33
33
  import { a as createTaskQueue, c as isEmpty$1, d as isDisposeRequest, f as isErrorResponse, h as isSuccessResponse, i as createWorkerClient, l as pendingCount, m as isOperationRequest, n as createWorkerHandler, o as dequeueTask, p as isInitRequest, r as registerHandler, s as enqueueTask, t as createOperationRegistry, u as rejectAll } from "./workerHandler-CFetYgIm.js";
34
34
  //#region \0rolldown/runtime.js
35
35
  var __defProp = Object.defineProperty;
@@ -5148,4 +5148,4 @@ var csg_exports = /* @__PURE__ */ __exportAll({
5148
5148
  withEvaluator: () => withEvaluator
5149
5149
  });
5150
5150
  //#endregion
5151
- export { BaseSketcher2d, BlueprintSketcher, BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, FaceSketcher, HASH_CODE_MAX, OK, OcctWasmAdapter, RAD2DEG, Sketch, Sketcher, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, assignRoles, autoHeal, bezier, blueprintToDXF, booleanPipeline, booleans_exports as booleans, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, captureHint, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkBoolean, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, construction_exports as construction, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRef, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, csg_exports as csg, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutAllBisect, cutBlueprints, cutWithEvolution, cylinder, defaultScorer, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, extrudeAll, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseAllBisect, fuseBlueprints, fuseWithEvolution, gearGeometry, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getOrientation2D, getPerformanceStats, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromManifold, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioNs_exports as io, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, loftAll, makeBaseBox, makeExternalGear, makeInternalGear, makePlane, makePlanetaryGear, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, measurement_exports as measurement, mesh, meshEdges, meshMultiLOD, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifiers_exports as modifiers, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, patterns_exports as patterns, pendingCount, pipeline, pivotPlane, planarFace, planarWire, planetPlacements, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, primitives_exports as primitives, projectEdges, projectPointOnFace, query_exports as query, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resetPerformanceStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, resolveRef, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLODGeometryData, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, transforms_exports as transforms, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, updateRoles, uvBounds, uvCoordinates, validSolid, validatePlanetary, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
5151
+ export { BaseSketcher2d, BlueprintSketcher, BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, FaceSketcher, HASH_CODE_MAX, OK, OcctWasmAdapter, RAD2DEG, Sketch, Sketcher, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, assignRoles, autoHeal, bezier, blueprintToDXF, booleanPipeline, booleans_exports as booleans, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, captureHint, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkBoolean, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, construction_exports as construction, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRef, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, csg_exports as csg, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutAllBisect, cutBlueprints, cutWithEvolution, cylinder, defaultScorer, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, extrudeAll, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseAllBisect, fuseBlueprints, fuseWithEvolution, gearGeometry, getBounds, getBounds2D, getCompSolids, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getOrientation2D, getPerformanceStats, getShapeColor, getShapeKind, getShells, getSingleFace, getSolids, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromManifold, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioNs_exports as io, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterCompSolids, iterEdges, iterFaces, iterShells, iterSolids, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, loftAll, makeBaseBox, makeExternalGear, makeInternalGear, makePlane, makePlanetaryGear, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, measurement_exports as measurement, mesh, meshEdges, meshMultiLOD, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifiers_exports as modifiers, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, patterns_exports as patterns, pendingCount, pipeline, pivotPlane, planarFace, planarWire, planetPlacements, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, primitives_exports as primitives, projectEdges, projectPointOnFace, query_exports as query, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resetPerformanceStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, resolveRef, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLODGeometryData, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, transforms_exports as transforms, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, updateRoles, uvBounds, uvCoordinates, validSolid, validatePlanetary, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
@@ -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 } from "./errors-BJSTLaDI.js";
3
- import { o as getEdges } from "./topologyQueryFns-DNs19Af_.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, d as validationError } from "./errors-DNWJsfVU.js";
3
+ import { s as getEdges } from "./topologyQueryFns-B81GSST_.js";
4
4
  import { c as vecLength, d as vecNormalize, g as vecSub, r as vecCross } from "./vecOps-SKPRvPH-.js";
5
5
  //#region src/projection/projectionPlanes.ts
6
6
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
@@ -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-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-C0kAqcn5.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
5
5
  //#region src/projection/projectionPlanes.ts
6
6
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
@@ -73,8 +73,12 @@ export declare const BrepErrorCode: {
73
73
  readonly STEP_EXPORT_FAILED: "STEP_EXPORT_FAILED";
74
74
  readonly STEP_EXPORT_CONFIGURED_FAILED: "STEP_EXPORT_CONFIGURED_FAILED";
75
75
  readonly STEP_FILE_READ_ERROR: "STEP_FILE_READ_ERROR";
76
+ readonly STEP_EXPORT_CRASHED: "STEP_EXPORT_CRASHED";
77
+ readonly STEP_EXPORT_UNSERIALIZABLE: "STEP_EXPORT_UNSERIALIZABLE";
76
78
  readonly STL_EXPORT_FAILED: "STL_EXPORT_FAILED";
77
79
  readonly STL_FILE_READ_ERROR: "STL_FILE_READ_ERROR";
80
+ readonly STL_EXPORT_CRASHED: "STL_EXPORT_CRASHED";
81
+ readonly STL_EXPORT_UNSERIALIZABLE: "STL_EXPORT_UNSERIALIZABLE";
78
82
  readonly STEP_IMPORT_FAILED: "STEP_IMPORT_FAILED";
79
83
  readonly STL_IMPORT_FAILED: "STL_IMPORT_FAILED";
80
84
  readonly IGES_EXPORT_FAILED: "IGES_EXPORT_FAILED";
package/dist/core.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-C16Am1Cu.cjs");
3
- const require_errors = require("./errors-DxoD7zgx.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-Bbh2doYh.cjs");
3
+ const require_errors = require("./errors-CXJtc4I7.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_types = require("./types-KjA8tY4Y.cjs");
6
6
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
7
- const require_planeOps = require("./planeOps-C6wxugvC.cjs");
7
+ const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
8
8
  exports.BrepBugError = require_errors.BrepBugError;
9
9
  exports.DEG2RAD = require_constants.DEG2RAD;
10
10
  exports.DisposalScope = require_shapeTypes.DisposalScope;
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
- import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, 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, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-BJSTLaDI.js";
1
+ import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, B as unwrapOr, E as map, I as tryCatch, L as tryCatchAsync, 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, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-DNWJsfVU.js";
3
3
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
4
4
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
5
5
  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";
6
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-CblVcWbn.js";
6
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-DSjjtrjg.js";
7
7
  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
  const require_constants = require("./constants-BOVyEYGH.cjs");
2
2
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
3
- const require_helpers = require("./helpers-WD_MY4EK.cjs");
3
+ const require_helpers = require("./helpers-DNVILwHA.cjs");
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
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
2
2
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-BcvfYBlZ.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-BhJOo535.js";
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -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-Bbh2doYh.cjs");
2
+ const require_errors = require("./errors-CXJtc4I7.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
@@ -1,5 +1,5 @@
1
- import { Z as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-DgIDUXrS.js";
2
- import { A as ok, b as err, l as typeCastError } from "./errors-BJSTLaDI.js";
1
+ import { Z as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-C-MpR5-e.js";
2
+ import { A as ok, b as err, l as typeCastError } from "./errors-DNWJsfVU.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.