brepjs 20.13.4 → 20.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{adjacencyFns-DjblerpV.cjs → adjacencyFns-B1ZWTkxw.cjs} +2 -2
  4. package/dist/{adjacencyFns-Ce4lxSWp.js → adjacencyFns-XdjXKCXE.js} +2 -2
  5. package/dist/{blueprint-D4YxCDeX.cjs → blueprint-DzhzGFy2.cjs} +5 -5
  6. package/dist/{blueprint-CeIbNzdp.js → blueprint-WAucCqwY.js} +5 -5
  7. package/dist/{blueprintFns-DEeIBzwN.js → blueprintFns-C8gt4OYm.js} +2 -2
  8. package/dist/{blueprintFns-fc9ZUSqe.cjs → blueprintFns-DnzHyTjv.cjs} +2 -2
  9. package/dist/{blueprintSketcher-BQ6ApvaQ.js → blueprintSketcher-CeMrC8k-.js} +3 -3
  10. package/dist/{blueprintSketcher-DID7kq5g.cjs → blueprintSketcher-JoLn4vSB.cjs} +3 -3
  11. package/dist/{boolean2D-BsrkJbMe.cjs → boolean2D-Cwc_4mU8.cjs} +4 -4
  12. package/dist/{boolean2D-QMPt29HH.js → boolean2D-D8_6vKh_.js} +4 -4
  13. package/dist/{booleanFns-CQIepT9X.cjs → booleanFns-BhW5eybV.cjs} +5 -5
  14. package/dist/{booleanFns-BuxgJmu2.js → booleanFns-aGRfk4ud.js} +5 -5
  15. package/dist/brepjs.cjs +29 -29
  16. package/dist/brepjs.js +29 -29
  17. package/dist/{cameraFns-s8km1l0J.js → cameraFns-CBc6tpRl.js} +3 -3
  18. package/dist/{cameraFns-DL3zo3ol.cjs → cameraFns-DhgM5-Nl.cjs} +3 -3
  19. package/dist/core/disposal.d.ts +4 -1
  20. package/dist/core.cjs +2 -2
  21. package/dist/core.js +2 -2
  22. package/dist/{cornerFinder-D7P4vdaD.js → cornerFinder-ChkO3EOO.js} +1 -1
  23. package/dist/{cornerFinder-uPZDWiyt.cjs → cornerFinder-xI6O0ZCv.cjs} +1 -1
  24. package/dist/{curveFns-CQtl1RzI.js → curveFns-Cnh0Hljx.js} +1 -1
  25. package/dist/{curveFns-DkG5mlUj.cjs → curveFns-Dz36SOE6.cjs} +1 -1
  26. package/dist/{drawFns-CSYj0D8x.cjs → drawFns-BrRyiHKp.cjs} +12 -12
  27. package/dist/{drawFns-BKnz1pa1.js → drawFns-RuUOUlSC.js} +12 -12
  28. package/dist/{faceFns-C_iC_WkC.cjs → faceFns-DfEUZlnf.cjs} +2 -2
  29. package/dist/{faceFns-f8AWRrzK.js → faceFns-Dz3eRgNR.js} +2 -2
  30. package/dist/{healingFns-BRXArH8z.js → healingFns-CCRPtrvE.js} +6 -6
  31. package/dist/{healingFns-W4_K9hXo.cjs → healingFns-D7LTrPO8.cjs} +6 -6
  32. package/dist/{helpers-m-lbbfaz.cjs → helpers-C0MoldOO.cjs} +6 -6
  33. package/dist/{helpers-COdYBjWD.js → helpers-D3oo0Zfs.js} +6 -6
  34. package/dist/{importFns-D8U3wLhV.js → importFns-BVcmm3T0.js} +5 -5
  35. package/dist/{importFns-Kr02P3cy.cjs → importFns-Sp5phi5Y.cjs} +5 -5
  36. package/dist/io.cjs +2 -2
  37. package/dist/io.js +2 -2
  38. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +20 -18
  39. package/dist/kernel/brepkit/helpers.d.ts +25 -4
  40. package/dist/{loftFns-CVk6mzZj.cjs → loftFns-BoGWrMPg.cjs} +1 -1
  41. package/dist/{loftFns-MN9TgyG4.js → loftFns-oH6dldzO.js} +1 -1
  42. package/dist/{measureFns-9GzKgCdl.js → measureFns-6mHYvqUc.js} +3 -3
  43. package/dist/{measureFns-9aeYKFiR.cjs → measureFns-CmKNZ0gC.cjs} +3 -3
  44. package/dist/measurement.cjs +2 -2
  45. package/dist/measurement.js +2 -2
  46. package/dist/{meshFns-BwsjspzI.cjs → meshFns-BFgQZGty.cjs} +3 -3
  47. package/dist/{meshFns-un9EDg7X.js → meshFns-D29JHTr6.js} +3 -3
  48. package/dist/operations.cjs +2 -2
  49. package/dist/operations.js +2 -2
  50. package/dist/{primitiveFns-CIPm9vsq.cjs → primitiveFns-Dovused4.cjs} +5 -5
  51. package/dist/{primitiveFns-BICas2bb.js → primitiveFns-uywjJ06V.js} +5 -5
  52. package/dist/{principalBoxFns-DQytdykp.js → principalBoxFns-CTVc4f8W.js} +3 -3
  53. package/dist/{principalBoxFns-CQZRNYI3.cjs → principalBoxFns-KvlaTxMs.cjs} +3 -3
  54. package/dist/projection.cjs +1 -1
  55. package/dist/projection.js +1 -1
  56. package/dist/query.cjs +2 -2
  57. package/dist/query.js +2 -2
  58. package/dist/{refResolveFns-DNnNqpyn.cjs → refResolveFns-BFws5K2t.cjs} +6 -6
  59. package/dist/{refResolveFns-CpPBZkjT.js → refResolveFns-DZoPfglj.js} +6 -6
  60. package/dist/{shapeFns-Dr_0yhYg.cjs → shapeFns-C9P1KmqH.cjs} +2 -2
  61. package/dist/{shapeFns-D6-l0Nwn.js → shapeFns-CHsoXWeu.js} +2 -2
  62. package/dist/shapeRef.cjs +1 -1
  63. package/dist/shapeRef.js +1 -1
  64. package/dist/{shapeTypes-B23U9msC.cjs → shapeTypes-BK53GmLC.cjs} +265 -52
  65. package/dist/{shapeTypes-CSWkqhe9.js → shapeTypes-Ckz9bpYW.js} +265 -52
  66. package/dist/sketching.cjs +3 -3
  67. package/dist/sketching.js +3 -3
  68. package/dist/{solidBuilders-DIlNbnwK.cjs → solidBuilders-CETSjBW2.cjs} +3 -3
  69. package/dist/{solidBuilders-CQ1oQdBY.js → solidBuilders-DMfqtfIG.js} +3 -3
  70. package/dist/{surfaceBuilders-ZW6W8S1a.js → surfaceBuilders-BeHgAqDx.js} +3 -3
  71. package/dist/{surfaceBuilders-BV-QYvCL.cjs → surfaceBuilders-vKXtKSqY.cjs} +3 -3
  72. package/dist/text.cjs +2 -2
  73. package/dist/text.js +2 -2
  74. package/dist/{textBlueprints-CwsfEEBS.js → textBlueprints-CLwy1uWM.js} +8 -8
  75. package/dist/{textBlueprints-DYrv0GjE.cjs → textBlueprints-DSiQKpe8.cjs} +8 -8
  76. package/dist/{textMetrics-B_WRck8_.js → textMetrics-1e-VHhTX.js} +1 -1
  77. package/dist/{textMetrics-gC0qYCN1.cjs → textMetrics-CzSpui4K.cjs} +1 -1
  78. package/dist/{threadFns-srKixiXB.cjs → threadFns-BEopBSv3.cjs} +7 -7
  79. package/dist/{threadFns-D9m_ywSR.js → threadFns-DveRUJwK.js} +7 -7
  80. package/dist/topology.cjs +9 -9
  81. package/dist/topology.js +9 -9
  82. package/dist/{topologyQueryFns-DJJoFJPW.cjs → topologyQueryFns--p_-tywe.cjs} +1 -1
  83. package/dist/{topologyQueryFns-D8Du44mm.js → topologyQueryFns-SINsBrMe.js} +1 -1
  84. package/dist/{validityTypes-DSzSU07u.js → validityTypes-BCZ8XRzO.js} +1 -1
  85. package/dist/{validityTypes-BkX2hYwP.cjs → validityTypes-DPAkV5rC.cjs} +1 -1
  86. package/package.json +2 -2
package/dist/2d.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
3
3
  const require_errors = require("./errors-O_blYTWT.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-DJJoFJPW.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-DID7kq5g.cjs");
6
- const require_blueprint = require("./blueprint-D4YxCDeX.cjs");
7
- const require_boolean2D = require("./boolean2D-BsrkJbMe.cjs");
8
- const require_blueprintFns = require("./blueprintFns-fc9ZUSqe.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-JoLn4vSB.cjs");
6
+ const require_blueprint = require("./blueprint-DzhzGFy2.cjs");
7
+ const require_boolean2D = require("./boolean2D-Cwc_4mU8.cjs");
8
+ const require_blueprintFns = require("./blueprintFns-DnzHyTjv.cjs");
9
9
  // 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 { F as createKernelHandle, J as getKernel2D, c as createEdge } from "./shapeTypes-CSWkqhe9.js";
1
+ import { F as createKernelHandle, J as getKernel2D, c as createEdge } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
3
- import { E as kernelCallRaw } from "./topologyQueryFns-D8Du44mm.js";
4
- import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-BQ6ApvaQ.js";
5
- import { t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-CeIbNzdp.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-QMPt29HH.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-DEeIBzwN.js";
3
+ import { E as kernelCallRaw } from "./topologyQueryFns-SINsBrMe.js";
4
+ import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-CeMrC8k-.js";
5
+ import { t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-WAucCqwY.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-D8_6vKh_.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-C8gt4OYm.js";
8
8
  // src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
2
2
  const require_occtWasmAdapter = require("./occtWasmAdapter-4YnvqZOW.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DJJoFJPW.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
5
  // src/topology/adjacencyFns.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { E as GeometryCleanupError, K as getActiveKernelId, q as getKernel, r as castResultShapeWithKnownType, t as borrowShapeWithKnownType } from "./shapeTypes-CSWkqhe9.js";
1
+ import { E as GeometryCleanupError, K as getActiveKernelId, q as getKernel, r as castResultShapeWithKnownType, t as borrowShapeWithKnownType } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { j as isUnsupportedKernelOperationError } from "./occtWasmAdapter-CGsnjMOe.js";
3
- import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-D8Du44mm.js";
3
+ import { c as getFaces, f as getVertices, l as getOrCreateCache, s as getEdges } from "./topologyQueryFns-SINsBrMe.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
5
  // src/topology/adjacencyFns.ts
6
6
  /**
@@ -1,14 +1,14 @@
1
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
2
2
  const require_bug = require("./bug-CBcpIPuf.cjs");
3
3
  const require_errors = require("./errors-O_blYTWT.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
5
  const require_types = require("./types-CjF9Rofr.cjs");
6
6
  const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
7
- const require_faceFns = require("./faceFns-C_iC_WkC.cjs");
8
- const require_curveFns = require("./curveFns-DkG5mlUj.cjs");
7
+ const require_faceFns = require("./faceFns-DfEUZlnf.cjs");
8
+ const require_curveFns = require("./curveFns-Dz36SOE6.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-BV-QYvCL.cjs");
11
- const require_helpers = require("./helpers-m-lbbfaz.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-vKXtKSqY.cjs");
11
+ const require_helpers = require("./helpers-C0MoldOO.cjs");
12
12
  // 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 { B as unregisterFromCleanup, J as getKernel2D, R as registerForCleanup, c as createEdge, p as createWire, q as getKernel } from "./shapeTypes-CSWkqhe9.js";
1
+ import { B as unregisterFromCleanup, J as getKernel2D, R as registerForCleanup, c as createEdge, p as createWire, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
3
3
  import { E as ok, P as unwrap, d as validationError, g as err, n as computationError } from "./errors-BTccWbtE.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
5
5
  import { r as toVec3 } from "./types-CKXsIm9-.js";
6
6
  import { r as makePlane } from "./planeOps-D3yDuMux.js";
7
- import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-f8AWRrzK.js";
8
- import { p as getOrientation } from "./curveFns-CQtl1RzI.js";
7
+ import { _ as cast, h as uvCoordinates, i as faceGeomType, m as uvBounds, r as faceCenter } from "./faceFns-Dz3eRgNR.js";
8
+ import { p as getOrientation } from "./curveFns-Cnh0Hljx.js";
9
9
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
10
- import { r as makeFace } from "./surfaceBuilders-ZW6W8S1a.js";
11
- import { l as add2d, m as normalize2d$1, p as distance2d, t as getSingleFace, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-COdYBjWD.js";
10
+ import { r as makeFace } from "./surfaceBuilders-BeHgAqDx.js";
11
+ import { l as add2d, m as normalize2d$1, p as distance2d, t as getSingleFace, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-D3oo0Zfs.js";
12
12
  // 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
1
  import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-BTccWbtE.js";
2
- import { i as CompoundBlueprint } from "./blueprintSketcher-BQ6ApvaQ.js";
3
- import { t as Blueprint } from "./blueprint-CeIbNzdp.js";
2
+ import { i as CompoundBlueprint } from "./blueprintSketcher-CeMrC8k-.js";
3
+ import { t as Blueprint } from "./blueprint-WAucCqwY.js";
4
4
  // src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,6 +1,6 @@
1
1
  const require_errors = require("./errors-O_blYTWT.cjs");
2
- const require_blueprintSketcher = require("./blueprintSketcher-DID7kq5g.cjs");
3
- const require_blueprint = require("./blueprint-D4YxCDeX.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-JoLn4vSB.cjs");
3
+ const require_blueprint = require("./blueprint-DzhzGFy2.cjs");
4
4
  // src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,10 +1,10 @@
1
- import { J as getKernel2D, q as getKernel } from "./shapeTypes-CSWkqhe9.js";
1
+ import { J as getKernel2D, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
3
3
  import { E as ok, P as unwrap, g as err, n as computationError, s as safeIndex, x as isOk } from "./errors-BTccWbtE.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
5
5
  import { t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
6
- import { _ as rotate2d, b as squareDistance2d, d as cartesianToPolar, f as crossProduct2d, g as polarToCartesian, h as polarAngle2d, l as add2d, p as distance2d, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-COdYBjWD.js";
7
- import { C as isPoint2D, b as normalize2d, c as make2dBezierCurve, d as make2dEllipseArc, g as approximateAsBSpline, h as make2dThreePointArc, l as make2dCircle, m as make2dTangentArc, n as asSVG, p as make2dSegmentCurve, r as viewbox, s as make2dArcFromCenter, t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-CeIbNzdp.js";
6
+ import { _ as rotate2d, b as squareDistance2d, d as cartesianToPolar, f as crossProduct2d, g as polarToCartesian, h as polarAngle2d, l as add2d, p as distance2d, v as samePoint, x as subtract2d, y as scalarMultiply2d } from "./helpers-D3oo0Zfs.js";
7
+ import { C as isPoint2D, b as normalize2d, c as make2dBezierCurve, d as make2dEllipseArc, g as approximateAsBSpline, h as make2dThreePointArc, l as make2dCircle, m as make2dTangentArc, n as asSVG, p as make2dSegmentCurve, r as viewbox, s as make2dArcFromCenter, t as Blueprint, v as Curve2D, x as BoundingBox2d } from "./blueprint-WAucCqwY.js";
8
8
  // node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -1,10 +1,10 @@
1
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
2
2
  const require_bug = require("./bug-CBcpIPuf.cjs");
3
3
  const require_errors = require("./errors-O_blYTWT.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
5
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
6
- const require_helpers = require("./helpers-m-lbbfaz.cjs");
7
- const require_blueprint = require("./blueprint-D4YxCDeX.cjs");
6
+ const require_helpers = require("./helpers-C0MoldOO.cjs");
7
+ const require_blueprint = require("./blueprint-DzhzGFy2.cjs");
8
8
  // node_modules/flatqueue/index.js
9
9
  /**
10
10
  * @typedef {Float64ArrayConstructor | Float32ArrayConstructor |
@@ -1,10 +1,10 @@
1
1
  const require_bug = require("./bug-CBcpIPuf.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
4
- const require_surfaceBuilders = require("./surfaceBuilders-BV-QYvCL.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-DID7kq5g.cjs");
6
- const require_helpers = require("./helpers-m-lbbfaz.cjs");
7
- const require_blueprint = require("./blueprint-D4YxCDeX.cjs");
4
+ const require_surfaceBuilders = require("./surfaceBuilders-vKXtKSqY.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-JoLn4vSB.cjs");
6
+ const require_helpers = require("./helpers-C0MoldOO.cjs");
7
+ const require_blueprint = require("./blueprint-DzhzGFy2.cjs");
8
8
  // src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
@@ -1,10 +1,10 @@
1
1
  import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
2
2
  import { P as unwrap, s as safeIndex } from "./errors-BTccWbtE.js";
3
3
  import { r as lastOrThrow } from "./arrayAccess-BpgouNir.js";
4
- import { v as zip } from "./surfaceBuilders-ZW6W8S1a.js";
5
- import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-BQ6ApvaQ.js";
6
- import { f as crossProduct2d, o as PRECISION_INTERSECTION, v as samePoint$1, x as subtract2d } from "./helpers-COdYBjWD.js";
7
- import { S as removeDuplicatePoints, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-CeIbNzdp.js";
4
+ import { v as zip } from "./surfaceBuilders-BeHgAqDx.js";
5
+ import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-CeMrC8k-.js";
6
+ import { f as crossProduct2d, o as PRECISION_INTERSECTION, v as samePoint$1, x as subtract2d } from "./helpers-D3oo0Zfs.js";
7
+ import { S as removeDuplicatePoints, p as make2dSegmentCurve, t as Blueprint } from "./blueprint-WAucCqwY.js";
8
8
  // src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
@@ -1,14 +1,14 @@
1
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DJJoFJPW.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
4
4
  const require_constants = require("./constants-oee0S_x6.cjs");
5
5
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
6
6
  const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
7
- const require_solidBuilders = require("./solidBuilders-DIlNbnwK.cjs");
7
+ const require_solidBuilders = require("./solidBuilders-CETSjBW2.cjs");
8
8
  const require_faceRoleFns = require("./faceRoleFns-Db5bYj4Q.cjs");
9
- const require_shapeFns = require("./shapeFns-Dr_0yhYg.cjs");
9
+ const require_shapeFns = require("./shapeFns-C9P1KmqH.cjs");
10
10
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
11
- const require_surfaceBuilders = require("./surfaceBuilders-BV-QYvCL.cjs");
11
+ const require_surfaceBuilders = require("./surfaceBuilders-vKXtKSqY.cjs");
12
12
  // src/topology/metadata/faceTagFns.ts
13
13
  var shapeTagStore = /* @__PURE__ */ new WeakMap();
14
14
  var tagMetadataStore = /* @__PURE__ */ new WeakMap();
@@ -1,14 +1,14 @@
1
- import { D as getShapeKind, E as GeometryCleanupError, G as _usingCtx, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-CSWkqhe9.js";
1
+ import { D as getShapeKind, E as GeometryCleanupError, G as _usingCtx, h as disposeResultShape, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { E as ok, P as unwrap, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, t as BrepErrorCode } from "./errors-BTccWbtE.js";
3
- import { C as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-D8Du44mm.js";
3
+ import { C as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-SINsBrMe.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-iraOnb2p.js";
5
5
  import { a as vecDot, g as vecSub, h as vecScale, t as vecAdd } from "./vecOps-S-m9H_fe.js";
6
6
  import { o as resolvePlane } from "./planeOps-D3yDuMux.js";
7
- import { d as getFaceOrigins, f as propagateOriginsByHash, p as propagateOriginsFromEvolution } from "./solidBuilders-CQ1oQdBY.js";
7
+ import { d as getFaceOrigins, f as propagateOriginsByHash, p as propagateOriginsFromEvolution } from "./solidBuilders-DMfqtfIG.js";
8
8
  import { n as hasFaceRoles, r as propagateFaceRolesFromEvolution } from "./faceRoleFns-BPxzQF-n.js";
9
- import { t as clone } from "./shapeFns-D6-l0Nwn.js";
9
+ import { t as clone } from "./shapeFns-CHsoXWeu.js";
10
10
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
11
- import { r as makeFace } from "./surfaceBuilders-ZW6W8S1a.js";
11
+ import { r as makeFace } from "./surfaceBuilders-BeHgAqDx.js";
12
12
  // src/topology/metadata/faceTagFns.ts
13
13
  var shapeTagStore = /* @__PURE__ */ new WeakMap();
14
14
  var tagMetadataStore = /* @__PURE__ */ new WeakMap();
package/dist/brepjs.cjs CHANGED
@@ -1,42 +1,42 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("./rolldown-runtime-BW-eSwOZ.cjs");
3
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
4
4
  const require_occtWasmAdapter = require("./occtWasmAdapter-4YnvqZOW.cjs");
5
5
  const require_bug = require("./bug-CBcpIPuf.cjs");
6
6
  const require_errors = require("./errors-O_blYTWT.cjs");
7
- const require_topologyQueryFns = require("./topologyQueryFns-DJJoFJPW.cjs");
8
- const require_validityTypes = require("./validityTypes-BkX2hYwP.cjs");
7
+ const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
8
+ const require_validityTypes = require("./validityTypes-DPAkV5rC.cjs");
9
9
  const require_constants = require("./constants-oee0S_x6.cjs");
10
10
  const require_types = require("./types-CjF9Rofr.cjs");
11
11
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
12
12
  const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
13
- const require_faceFns = require("./faceFns-C_iC_WkC.cjs");
14
- const require_solidBuilders = require("./solidBuilders-DIlNbnwK.cjs");
15
- const require_booleanFns = require("./booleanFns-CQIepT9X.cjs");
16
- const require_primitiveFns = require("./primitiveFns-CIPm9vsq.cjs");
17
- const require_shapeFns = require("./shapeFns-Dr_0yhYg.cjs");
18
- const require_curveFns = require("./curveFns-DkG5mlUj.cjs");
19
- const require_meshFns = require("./meshFns-BwsjspzI.cjs");
13
+ const require_faceFns = require("./faceFns-DfEUZlnf.cjs");
14
+ const require_solidBuilders = require("./solidBuilders-CETSjBW2.cjs");
15
+ const require_booleanFns = require("./booleanFns-BhW5eybV.cjs");
16
+ const require_primitiveFns = require("./primitiveFns-Dovused4.cjs");
17
+ const require_shapeFns = require("./shapeFns-C9P1KmqH.cjs");
18
+ const require_curveFns = require("./curveFns-Dz36SOE6.cjs");
19
+ const require_meshFns = require("./meshFns-BFgQZGty.cjs");
20
20
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
21
- const require_surfaceBuilders = require("./surfaceBuilders-BV-QYvCL.cjs");
22
- const require_healingFns = require("./healingFns-W4_K9hXo.cjs");
23
- const require_threadFns = require("./threadFns-srKixiXB.cjs");
24
- const require_blueprintSketcher = require("./blueprintSketcher-DID7kq5g.cjs");
25
- const require_helpers = require("./helpers-m-lbbfaz.cjs");
26
- const require_blueprint = require("./blueprint-D4YxCDeX.cjs");
27
- const require_drawFns = require("./drawFns-CSYj0D8x.cjs");
28
- const require_measureFns = require("./measureFns-9aeYKFiR.cjs");
29
- const require_cornerFinder = require("./cornerFinder-uPZDWiyt.cjs");
30
- const require_boolean2D = require("./boolean2D-BsrkJbMe.cjs");
31
- const require_blueprintFns = require("./blueprintFns-fc9ZUSqe.cjs");
32
- const require_importFns = require("./importFns-Kr02P3cy.cjs");
33
- const require_textBlueprints = require("./textBlueprints-DYrv0GjE.cjs");
34
- const require_loftFns = require("./loftFns-CVk6mzZj.cjs");
35
- const require_refResolveFns = require("./refResolveFns-DNnNqpyn.cjs");
36
- const require_adjacencyFns = require("./adjacencyFns-DjblerpV.cjs");
37
- const require_cameraFns = require("./cameraFns-DL3zo3ol.cjs");
38
- const require_textMetrics = require("./textMetrics-gC0qYCN1.cjs");
39
- const require_principalBoxFns = require("./principalBoxFns-CQZRNYI3.cjs");
21
+ const require_surfaceBuilders = require("./surfaceBuilders-vKXtKSqY.cjs");
22
+ const require_healingFns = require("./healingFns-D7LTrPO8.cjs");
23
+ const require_threadFns = require("./threadFns-BEopBSv3.cjs");
24
+ const require_blueprintSketcher = require("./blueprintSketcher-JoLn4vSB.cjs");
25
+ const require_helpers = require("./helpers-C0MoldOO.cjs");
26
+ const require_blueprint = require("./blueprint-DzhzGFy2.cjs");
27
+ const require_drawFns = require("./drawFns-BrRyiHKp.cjs");
28
+ const require_measureFns = require("./measureFns-CmKNZ0gC.cjs");
29
+ const require_cornerFinder = require("./cornerFinder-xI6O0ZCv.cjs");
30
+ const require_boolean2D = require("./boolean2D-Cwc_4mU8.cjs");
31
+ const require_blueprintFns = require("./blueprintFns-DnzHyTjv.cjs");
32
+ const require_importFns = require("./importFns-Sp5phi5Y.cjs");
33
+ const require_textBlueprints = require("./textBlueprints-DSiQKpe8.cjs");
34
+ const require_loftFns = require("./loftFns-BoGWrMPg.cjs");
35
+ const require_refResolveFns = require("./refResolveFns-BFws5K2t.cjs");
36
+ const require_adjacencyFns = require("./adjacencyFns-B1ZWTkxw.cjs");
37
+ const require_cameraFns = require("./cameraFns-DhgM5-Nl.cjs");
38
+ const require_textMetrics = require("./textMetrics-CzSpui4K.cjs");
39
+ const require_principalBoxFns = require("./principalBoxFns-KvlaTxMs.cjs");
40
40
  const require_workerPool = require("./workerPool-D5tiNXrI.cjs");
41
41
  // src/kernel/types.ts
42
42
  /** Check if the kernel supports hidden-line-removal projection. */
package/dist/brepjs.js CHANGED
@@ -1,40 +1,40 @@
1
- import { $ as initFromOC, A as as3D, C as isSolid, D as getShapeKind, E as GeometryCleanupError, F as createKernelHandle, G as _usingCtx, H as withScope, I as getDisposalStats, J as getKernel2D, K as getActiveKernelId, L as isLive, M as is3D, N as DisposalScope, P as createHandle, Q as initFromManifold, S as isShell, T as isWire, U as withScopeResult, V as withArenaCheckpoint, W as withScopeResultAsync, X as getKernelTier, Y as getKernelCapabilities, Z as init, _ as isCompound, a as castShape3D, at as withTier, b as isShape1D, c as createEdge, ct as resetPerformanceStats, d as createSolid, et as prewarm, f as createVertex, h as disposeResultShape, i as castShape, it as withQuality, j as is2D, k as as2D, l as createFace, lt as currentQuality, n as castResultShape, nt as registerKernelTier, ot as BrepkitAdapter, p as createWire, q as getKernel, rt as withKernel, s as createCompound, st as getPerformanceStats, tt as registerKernel, u as createShell, ut as qualityDeflection, v as isEdge, w as isVertex, x as isShape3D, y as isFace, z as resetDisposalStats } from "./shapeTypes-CSWkqhe9.js";
1
+ import { $ as initFromOC, A as as3D, C as isSolid, D as getShapeKind, E as GeometryCleanupError, F as createKernelHandle, G as _usingCtx, H as withScope, I as getDisposalStats, J as getKernel2D, K as getActiveKernelId, L as isLive, M as is3D, N as DisposalScope, P as createHandle, Q as initFromManifold, S as isShell, T as isWire, U as withScopeResult, V as withArenaCheckpoint, W as withScopeResultAsync, X as getKernelTier, Y as getKernelCapabilities, Z as init, _ as isCompound, a as castShape3D, at as withTier, b as isShape1D, c as createEdge, ct as resetPerformanceStats, d as createSolid, et as prewarm, f as createVertex, h as disposeResultShape, i as castShape, it as withQuality, j as is2D, k as as2D, l as createFace, lt as currentQuality, n as castResultShape, nt as registerKernelTier, ot as BrepkitAdapter, p as createWire, q as getKernel, rt as withKernel, s as createCompound, st as getPerformanceStats, tt as registerKernel, u as createShell, ut as qualityDeflection, v as isEdge, w as isVertex, x as isShape3D, y as isFace, z as resetDisposalStats } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { M as DEFAULT_CAPABILITIES, N as EXACT_BREP_CAPABILITIES, t as OcctWasmAdapter } from "./occtWasmAdapter-CGsnjMOe.js";
3
3
  import { i as wasmIndex, n as bug, t as BrepBugError } from "./bug-ClMTAJhe.js";
4
4
  import { A as tap, C as mapBoth, D as or, E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, O as orElse, P as unwrap, R as zip, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, j as tapErr, k as pipeline, l as typeCastError, m as andThen, n as computationError, o as queryError, p as all, r as ioError, t as BrepErrorCode, u as unsupportedError, v as flatten, w as mapErr, x as isOk, y as fromNullable } from "./errors-BTccWbtE.js";
5
- import { D as kernelCallScoped, E as kernelCallRaw, T as kernelCall, _ 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 vertexPosition, x as iterWires, y as iterSolids } from "./topologyQueryFns-D8Du44mm.js";
6
- import { a as isPlanarFace, c as manifoldShell, d as planarWire, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, o as isPlanarWire, r as isManifoldShell, s as isValidSolid, t as closedWire, u as planarFace } from "./validityTypes-DSzSU07u.js";
5
+ import { D as kernelCallScoped, E as kernelCallRaw, T as kernelCall, _ 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 vertexPosition, x as iterWires, y as iterSolids } from "./topologyQueryFns-SINsBrMe.js";
6
+ import { a as isPlanarFace, c as manifoldShell, d as planarWire, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, o as isPlanarWire, r as isManifoldShell, s as isValidSolid, t as closedWire, u as planarFace } from "./validityTypes-BCZ8XRzO.js";
7
7
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
8
8
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-CKXsIm9-.js";
9
9
  import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-S-m9H_fe.js";
10
10
  import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-D3yDuMux.js";
11
- import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, p as removeHolesFromFace, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-f8AWRrzK.js";
12
- import { d as getFaceOrigins, m as setShapeOrigin, r as makeCylinder, t as makeCompound } from "./solidBuilders-CQ1oQdBY.js";
13
- import { C as getFaceTags, E as tagFaces, S as findFacesByTag, T as setTagMetadata, _ as colorFaces, a as fuse$2, b as getShapeColor, c as section$1, d as split$1, g as propagateMetadataThroughRelocation, i as cutAll$2, l as sectionToFace$1, o as fuseAll$2, p as hasAnyMetadata, r as cut$2, s as intersect$2, t as booleanPipeline, u as slice$1, v as colorShape, w as getTagMetadata, x as parseColor, y as getFaceColor } from "./booleanFns-BuxgJmu2.js";
14
- import { A as locate$1, C as threePointArc, D as wireLoop, E as wire, F as transformCopy$1, I as translate$2, M as resize, N as rotate$2, O as applyMatrix$1, P as scale$3, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, j as mirror$2, k as composeTransforms, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus$1, x as subFace, y as solid } from "./primitiveFns-BICas2bb.js";
15
- import { a as isSameShape, i as isEqualShape, n as getHashCode, o as simplify$1, r as isEmpty$2, s as toBREP$1, t as clone$1 } from "./shapeFns-D6-l0Nwn.js";
16
- import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-CQtl1RzI.js";
17
- import { a as meshEdges$1, c as meshMultiLOD, d as buildMeshCacheKey, f as clearMeshCache, i as mesh$1, l as scaleDefaultTolerance, n as exportSTEP, o as meshLODs, p as createMeshCache, r as exportSTL, s as meshLODsProgressive, t as exportIGES } from "./meshFns-un9EDg7X.js";
11
+ import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, p as removeHolesFromFace, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, x as isCompSolid, y as downcast } from "./faceFns-Dz3eRgNR.js";
12
+ import { d as getFaceOrigins, m as setShapeOrigin, r as makeCylinder, t as makeCompound } from "./solidBuilders-DMfqtfIG.js";
13
+ import { C as getFaceTags, E as tagFaces, S as findFacesByTag, T as setTagMetadata, _ as colorFaces, a as fuse$2, b as getShapeColor, c as section$1, d as split$1, g as propagateMetadataThroughRelocation, i as cutAll$2, l as sectionToFace$1, o as fuseAll$2, p as hasAnyMetadata, r as cut$2, s as intersect$2, t as booleanPipeline, u as slice$1, v as colorShape, w as getTagMetadata, x as parseColor, y as getFaceColor } from "./booleanFns-aGRfk4ud.js";
14
+ import { A as locate$1, C as threePointArc, D as wireLoop, E as wire, F as transformCopy$1, I as translate$2, M as resize, N as rotate$2, O as applyMatrix$1, P as scale$3, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere$1, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, j as mirror$2, k as composeTransforms, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus$1, x as subFace, y as solid } from "./primitiveFns-uywjJ06V.js";
15
+ import { a as isSameShape, i as isEqualShape, n as getHashCode, o as simplify$1, r as isEmpty$2, s as toBREP$1, t as clone$1 } from "./shapeFns-CHsoXWeu.js";
16
+ import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-Cnh0Hljx.js";
17
+ import { a as meshEdges$1, c as meshMultiLOD, d as buildMeshCacheKey, f as clearMeshCache, i as mesh$1, l as scaleDefaultTolerance, n as exportSTEP, o as meshLODs, p as createMeshCache, r as exportSTL, s as meshLODsProgressive, t as exportIGES } from "./meshFns-D29JHTr6.js";
18
18
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
19
- import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, p as makeEllipseArc, r as makeFace, s as assembleWire, u as makeBezierCurve } from "./surfaceBuilders-ZW6W8S1a.js";
20
- import { A as thicken$1, C as chamferDistAngles, D as offset$1, E as fillet$2, F as toLODGeometryLevels, I as toLineGeometryData, M as toBufferGeometryData, N as toGroupedBufferGeometryData, O as removeFaces$1, P as toLODGeometryData, S as chamferDistAngle, T as draft$1, _ as checkBoolean, a as healFace, b as getNurbsCurveData, c as isValid$1, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, i as heal$1, j as variableFillet, k as shell$2, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, w as chamfer$2, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-BRXArH8z.js";
21
- import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, G as quatFromAxisAngle, H as circularPattern, I as createAssemblyNode, J as quatRotate, K as quatFromTo, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, Y as createAssembly, _ as exportURDF, a as deserializeHistory, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, p as serializeHistory, q as quatMultiply, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as updateNode } from "./threadFns-D9m_ywSR.js";
22
- import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BQ6ApvaQ.js";
23
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-COdYBjWD.js";
24
- import { _ as approximateAsSvgCompatibleCurve, o as ellipseArcFlags } from "./blueprint-CeIbNzdp.js";
25
- import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-BKnz1pa1.js";
26
- import { a as measureCurvatureAtMid, c as measureLength, d as measureVolume, f as measureVolumeProps, i as measureCurvatureAt, l as measureLinearProps, n as kernelDistance, o as measureDistance, r as measureArea, s as measureDistanceProps, t as createDistanceQuery, u as measureSurfaceProps } from "./measureFns-9GzKgCdl.js";
27
- import { t as cornerFinder } from "./cornerFinder-D7P4vdaD.js";
28
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-QMPt29HH.js";
29
- import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-DEeIBzwN.js";
30
- import { a as exportSTEPConfigured, c as exportThreeMF, d as exportGlb, f as exportGltf, i as sewMeshToSolid, l as blueprintToDXF, n as importSTEP, o as importSVG, p as exportOBJ, r as importSTL, s as importSVGPathD, t as importIGES, u as exportDXF } from "./importFns-D8U3wLhV.js";
31
- import { S as revolve$2, a as Sketches, b as extrude$2, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, i as setFallbackFont, l as compoundSketchLoft, m as sketchRevolve, n as getFont, o as Sketch, p as sketchLoft, r as loadFont, s as compoundSketchExtrude, t as textBlueprints, u as compoundSketchRevolve, x as extrudeAll, y as CompoundSketch } from "./textBlueprints-CwsfEEBS.js";
32
- import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as loftAll, o as supportExtrude, r as complexExtrude, s as sweep$1, t as loft$2 } from "./loftFns-MN9TgyG4.js";
33
- import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-CpPBZkjT.js";
34
- import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-Ce4lxSWp.js";
35
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-s8km1l0J.js";
36
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-B_WRck8_.js";
37
- import { t as principalBoundingBox } from "./principalBoxFns-DQytdykp.js";
19
+ import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, p as makeEllipseArc, r as makeFace, s as assembleWire, u as makeBezierCurve } from "./surfaceBuilders-BeHgAqDx.js";
20
+ import { A as thicken$1, C as chamferDistAngles, D as offset$1, E as fillet$2, F as toLODGeometryLevels, I as toLineGeometryData, M as toBufferGeometryData, N as toGroupedBufferGeometryData, O as removeFaces$1, P as toLODGeometryData, S as chamferDistAngle, T as draft$1, _ as checkBoolean, a as healFace, b as getNurbsCurveData, c as isValid$1, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, i as heal$1, j as variableFillet, k as shell$2, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, w as chamfer$2, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-CCRPtrvE.js";
21
+ import { A as setJointValue, B as walkAssembly, C as cylindricalJoint, D as planarJoint, E as mechanismDOF, F as countNodes, G as quatFromAxisAngle, H as circularPattern, I as createAssemblyNode, J as quatRotate, K as quatFromTo, L as findNode, M as sphericalJoint, N as addChild, O as prismaticJoint, P as collectShapes, R as removeChild, S as addJoint, T as jointTransform, U as gridPattern, V as exportAssemblySTEP, W as linearPattern, Y as createAssembly, _ as exportURDF, a as deserializeHistory, b as inverseKinematics, c as modifyStep, d as replayFrom, f as replayHistory, g as undoLast, h as stepsFrom, i as createRegistry, j as setJointValues, k as revoluteJoint, l as registerOperation, m as stepCount, n as addStep, o as findStep, p as serializeHistory, q as quatMultiply, r as createHistory, s as getShape, t as thread, u as registerShape, v as importURDF, w as forwardKinematics, x as jointTrajectory, y as jointsFromDH, z as updateNode } from "./threadFns-DveRUJwK.js";
22
+ import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CeMrC8k-.js";
23
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-D3oo0Zfs.js";
24
+ import { _ as approximateAsSvgCompatibleCurve, o as ellipseArcFlags } from "./blueprint-WAucCqwY.js";
25
+ import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-RuUOUlSC.js";
26
+ import { a as measureCurvatureAtMid, c as measureLength, d as measureVolume, f as measureVolumeProps, i as measureCurvatureAt, l as measureLinearProps, n as kernelDistance, o as measureDistance, r as measureArea, s as measureDistanceProps, t as createDistanceQuery, u as measureSurfaceProps } from "./measureFns-6mHYvqUc.js";
27
+ import { t as cornerFinder } from "./cornerFinder-ChkO3EOO.js";
28
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D8_6vKh_.js";
29
+ import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-C8gt4OYm.js";
30
+ import { a as exportSTEPConfigured, c as exportThreeMF, d as exportGlb, f as exportGltf, i as sewMeshToSolid, l as blueprintToDXF, n as importSTEP, o as importSVG, p as exportOBJ, r as importSTL, s as importSVGPathD, t as importIGES, u as exportDXF } from "./importFns-BVcmm3T0.js";
31
+ import { S as revolve$2, a as Sketches, b as extrude$2, c as compoundSketchFace, d as sketchExtrude, f as sketchFace, g as sketchWires, h as sketchSweep, i as setFallbackFont, l as compoundSketchLoft, m as sketchRevolve, n as getFont, o as Sketch, p as sketchLoft, r as loadFont, s as compoundSketchExtrude, t as textBlueprints, u as compoundSketchRevolve, x as extrudeAll, y as CompoundSketch } from "./textBlueprints-CLwy1uWM.js";
32
+ import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as loftAll, o as supportExtrude, r as complexExtrude, s as sweep$1, t as loft$2 } from "./loftFns-oH6dldzO.js";
33
+ import { _ as createRef, a as isVertexRef, b as defaultScorer, c as resolveRefParams, d as createVertexRef, f as resolveVertexRef, g as captureHint, h as assignRoles, i as isLineageRef, l as createDerivedFaceRef, m as resolveEdgeRef, n as isEdgeRef, o as resolveLineageRef, p as createEdgeRef, r as isFaceRef, s as resolveRefIn, t as isDerivedFaceRef, u as resolveDerivedFaceRef, v as resolveRef, y as updateRoles } from "./refResolveFns-DZoPfglj.js";
34
+ import { a as facesOfVertex, c as verticesOfFace, i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-XdjXKCXE.js";
35
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-CBc6tpRl.js";
36
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-1e-VHhTX.js";
37
+ import { t as principalBoundingBox } from "./principalBoxFns-CTVc4f8W.js";
38
38
  import { _ as isSuccessResponse, a as createWorkerClient, c as enqueueTask, d as rejectAll, f as isBatchRequest, g as isOperationRequest, h as isInitRequest, i as registerHandler, l as isEmpty$1, m as isErrorResponse, n as createOperationRegistry, o as createTaskQueue, p as isDisposeRequest, r as createWorkerHandler, s as dequeueTask, t as createWorkerPool, u as pendingCount } from "./workerPool-Bc5hmJc4.js";
39
39
  // \0rolldown/runtime.js
40
40
  var __defProp = Object.defineProperty;
@@ -1,8 +1,8 @@
1
- import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-CSWkqhe9.js";
1
+ import { G as _usingCtx, n as castResultShape, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { E as ok, P as unwrap, d as validationError, g as err } from "./errors-BTccWbtE.js";
3
- import { s as getEdges } from "./topologyQueryFns-D8Du44mm.js";
3
+ import { s as getEdges } from "./topologyQueryFns-SINsBrMe.js";
4
4
  import { c as vecLength, d as vecNormalize, g as vecSub, r as vecCross } from "./vecOps-S-m9H_fe.js";
5
- import { t as clone } from "./shapeFns-D6-l0Nwn.js";
5
+ import { t as clone } from "./shapeFns-CHsoXWeu.js";
6
6
  // src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
@@ -1,8 +1,8 @@
1
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-DJJoFJPW.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
4
4
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
5
- const require_shapeFns = require("./shapeFns-Dr_0yhYg.cjs");
5
+ const require_shapeFns = require("./shapeFns-C9P1KmqH.cjs");
6
6
  // src/projection/projectionPlanes.ts
7
7
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
8
8
  var PROJECTION_PLANES = {
@@ -66,7 +66,10 @@ export declare function createBorrowedHandle(ocShape: KernelShape): ShapeHandle;
66
66
  * frees *every* slot allocated after the checkpoint, so a live shape handle in
67
67
  * the return value would dangle. Use for data-returning batch analysis over many
68
68
  * bodies; never to wrap a shape builder. Inputs allocated before the call are
69
- * untouched (restore only frees from the mark forward).
69
+ * untouched (restore only frees from the mark forward), but `fn` must not query
70
+ * their cached topology (`getFaces`, `getSolids`, adjacency): the cache keeps the
71
+ * sub-shape handles it allocates, and the restore would leave it holding freed
72
+ * slots.
70
73
  *
71
74
  * No-op wrapper on kernels without arena checkpoints (occt/manifold): `fn` runs
72
75
  * directly and those kernels' own disposal applies.
package/dist/core.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
3
3
  const require_bug = require("./bug-CBcpIPuf.cjs");
4
4
  const require_errors = require("./errors-O_blYTWT.cjs");
5
- const require_validityTypes = require("./validityTypes-BkX2hYwP.cjs");
5
+ const require_validityTypes = require("./validityTypes-DPAkV5rC.cjs");
6
6
  const require_constants = require("./constants-oee0S_x6.cjs");
7
7
  const require_types = require("./types-CjF9Rofr.cjs");
8
8
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
package/dist/core.js CHANGED
@@ -1,7 +1,7 @@
1
- import { C as isSolid, D as getShapeKind, E as GeometryCleanupError, F as createKernelHandle, H as withScope, L as isLive, M as is3D, N as DisposalScope, P as createHandle, S as isShell, T as isWire, U as withScopeResult, W as withScopeResultAsync, _ as isCompound, b as isShape1D, i as castShape, j as is2D, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-CSWkqhe9.js";
1
+ import { C as isSolid, D as getShapeKind, E as GeometryCleanupError, F as createKernelHandle, H as withScope, L as isLive, M as is3D, N as DisposalScope, P as createHandle, S as isShell, T as isWire, U as withScopeResult, W as withScopeResultAsync, _ as isCompound, b as isShape1D, i as castShape, j as is2D, v as isEdge, w as isVertex, x as isShape3D, y as isFace } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { n as bug, t as BrepBugError } from "./bug-ClMTAJhe.js";
3
3
  import { E as ok, F as unwrapErr, I as unwrapOr, L as unwrapOrElse, M as tryCatch, N as tryCatchAsync, P as unwrap, S as map, T as match, _ as flatMap, a as moduleInitError, b as isErr, c as sketcherStateError, d as validationError, f as OK, g as err, h as collect, i as kernelError, l as typeCastError, m as andThen, n as computationError, o as queryError, r as ioError, u as unsupportedError, w as mapErr, x as isOk } from "./errors-BTccWbtE.js";
4
- import { c as manifoldShell, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, r as isManifoldShell, s as isValidSolid, t as closedWire } from "./validityTypes-DSzSU07u.js";
4
+ import { c as manifoldShell, f as validSolid, i as isOrientedFace, l as orientedFace, n as isClosedWire, r as isManifoldShell, s as isValidSolid, t as closedWire } from "./validityTypes-BCZ8XRzO.js";
5
5
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-iraOnb2p.js";
6
6
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-CKXsIm9-.js";
7
7
  import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-S-m9H_fe.js";
@@ -1,6 +1,6 @@
1
1
  import { t as DEG2RAD } from "./constants-iraOnb2p.js";
2
2
  import { n as getAtOrThrow } from "./arrayAccess-BpgouNir.js";
3
- import { p as distance2d, u as angle2d, v as samePoint } from "./helpers-COdYBjWD.js";
3
+ import { p as distance2d, u as angle2d, v as samePoint } from "./helpers-D3oo0Zfs.js";
4
4
  // src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,6 +1,6 @@
1
1
  const require_constants = require("./constants-oee0S_x6.cjs");
2
2
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
3
- const require_helpers = require("./helpers-m-lbbfaz.cjs");
3
+ const require_helpers = require("./helpers-C0MoldOO.cjs");
4
4
  // src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,4 +1,4 @@
1
- import { T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, v as isEdge } from "./shapeTypes-CSWkqhe9.js";
1
+ import { T as isWire, h as disposeResultShape, n as castResultShape, q as getKernel, v as isEdge } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { E as ok, g as err, l as typeCastError } from "./errors-BTccWbtE.js";
3
3
  // src/topology/curveFns.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
2
2
  const require_errors = require("./errors-O_blYTWT.cjs");
3
3
  // src/topology/curveFns.ts
4
4
  /**
@@ -1,22 +1,22 @@
1
- const require_shapeTypes = require("./shapeTypes-B23U9msC.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BK53GmLC.cjs");
2
2
  const require_bug = require("./bug-CBcpIPuf.cjs");
3
3
  const require_errors = require("./errors-O_blYTWT.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-DJJoFJPW.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns--p_-tywe.cjs");
5
5
  const require_constants = require("./constants-oee0S_x6.cjs");
6
6
  const require_types = require("./types-CjF9Rofr.cjs");
7
7
  const require_vecOps = require("./vecOps-CrGEPPQM.cjs");
8
8
  const require_planeOps = require("./planeOps-DZfLToKZ.cjs");
9
- const require_faceFns = require("./faceFns-C_iC_WkC.cjs");
10
- const require_curveFns = require("./curveFns-DkG5mlUj.cjs");
9
+ const require_faceFns = require("./faceFns-DfEUZlnf.cjs");
10
+ const require_curveFns = require("./curveFns-Dz36SOE6.cjs");
11
11
  const require_arrayAccess = require("./arrayAccess-DpJYARwv.cjs");
12
- const require_surfaceBuilders = require("./surfaceBuilders-BV-QYvCL.cjs");
13
- const require_blueprintSketcher = require("./blueprintSketcher-DID7kq5g.cjs");
14
- const require_helpers = require("./helpers-m-lbbfaz.cjs");
15
- const require_blueprint = require("./blueprint-D4YxCDeX.cjs");
16
- const require_cornerFinder = require("./cornerFinder-uPZDWiyt.cjs");
17
- const require_boolean2D = require("./boolean2D-BsrkJbMe.cjs");
18
- const require_textBlueprints = require("./textBlueprints-DYrv0GjE.cjs");
19
- const require_cameraFns = require("./cameraFns-DL3zo3ol.cjs");
12
+ const require_surfaceBuilders = require("./surfaceBuilders-vKXtKSqY.cjs");
13
+ const require_blueprintSketcher = require("./blueprintSketcher-JoLn4vSB.cjs");
14
+ const require_helpers = require("./helpers-C0MoldOO.cjs");
15
+ const require_blueprint = require("./blueprint-DzhzGFy2.cjs");
16
+ const require_cornerFinder = require("./cornerFinder-xI6O0ZCv.cjs");
17
+ const require_boolean2D = require("./boolean2D-Cwc_4mU8.cjs");
18
+ const require_textBlueprints = require("./textBlueprints-DSiQKpe8.cjs");
19
+ const require_cameraFns = require("./cameraFns-DhgM5-Nl.cjs");
20
20
  // 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
- import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel } from "./shapeTypes-CSWkqhe9.js";
1
+ import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel } from "./shapeTypes-Ckz9bpYW.js";
2
2
  import { i as wasmIndex, n as bug } from "./bug-ClMTAJhe.js";
3
3
  import { P as unwrap, s as safeIndex } from "./errors-BTccWbtE.js";
4
- import { s as getEdges } from "./topologyQueryFns-D8Du44mm.js";
4
+ import { s as getEdges } from "./topologyQueryFns-SINsBrMe.js";
5
5
  import { t as DEG2RAD } from "./constants-iraOnb2p.js";
6
6
  import { r as toVec3 } from "./types-CKXsIm9-.js";
7
7
  import { d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-S-m9H_fe.js";
8
8
  import { a as planeToWorld, o as resolvePlane } from "./planeOps-D3yDuMux.js";
9
- import { d as pointOnSurface, l as normalAt, m as uvBounds, r as faceCenter, u as outerWire, v as copyShape, y as downcast } from "./faceFns-f8AWRrzK.js";
10
- import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-CQtl1RzI.js";
9
+ import { d as pointOnSurface, l as normalAt, m as uvBounds, r as faceCenter, u as outerWire, v as copyShape, y as downcast } from "./faceFns-Dz3eRgNR.js";
10
+ import { h as offsetWire2D, i as curveIsClosed, l as curveStartPoint } from "./curveFns-Cnh0Hljx.js";
11
11
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-BpgouNir.js";
12
- import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-ZW6W8S1a.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-BQ6ApvaQ.js";
14
- import { b as squareDistance2d, l as add2d, s as PRECISION_OFFSET, v as samePoint$1, x as subtract2d } from "./helpers-COdYBjWD.js";
15
- import { _ as approximateAsSvgCompatibleCurve, a as edgeToCurve, f as make2dInerpolatedBSplineCurve, i as curvesAsEdgesOnPlane, l as make2dCircle, p as make2dSegmentCurve, s as make2dArcFromCenter, t as Blueprint, u as make2dEllipse, v as Curve2D, x as BoundingBox2d, y as deserializeCurve2D } from "./blueprint-CeIbNzdp.js";
16
- import { t as cornerFinder } from "./cornerFinder-D7P4vdaD.js";
17
- import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-QMPt29HH.js";
18
- import { _ as wrapSketchData, a as Sketches, o as Sketch, t as textBlueprints, v as wrapSketchDataArray } from "./textBlueprints-CwsfEEBS.js";
19
- import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-s8km1l0J.js";
12
+ import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-BeHgAqDx.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-CeMrC8k-.js";
14
+ import { b as squareDistance2d, l as add2d, s as PRECISION_OFFSET, v as samePoint$1, x as subtract2d } from "./helpers-D3oo0Zfs.js";
15
+ import { _ as approximateAsSvgCompatibleCurve, a as edgeToCurve, f as make2dInerpolatedBSplineCurve, i as curvesAsEdgesOnPlane, l as make2dCircle, p as make2dSegmentCurve, s as make2dArcFromCenter, t as Blueprint, u as make2dEllipse, v as Curve2D, x as BoundingBox2d, y as deserializeCurve2D } from "./blueprint-WAucCqwY.js";
16
+ import { t as cornerFinder } from "./cornerFinder-ChkO3EOO.js";
17
+ import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D8_6vKh_.js";
18
+ import { _ as wrapSketchData, a as Sketches, o as Sketch, t as textBlueprints, v as wrapSketchDataArray } from "./textBlueprints-CLwy1uWM.js";
19
+ import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-CBc6tpRl.js";
20
20
  // src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.