brepjs 14.2.2 → 14.3.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 (78) hide show
  1. package/dist/2d.cjs +5 -5
  2. package/dist/2d.js +5 -5
  3. package/dist/{blueprint-C8nlHdUE.cjs → blueprint-D_5JAtYk.cjs} +5 -5
  4. package/dist/{blueprint-Dsp-f4De.js → blueprint-Do5-zCJ5.js} +5 -5
  5. package/dist/{blueprintFns-CvtakKGf.cjs → blueprintFns-Cq-LiS2c.cjs} +2 -2
  6. package/dist/{blueprintFns-D1QUp5y4.js → blueprintFns-Li_biBgb.js} +2 -2
  7. package/dist/{boolean2D-DE2axG6W.cjs → boolean2D-CDE5hFEe.cjs} +7 -7
  8. package/dist/{boolean2D-D1MYwspP.js → boolean2D-gzC728_d.js} +7 -7
  9. package/dist/{booleanFns-Dmvv9VVT.cjs → booleanFns-BxEOBw7j.cjs} +3 -3
  10. package/dist/{booleanFns-DViuH9nW.js → booleanFns-DY_4PTTc.js} +3 -3
  11. package/dist/brepjs.cjs +19 -19
  12. package/dist/brepjs.js +19 -19
  13. package/dist/core.cjs +1 -1
  14. package/dist/core.js +1 -1
  15. package/dist/{cornerFinder-CyvfiiYv.js → cornerFinder-BFVYGCFi.js} +1 -1
  16. package/dist/{cornerFinder-Du1Q1hgu.cjs → cornerFinder-CZQBVvRq.cjs} +1 -1
  17. package/dist/{curveFns-D9GbWpcl.js → curveFns-B-qDPOzI.js} +1 -1
  18. package/dist/{curveFns--4Nh1ZtB.cjs → curveFns-BQwce7aY.cjs} +1 -1
  19. package/dist/{drawFns-BDqEWrCy.js → drawFns-CRDg-UbI.js} +11 -11
  20. package/dist/{drawFns-DTqCnYeo.cjs → drawFns-Djuxu7Qs.cjs} +11 -11
  21. package/dist/{extrudeFns-CIUq5ZQW.cjs → extrudeFns-ohzyovvF.cjs} +1 -1
  22. package/dist/{extrudeFns-DxS_UOMr.js → extrudeFns-xvlzEsCj.js} +1 -1
  23. package/dist/{faceFns-lcEYbLOs.js → faceFns-CJ0slhjZ.js} +1 -1
  24. package/dist/{faceFns-D7i9yEts.cjs → faceFns-Cme3e43c.cjs} +1 -1
  25. package/dist/{helpers-BK3DVd3M.cjs → helpers-BNDmbkco.cjs} +5 -5
  26. package/dist/{helpers-BwzOwHWl.js → helpers-Cn-YvXDJ.js} +5 -5
  27. package/dist/{historyFns-BO9c4AgQ.cjs → historyFns-9lsR_H1u.cjs} +4 -4
  28. package/dist/{historyFns-C_EoZWD5.js → historyFns-Xfr9TrhV.js} +4 -4
  29. package/dist/{importFns-NY1stg0C.js → importFns-B1iFL_xB.js} +2 -2
  30. package/dist/{importFns-Ca7DsY-k.cjs → importFns-C_L9mTn_.cjs} +2 -2
  31. package/dist/io.cjs +2 -2
  32. package/dist/io.js +2 -2
  33. package/dist/kernel/brepkit/brepkitAdapter.d.ts +1 -0
  34. package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +1 -1
  35. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +141 -330
  36. package/dist/kernel/brepkit/brepkitWasmTypes.d.ts.map +1 -1
  37. package/dist/kernel/brepkit/constructionOps.d.ts.map +1 -1
  38. package/dist/kernel/brepkit/meshOps.d.ts.map +1 -1
  39. package/dist/kernel/brepkit/sketchOps.d.ts +2 -0
  40. package/dist/kernel/brepkit/sketchOps.d.ts.map +1 -1
  41. package/dist/kernel/occt/extendedConstructorOps.d.ts.map +1 -1
  42. package/dist/kernel/occt/geometryQueryOps.d.ts +1 -1
  43. package/dist/kernel/occt/geometryQueryOps.d.ts.map +1 -1
  44. package/dist/kernel/occt/hullOps.d.ts.map +1 -1
  45. package/dist/kernel/occt/kernel2dOps.d.ts.map +1 -1
  46. package/dist/kernel/occt/measureOps.d.ts.map +1 -1
  47. package/dist/kernel/types.d.ts +4 -2
  48. package/dist/kernel/types.d.ts.map +1 -1
  49. package/dist/{measureFns-rVSankqO.cjs → measureFns-B_9iLcMK.cjs} +2 -2
  50. package/dist/{measureFns-Dsan3QcB.js → measureFns-rpfHHDDn.js} +2 -2
  51. package/dist/measurement.cjs +1 -1
  52. package/dist/measurement.js +1 -1
  53. package/dist/{meshFns-Z5n8gFAS.cjs → meshFns-B5bBKLLl.cjs} +2 -2
  54. package/dist/{meshFns-CKs4H-CH.js → meshFns-C565-TZ9.js} +2 -2
  55. package/dist/operations.cjs +2 -2
  56. package/dist/operations.js +2 -2
  57. package/dist/{primitiveFns-DmIP-qnU.js → primitiveFns-B4GyxyOo.js} +8 -8
  58. package/dist/{primitiveFns-w2otksRk.cjs → primitiveFns-Bia4t4Rm.cjs} +8 -8
  59. package/dist/query.cjs +2 -2
  60. package/dist/query.js +2 -2
  61. package/dist/{shapeFns-DZ2c5Nqo.cjs → shapeFns-CuN44RDe.cjs} +2 -2
  62. package/dist/{shapeFns-E3qTx3nN.js → shapeFns-DsJtbjMn.js} +2 -2
  63. package/dist/shapeRef.cjs +1 -1
  64. package/dist/shapeRef.js +1 -1
  65. package/dist/{shapeRefFns-CEYgkZ1v.js → shapeRefFns-BWOM_M8M.js} +3 -3
  66. package/dist/{shapeRefFns-Dl7v17MC.cjs → shapeRefFns-DpIeovVR.cjs} +3 -3
  67. package/dist/{shapeTypes-B5Vx1Wsw.cjs → shapeTypes-BmAeVdSr.cjs} +140 -146
  68. package/dist/{shapeTypes-DUJg_N3P.js → shapeTypes-Bvc56l7a.js} +140 -146
  69. package/dist/sketching.cjs +2 -2
  70. package/dist/sketching.js +2 -2
  71. package/dist/{solidBuilders-0gTTuSxw.js → solidBuilders-B8vB_kwH.js} +2 -2
  72. package/dist/{solidBuilders-Bvq6br4f.cjs → solidBuilders-CedPIyJu.cjs} +2 -2
  73. package/dist/{surfaceBuilders-DMI0n7Bf.js → surfaceBuilders-C8KV64_L.js} +2 -2
  74. package/dist/{surfaceBuilders-CYWopaht.cjs → surfaceBuilders-r3Ts30mH.cjs} +2 -2
  75. package/dist/topology/evolutionFns.d.ts.map +1 -1
  76. package/dist/topology.cjs +6 -6
  77. package/dist/topology.js +6 -6
  78. package/package.json +4 -3
package/dist/2d.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
3
3
  const require_errors = require("./errors-9zQcQK1H.cjs");
4
- const require_faceFns = require("./faceFns-D7i9yEts.cjs");
5
- const require_boolean2D = require("./boolean2D-DE2axG6W.cjs");
6
- const require_blueprint = require("./blueprint-C8nlHdUE.cjs");
7
- const require_blueprintFns = require("./blueprintFns-CvtakKGf.cjs");
4
+ const require_faceFns = require("./faceFns-Cme3e43c.cjs");
5
+ const require_boolean2D = require("./boolean2D-CDE5hFEe.cjs");
6
+ const require_blueprint = require("./blueprint-D_5JAtYk.cjs");
7
+ const require_blueprintFns = require("./blueprintFns-Cq-LiS2c.cjs");
8
8
  //#region src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
package/dist/2d.js CHANGED
@@ -1,9 +1,9 @@
1
- import { X as getKernel2D, a as createEdge, z as createKernelHandle } from "./shapeTypes-DUJg_N3P.js";
1
+ import { X as getKernel2D, a as createEdge, z as createKernelHandle } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
3
- import { C as kernelCallRaw } from "./faceFns-lcEYbLOs.js";
4
- import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D1MYwspP.js";
5
- import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-Dsp-f4De.js";
6
- 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-D1QUp5y4.js";
3
+ import { C as kernelCallRaw } from "./faceFns-CJ0slhjZ.js";
4
+ import { _ as Blueprints, a as fuseBlueprints, c as roundedRectangleBlueprint, g as CompoundBlueprint, h as organiseBlueprints, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-gzC728_d.js";
5
+ import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-Do5-zCJ5.js";
6
+ 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-Li_biBgb.js";
7
7
  //#region src/core/curve2dHandle.ts
8
8
  /**
9
9
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,13 +1,13 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-D7i9yEts.cjs");
3
+ const require_faceFns = require("./faceFns-Cme3e43c.cjs");
4
4
  const require_constants = require("./constants-unWN8k4c.cjs");
5
5
  const require_types = require("./types-BjDcsS7l.cjs");
6
6
  const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
7
- const require_curveFns = require("./curveFns--4Nh1ZtB.cjs");
7
+ const require_curveFns = require("./curveFns-BQwce7aY.cjs");
8
8
  const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-CYWopaht.cjs");
10
- const require_helpers = require("./helpers-BK3DVd3M.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-r3Ts30mH.cjs");
10
+ const require_helpers = require("./helpers-BNDmbkco.cjs");
11
11
  //#region src/2d/lib/definitions.ts
12
12
  /** Type guard that checks whether a value is a `Point2D`. */
13
13
  function isPoint2D(point) {
@@ -1,13 +1,13 @@
1
- import { H as registerForCleanup, W as unregisterFromCleanup, X as getKernel2D, Y as getKernel, a as createEdge, u as createWire } from "./shapeTypes-DUJg_N3P.js";
1
+ import { H as registerForCleanup, W as unregisterFromCleanup, X as getKernel2D, Y as getKernel, a as createEdge, u as createWire } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-C-cgQA3w.js";
3
- import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-lcEYbLOs.js";
3
+ import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-CJ0slhjZ.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
5
5
  import { r as toVec3 } from "./types-BWBlwp6w.js";
6
6
  import { r as makePlane } from "./planeOps-gTOEarV2.js";
7
- import { f as getOrientation } from "./curveFns-D9GbWpcl.js";
7
+ import { f as getOrientation } from "./curveFns-B-qDPOzI.js";
8
8
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
9
- import { r as makeFace } from "./surfaceBuilders-DMI0n7Bf.js";
10
- import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-BwzOwHWl.js";
9
+ import { r as makeFace } from "./surfaceBuilders-C8KV64_L.js";
10
+ import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-Cn-YvXDJ.js";
11
11
  //#region src/2d/lib/definitions.ts
12
12
  /** Type guard that checks whether a value is a `Point2D`. */
13
13
  function isPoint2D(point) {
@@ -1,6 +1,6 @@
1
1
  const require_errors = require("./errors-9zQcQK1H.cjs");
2
- const require_boolean2D = require("./boolean2D-DE2axG6W.cjs");
3
- const require_blueprint = require("./blueprint-C8nlHdUE.cjs");
2
+ const require_boolean2D = require("./boolean2D-CDE5hFEe.cjs");
3
+ const require_blueprint = require("./blueprint-D_5JAtYk.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
1
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
2
- import { g as CompoundBlueprint } from "./boolean2D-D1MYwspP.js";
3
- import { t as Blueprint } from "./blueprint-Dsp-f4De.js";
2
+ import { g as CompoundBlueprint } from "./boolean2D-gzC728_d.js";
3
+ import { t as Blueprint } from "./blueprint-Do5-zCJ5.js";
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,16 +1,16 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-D7i9yEts.cjs");
3
+ const require_faceFns = require("./faceFns-Cme3e43c.cjs");
4
4
  const require_constants = require("./constants-unWN8k4c.cjs");
5
5
  const require_types = require("./types-BjDcsS7l.cjs");
6
6
  const require_vecOps = require("./vecOps-BXvBYIor.cjs");
7
7
  const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
8
- const require_curveFns = require("./curveFns--4Nh1ZtB.cjs");
8
+ const require_curveFns = require("./curveFns-BQwce7aY.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-CYWopaht.cjs");
11
- const require_helpers = require("./helpers-BK3DVd3M.cjs");
12
- const require_blueprint = require("./blueprint-C8nlHdUE.cjs");
13
- const require_extrudeFns = require("./extrudeFns-CIUq5ZQW.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-r3Ts30mH.cjs");
11
+ const require_helpers = require("./helpers-BNDmbkco.cjs");
12
+ const require_blueprint = require("./blueprint-D_5JAtYk.cjs");
13
+ const require_extrudeFns = require("./extrudeFns-ohzyovvF.cjs");
14
14
  //#region node_modules/flatqueue/index.js
15
15
  /** @template T */
16
16
  var FlatQueue = class {
@@ -1,16 +1,16 @@
1
- import { J as _usingCtx, L as DisposalScope, X as getKernel2D, Y as getKernel, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-DUJg_N3P.js";
1
+ import { J as _usingCtx, L as DisposalScope, X as getKernel2D, Y as getKernel, a as createEdge, h as isShape3D, o as createFace, t as castShape, u as createWire } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, i as kernelError, l as typeCastError, n as computationError, s as safeIndex } from "./errors-C-cgQA3w.js";
3
- import { _ as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-lcEYbLOs.js";
3
+ import { _ as downcast, c as normalAt, p as uvBounds, u as pointOnSurface } from "./faceFns-CJ0slhjZ.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
5
5
  import { r as toVec3 } from "./types-BWBlwp6w.js";
6
6
  import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-D9etjPgV.js";
7
7
  import { n as createPlane } from "./planeOps-gTOEarV2.js";
8
- import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-D9GbWpcl.js";
8
+ import { c as curveStartPoint, l as curveTangentAt, r as curveIsClosed } from "./curveFns-B-qDPOzI.js";
9
9
  import { r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
10
- import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-DMI0n7Bf.js";
11
- import { _ as samePoint$1, 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, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-BwzOwHWl.js";
12
- import { _ as Curve2D, b as removeDuplicatePoints, 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-Dsp-f4De.js";
13
- import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-DxS_UOMr.js";
10
+ import { _ as zip, i as makeNewFaceWithinFace, r as makeFace, s as assembleWire } from "./surfaceBuilders-C8KV64_L.js";
11
+ import { _ as samePoint$1, 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, s as PRECISION_INTERSECTION, v as scalarMultiply2d } from "./helpers-Cn-YvXDJ.js";
12
+ import { _ as Curve2D, b as removeDuplicatePoints, 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-Do5-zCJ5.js";
13
+ import { c as sweep, i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-xvlzEsCj.js";
14
14
  //#region node_modules/flatqueue/index.js
15
15
  /** @template T */
16
16
  var FlatQueue = class {
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
3
  const require_constants = require("./constants-unWN8k4c.cjs");
4
4
  const require_vecOps = require("./vecOps-BXvBYIor.cjs");
5
5
  const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
6
- const require_shapeFns = require("./shapeFns-DZ2c5Nqo.cjs");
6
+ const require_shapeFns = require("./shapeFns-CuN44RDe.cjs");
7
7
  const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
8
- const require_surfaceBuilders = require("./surfaceBuilders-CYWopaht.cjs");
8
+ const require_surfaceBuilders = require("./surfaceBuilders-r3Ts30mH.cjs");
9
9
  //#region src/topology/booleanFns.ts
10
10
  /**
11
11
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -1,11 +1,11 @@
1
- import { Y as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-DUJg_N3P.js";
1
+ import { Y as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-Bvc56l7a.js";
2
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-C-cgQA3w.js";
3
3
  import { n as HASH_CODE_MAX } from "./constants-B9u763C3.js";
4
4
  import { h as vecScale, t as vecAdd } from "./vecOps-D9etjPgV.js";
5
5
  import { o as resolvePlane } from "./planeOps-gTOEarV2.js";
6
- import { F as getVertices, I as getWires, M as getEdges, _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-E3qTx3nN.js";
6
+ import { F as getVertices, I as getWires, M as getEdges, _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-DsJtbjMn.js";
7
7
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
8
- import { r as makeFace } from "./surfaceBuilders-DMI0n7Bf.js";
8
+ import { r as makeFace } from "./surfaceBuilders-C8KV64_L.js";
9
9
  //#region src/topology/booleanFns.ts
10
10
  /**
11
11
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
package/dist/brepjs.cjs CHANGED
@@ -1,29 +1,29 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-DTqCnYeo.cjs");
3
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
2
+ const require_drawFns = require("./drawFns-Djuxu7Qs.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
4
4
  const require_errors = require("./errors-9zQcQK1H.cjs");
5
- const require_faceFns = require("./faceFns-D7i9yEts.cjs");
5
+ const require_faceFns = require("./faceFns-Cme3e43c.cjs");
6
6
  const require_constants = require("./constants-unWN8k4c.cjs");
7
7
  const require_types = require("./types-BjDcsS7l.cjs");
8
8
  const require_vecOps = require("./vecOps-BXvBYIor.cjs");
9
9
  const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
10
- const require_shapeFns = require("./shapeFns-DZ2c5Nqo.cjs");
11
- const require_curveFns = require("./curveFns--4Nh1ZtB.cjs");
12
- const require_meshFns = require("./meshFns-Z5n8gFAS.cjs");
10
+ const require_shapeFns = require("./shapeFns-CuN44RDe.cjs");
11
+ const require_curveFns = require("./curveFns-BQwce7aY.cjs");
12
+ const require_meshFns = require("./meshFns-B5bBKLLl.cjs");
13
13
  const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
14
- const require_surfaceBuilders = require("./surfaceBuilders-CYWopaht.cjs");
15
- const require_booleanFns = require("./booleanFns-Dmvv9VVT.cjs");
16
- const require_primitiveFns = require("./primitiveFns-w2otksRk.cjs");
17
- const require_historyFns = require("./historyFns-BO9c4AgQ.cjs");
18
- const require_boolean2D = require("./boolean2D-DE2axG6W.cjs");
19
- const require_helpers = require("./helpers-BK3DVd3M.cjs");
20
- const require_solidBuilders = require("./solidBuilders-Bvq6br4f.cjs");
21
- const require_measureFns = require("./measureFns-rVSankqO.cjs");
22
- const require_cornerFinder = require("./cornerFinder-Du1Q1hgu.cjs");
23
- const require_extrudeFns = require("./extrudeFns-CIUq5ZQW.cjs");
24
- const require_blueprintFns = require("./blueprintFns-CvtakKGf.cjs");
25
- const require_importFns = require("./importFns-Ca7DsY-k.cjs");
26
- const require_shapeRefFns = require("./shapeRefFns-Dl7v17MC.cjs");
14
+ const require_surfaceBuilders = require("./surfaceBuilders-r3Ts30mH.cjs");
15
+ const require_booleanFns = require("./booleanFns-BxEOBw7j.cjs");
16
+ const require_primitiveFns = require("./primitiveFns-Bia4t4Rm.cjs");
17
+ const require_historyFns = require("./historyFns-9lsR_H1u.cjs");
18
+ const require_boolean2D = require("./boolean2D-CDE5hFEe.cjs");
19
+ const require_helpers = require("./helpers-BNDmbkco.cjs");
20
+ const require_solidBuilders = require("./solidBuilders-CedPIyJu.cjs");
21
+ const require_measureFns = require("./measureFns-B_9iLcMK.cjs");
22
+ const require_cornerFinder = require("./cornerFinder-CZQBVvRq.cjs");
23
+ const require_extrudeFns = require("./extrudeFns-ohzyovvF.cjs");
24
+ const require_blueprintFns = require("./blueprintFns-Cq-LiS2c.cjs");
25
+ const require_importFns = require("./importFns-C_L9mTn_.cjs");
26
+ const require_shapeRefFns = require("./shapeRefFns-DpIeovVR.cjs");
27
27
  const require_workerHandler = require("./workerHandler-C-7OUJsa.cjs");
28
28
  //#region src/topology/shapeBooleans.ts
29
29
  var BOPAlgo_GlueShift = 1;
package/dist/brepjs.js CHANGED
@@ -1,28 +1,28 @@
1
- import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, at as getPerformanceStats, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as BrepkitAdapter, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as supportsConstraintSketch, o as createFace, ot as resetPerformanceStats, p as isFace, q as withScopeResultAsync, rt as supportsProjection, s as createShell, t as castShape, tt as withKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-DUJg_N3P.js";
1
+ import { $ as prewarm, A as planarWire, B as getDisposalStats, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, N as as2D, O as orientedFace, P as as3D, Q as initFromOC, R as createHandle, S as isManifoldShell, T as isPlanarWire, U as resetDisposalStats, V as isLive, Y as getKernel, Z as init, _ as isSolid, a as createEdge, at as getPerformanceStats, b as closedWire, c as createSolid, d as isCompound, et as registerKernel, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as BrepkitAdapter, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as supportsConstraintSketch, o as createFace, ot as resetPerformanceStats, p as isFace, q as withScopeResultAsync, rt as supportsProjection, s as createShell, t as castShape, tt as withKernel, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-Bvc56l7a.js";
2
2
  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-C-cgQA3w.js";
3
- import { C as kernelCallRaw, S as kernelCall, _ 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, w as kernelCallScoped, x as shapeType, y as isCompSolid } from "./faceFns-lcEYbLOs.js";
3
+ import { C as kernelCallRaw, S as kernelCall, _ 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, w as kernelCallScoped, x as shapeType, y as isCompSolid } from "./faceFns-CJ0slhjZ.js";
4
4
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
5
5
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
6
6
  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-D9etjPgV.js";
7
7
  import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-gTOEarV2.js";
8
- import { A as describe$1, B as iterVertices, C as findFacesByTag, D as tagFaces, E as setTagMetadata, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, O as getFaceOrigins, R as iterEdges, S as getShapeColor, T as getTagMetadata, V as iterWires, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, j as getBounds, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$1, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$1, w as getFaceTags, x as getFaceColor, y as colorFaces, z as iterFaces } from "./shapeFns-E3qTx3nN.js";
9
- 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-D9GbWpcl.js";
10
- import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-CKs4H-CH.js";
8
+ import { A as describe$1, B as iterVertices, C as findFacesByTag, D as tagFaces, E as setTagMetadata, F as getVertices, H as vertexPosition, I as getWires, L as invalidateShapeCache, M as getEdges, N as getFaces, O as getFaceOrigins, R as iterEdges, S as getShapeColor, T as getTagMetadata, V as iterWires, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$1, h as translate$1, i as isEqualShape, j as getBounds, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$1, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$1, w as getFaceTags, x as getFaceColor, y as colorFaces, z as iterFaces } from "./shapeFns-DsJtbjMn.js";
9
+ 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-B-qDPOzI.js";
10
+ import { a as meshEdges$1, i as mesh$1, n as exportSTEP, o as clearMeshCache, r as exportSTL, s as createMeshCache, t as exportIGES } from "./meshFns-C565-TZ9.js";
11
11
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
12
- import { n as fill, r as makeFace } from "./surfaceBuilders-DMI0n7Bf.js";
13
- import { a as intersect$1, c as slice$1, i as fuseAll, l as split$1, n as cutAll, o as section$1, r as fuse$1, s as sectionToFace$1, t as cut$1 } from "./booleanFns-DViuH9nW.js";
14
- import { $ as getNurbsSurfaceData, 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 getNurbsCurveData, 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 wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLineGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-DmIP-qnU.js";
15
- 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-C_EoZWD5.js";
16
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, h as organiseBlueprints, i as cutBlueprints, m as loftAll, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D1MYwspP.js";
17
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BwzOwHWl.js";
18
- import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-BDqEWrCy.js";
19
- import { r as makeCylinder } from "./solidBuilders-0gTTuSxw.js";
20
- 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-Dsan3QcB.js";
21
- import { t as cornerFinder } from "./cornerFinder-CyvfiiYv.js";
22
- 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-DxS_UOMr.js";
23
- 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-D1QUp5y4.js";
24
- 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-NY1stg0C.js";
25
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-CEYgkZ1v.js";
12
+ import { n as fill, r as makeFace } from "./surfaceBuilders-C8KV64_L.js";
13
+ import { a as intersect$1, c as slice$1, i as fuseAll, l as split$1, n as cutAll, o as section$1, r as fuse$1, s as sectionToFace$1, t as cut$1 } from "./booleanFns-DY_4PTTc.js";
14
+ import { $ as getNurbsSurfaceData, 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 getNurbsCurveData, 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 wiresOfFace, b as sphere, c as cylinder, ct as toGroupedBufferGeometryData, d as ellipsoid, et as adjacentFaces, f as face, g as offsetFace, h as line, i as bsplineApprox, it as verticesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toLineGeometryData, m as helix, n as bezier, nt as facesOfEdge, o as compound, ot as chamferDistAngle, p as filledFace, q as filletWithEvolution, r as box, rt as sharedEdges, s as cone, st as toBufferGeometryData, t as addHoles, tt as edgesOfFace, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-B4GyxyOo.js";
15
+ 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-Xfr9TrhV.js";
16
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, h as organiseBlueprints, i as cutBlueprints, m as loftAll, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-gzC728_d.js";
17
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-Cn-YvXDJ.js";
18
+ import { $ as sketchFaceOffset, B as drawSingleCircle, C as cameraFromPlane, D as makeProjectedEdges, E as projectEdges, F as drawParametricFunction, G as loadFont, H as drawText, I as drawPointsInterpolation, J as textMetrics, K as sketchText, L as drawPolysides, M as draw, N as drawCircle, O as isProjectionPlane, P as drawEllipse, Q as sketchEllipse, R as drawRectangle, S as drawProjection, T as createCamera, U as fontMetrics, V as drawSingleEllipse, W as getFont, X as polysideInnerRadius, Y as makeBaseBox, Z as sketchCircle, _ as sketchLoft, a as drawingIntersect, b as sketchWires, c as rotateDrawing, d as compoundSketchExtrude, et as sketchHelix, f as compoundSketchFace, g as sketchFace, h as sketchExtrude, i as drawingFuse, it as sketchRoundedRectangle, j as deserializeDrawing, l as scaleDrawing, m as compoundSketchRevolve, n as drawingCut, nt as sketchPolysides, o as drawingToSketchOnPlane, ot as Sketches, p as compoundSketchLoft, q as textBlueprints, r as drawingFillet, rt as sketchRectangle, s as mirrorDrawing, st as CompoundSketch, t as drawingChamfer, tt as sketchParametricFunction, u as translateDrawing, v as sketchRevolve, w as cameraLookAt, x as drawFaceOutline, y as sketchSweep, z as drawRoundedRectangle } from "./drawFns-CRDg-UbI.js";
19
+ import { r as makeCylinder } from "./solidBuilders-B8vB_kwH.js";
20
+ 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-rpfHHDDn.js";
21
+ import { t as cornerFinder } from "./cornerFinder-BFVYGCFi.js";
22
+ 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-xvlzEsCj.js";
23
+ 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-Li_biBgb.js";
24
+ 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-B1iFL_xB.js";
25
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-BWOM_M8M.js";
26
26
  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-o2xzAfFk.js";
27
27
  //#region \0rolldown/runtime.js
28
28
  var __defProp = Object.defineProperty;
package/dist/core.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
3
3
  const require_errors = require("./errors-9zQcQK1H.cjs");
4
4
  const require_constants = require("./constants-unWN8k4c.cjs");
5
5
  const require_types = require("./types-BjDcsS7l.cjs");
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ 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 withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-DUJg_N3P.js";
1
+ import { C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as is2D, G as withScope, I as is3D, K as withScopeResult, L as DisposalScope, M as getShapeKind, O as orientedFace, R as createHandle, S as isManifoldShell, V as isLive, _ 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 withScopeResultAsync, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createKernelHandle } from "./shapeTypes-Bvc56l7a.js";
2
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-C-cgQA3w.js";
3
3
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-B9u763C3.js";
4
4
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
@@ -1,6 +1,6 @@
1
1
  import { t as DEG2RAD } from "./constants-B9u763C3.js";
2
2
  import { n as getAtOrThrow } from "./arrayAccess-xxcB3YNq.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-BwzOwHWl.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-Cn-YvXDJ.js";
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,6 +1,6 @@
1
1
  const require_constants = require("./constants-unWN8k4c.cjs");
2
2
  const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
3
- const require_helpers = require("./helpers-BK3DVd3M.cjs");
3
+ const require_helpers = require("./helpers-BNDmbkco.cjs");
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,4 +1,4 @@
1
- import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-DUJg_N3P.js";
1
+ import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, b as err, l as typeCastError } from "./errors-C-cgQA3w.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -1,20 +1,20 @@
1
- import { J as _usingCtx, L as DisposalScope, Y as getKernel, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-DUJg_N3P.js";
1
+ import { J as _usingCtx, L as DisposalScope, Y as getKernel, o as createFace, p as isFace, t as castShape, u as createWire } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, R as unwrap, T as isOk, b as err, d as validationError, h as bug, r as ioError, s as safeIndex, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
3
- import { _ as downcast, c as normalAt, g as cast, l as outerWire, n as faceCenter } from "./faceFns-lcEYbLOs.js";
3
+ import { _ as downcast, c as normalAt, g as cast, l as outerWire, n as faceCenter } from "./faceFns-CJ0slhjZ.js";
4
4
  import { t as DEG2RAD } from "./constants-B9u763C3.js";
5
5
  import { r as toVec3 } from "./types-BWBlwp6w.js";
6
6
  import { c as vecLength, d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-D9etjPgV.js";
7
7
  import { a as planeToWorld, o as resolvePlane } from "./planeOps-gTOEarV2.js";
8
- import { M as getEdges } from "./shapeFns-E3qTx3nN.js";
9
- import { m as offsetWire2D } from "./curveFns-D9GbWpcl.js";
8
+ import { M as getEdges } from "./shapeFns-DsJtbjMn.js";
9
+ import { m as offsetWire2D } from "./curveFns-B-qDPOzI.js";
10
10
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-xxcB3YNq.js";
11
- import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-DMI0n7Bf.js";
12
- import { S as Flatbush, _ as Blueprints, b as make2dOffset, c as roundedRectangleBlueprint, f as Sketch, g as CompoundBlueprint, h as organiseBlueprints, l as BaseSketcher2d, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as chamferCurves, x as intersectCurves, y as filletCurves } from "./boolean2D-D1MYwspP.js";
13
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-BwzOwHWl.js";
14
- import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-Dsp-f4De.js";
15
- import { o as makeSolid, t as makeCompound } from "./solidBuilders-0gTTuSxw.js";
16
- import { t as cornerFinder } from "./cornerFinder-CyvfiiYv.js";
17
- import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-DxS_UOMr.js";
11
+ import { c as makeBSplineApproximation, d as makeEllipse, p as makeHelix, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeCircle } from "./surfaceBuilders-C8KV64_L.js";
12
+ import { S as Flatbush, _ as Blueprints, b as make2dOffset, c as roundedRectangleBlueprint, f as Sketch, g as CompoundBlueprint, h as organiseBlueprints, l as BaseSketcher2d, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D, u as BlueprintSketcher, v as chamferCurves, x as intersectCurves, y as filletCurves } from "./boolean2D-gzC728_d.js";
13
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-Cn-YvXDJ.js";
14
+ import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-Do5-zCJ5.js";
15
+ import { o as makeSolid, t as makeCompound } from "./solidBuilders-B8vB_kwH.js";
16
+ import { t as cornerFinder } from "./cornerFinder-BFVYGCFi.js";
17
+ import { i as complexExtrude, l as twistExtrude, r as revolve, t as extrude } from "./extrudeFns-xvlzEsCj.js";
18
18
  import opentype from "opentype.js";
19
19
  //#region src/2d/lib/stitching.ts
20
20
  /**
@@ -29,23 +29,23 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  enumerable: true
30
30
  }) : target, mod));
31
31
  //#endregion
32
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
32
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
33
33
  const require_errors = require("./errors-9zQcQK1H.cjs");
34
- const require_faceFns = require("./faceFns-D7i9yEts.cjs");
34
+ const require_faceFns = require("./faceFns-Cme3e43c.cjs");
35
35
  const require_constants = require("./constants-unWN8k4c.cjs");
36
36
  const require_types = require("./types-BjDcsS7l.cjs");
37
37
  const require_vecOps = require("./vecOps-BXvBYIor.cjs");
38
38
  const require_planeOps = require("./planeOps-6Wu7dMDN.cjs");
39
- const require_shapeFns = require("./shapeFns-DZ2c5Nqo.cjs");
40
- const require_curveFns = require("./curveFns--4Nh1ZtB.cjs");
39
+ const require_shapeFns = require("./shapeFns-CuN44RDe.cjs");
40
+ const require_curveFns = require("./curveFns-BQwce7aY.cjs");
41
41
  const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
42
- const require_surfaceBuilders = require("./surfaceBuilders-CYWopaht.cjs");
43
- const require_boolean2D = require("./boolean2D-DE2axG6W.cjs");
44
- const require_helpers = require("./helpers-BK3DVd3M.cjs");
45
- const require_blueprint = require("./blueprint-C8nlHdUE.cjs");
46
- const require_solidBuilders = require("./solidBuilders-Bvq6br4f.cjs");
47
- const require_cornerFinder = require("./cornerFinder-Du1Q1hgu.cjs");
48
- const require_extrudeFns = require("./extrudeFns-CIUq5ZQW.cjs");
42
+ const require_surfaceBuilders = require("./surfaceBuilders-r3Ts30mH.cjs");
43
+ const require_boolean2D = require("./boolean2D-CDE5hFEe.cjs");
44
+ const require_helpers = require("./helpers-BNDmbkco.cjs");
45
+ const require_blueprint = require("./blueprint-D_5JAtYk.cjs");
46
+ const require_solidBuilders = require("./solidBuilders-CedPIyJu.cjs");
47
+ const require_cornerFinder = require("./cornerFinder-CZQBVvRq.cjs");
48
+ const require_extrudeFns = require("./extrudeFns-ohzyovvF.cjs");
49
49
  let opentype_js = require("opentype.js");
50
50
  opentype_js = __toESM(opentype_js);
51
51
  //#region src/2d/lib/stitching.ts
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
3
  const require_vecOps = require("./vecOps-BXvBYIor.cjs");
4
4
  //#region src/operations/extrudeUtils.ts
@@ -1,4 +1,4 @@
1
- import { Y as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-DUJg_N3P.js";
1
+ import { Y as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
3
3
  import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-D9etjPgV.js";
4
4
  //#region src/operations/extrudeUtils.ts
@@ -1,4 +1,4 @@
1
- import { J as _usingCtx, L as DisposalScope, Y as getKernel, t as castShape } from "./shapeTypes-DUJg_N3P.js";
1
+ import { J as _usingCtx, L as DisposalScope, Y as getKernel, t as castShape } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, R as unwrap, b as err, f as getSuggestionForCode, l as typeCastError, p as translateKernelError } from "./errors-C-cgQA3w.js";
3
3
  import { r as toVec3 } from "./types-BWBlwp6w.js";
4
4
  //#region src/core/kernelCall.ts
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
3
  const require_types = require("./types-BjDcsS7l.cjs");
4
4
  //#region src/core/kernelCall.ts
@@ -1,11 +1,11 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-D7i9yEts.cjs");
3
+ const require_faceFns = require("./faceFns-Cme3e43c.cjs");
4
4
  const require_constants = require("./constants-unWN8k4c.cjs");
5
5
  const require_vecOps = require("./vecOps-BXvBYIor.cjs");
6
- const require_shapeFns = require("./shapeFns-DZ2c5Nqo.cjs");
7
- const require_curveFns = require("./curveFns--4Nh1ZtB.cjs");
8
- const require_measureFns = require("./measureFns-rVSankqO.cjs");
6
+ const require_shapeFns = require("./shapeFns-CuN44RDe.cjs");
7
+ const require_curveFns = require("./curveFns-BQwce7aY.cjs");
8
+ const require_measureFns = require("./measureFns-B_9iLcMK.cjs");
9
9
  //#region src/utils/vec2d.ts
10
10
  /** Precision for curve intersection and parameter operations. */
11
11
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,11 +1,11 @@
1
- import { Y as getKernel, p as isFace } from "./shapeTypes-DUJg_N3P.js";
1
+ import { Y as getKernel, p as isFace } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, R as unwrap, T as isOk, b as err, h as bug, o as queryError } from "./errors-C-cgQA3w.js";
3
- import { c as normalAt, o as getSurfaceType } from "./faceFns-lcEYbLOs.js";
3
+ import { c as normalAt, o as getSurfaceType } from "./faceFns-CJ0slhjZ.js";
4
4
  import { t as DEG2RAD } from "./constants-B9u763C3.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-D9etjPgV.js";
6
- import { F as getVertices, I as getWires, M as getEdges, N as getFaces, a as isSameShape, n as getHashCode } from "./shapeFns-E3qTx3nN.js";
7
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-D9GbWpcl.js";
8
- import { n as measureArea } from "./measureFns-Dsan3QcB.js";
6
+ import { F as getVertices, I as getWires, M as getEdges, N as getFaces, a as isSameShape, n as getHashCode } from "./shapeFns-DsJtbjMn.js";
7
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-B-qDPOzI.js";
8
+ import { n as measureArea } from "./measureFns-rpfHHDDn.js";
9
9
  //#region src/utils/vec2d.ts
10
10
  /** Precision for curve intersection and parameter operations. */
11
11
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,9 +1,9 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
- const require_faceFns = require("./faceFns-D7i9yEts.cjs");
3
+ const require_faceFns = require("./faceFns-Cme3e43c.cjs");
4
4
  const require_vecOps = require("./vecOps-BXvBYIor.cjs");
5
- const require_shapeFns = require("./shapeFns-DZ2c5Nqo.cjs");
6
- const require_booleanFns = require("./booleanFns-Dmvv9VVT.cjs");
5
+ const require_shapeFns = require("./shapeFns-CuN44RDe.cjs");
6
+ const require_booleanFns = require("./booleanFns-BxEOBw7j.cjs");
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,9 +1,9 @@
1
- import { Y as getKernel, t as castShape, z as createKernelHandle } from "./shapeTypes-DUJg_N3P.js";
1
+ import { Y as getKernel, t as castShape, z as createKernelHandle } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, b as err, d as validationError, n as computationError, r as ioError } from "./errors-C-cgQA3w.js";
3
- import { v as fromBREP } from "./faceFns-lcEYbLOs.js";
3
+ import { v as fromBREP } from "./faceFns-CJ0slhjZ.js";
4
4
  import { d as vecNormalize, s as vecIsZero } from "./vecOps-D9etjPgV.js";
5
- import { s as toBREP } from "./shapeFns-E3qTx3nN.js";
6
- import { i as fuseAll } from "./booleanFns-DViuH9nW.js";
5
+ import { s as toBREP } from "./shapeFns-DsJtbjMn.js";
6
+ import { i as fuseAll } from "./booleanFns-DY_4PTTc.js";
7
7
  //#region src/utils/uuid.ts
8
8
  /** Generate a v4-style UUID string using `crypto.getRandomValues`. */
9
9
  function uuidv() {
@@ -1,7 +1,7 @@
1
- import { Y as getKernel, t as castShape } from "./shapeTypes-DUJg_N3P.js";
1
+ import { Y as getKernel, t as castShape } from "./shapeTypes-Bvc56l7a.js";
2
2
  import { A as ok, b as err, r as ioError, t as BrepErrorCode } from "./errors-C-cgQA3w.js";
3
3
  import { n as getAtOrThrow } from "./arrayAccess-xxcB3YNq.js";
4
- import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-Dsp-f4De.js";
4
+ import { f as make2dSegmentCurve, m as make2dThreePointArc, s as make2dBezierCurve, t as Blueprint } from "./blueprint-Do5-zCJ5.js";
5
5
  //#region src/io/objExportFns.ts
6
6
  /** Read a vec3 from a typed array at the given vertex index. */
7
7
  function vec3At(arr, i) {
@@ -1,7 +1,7 @@
1
- const require_shapeTypes = require("./shapeTypes-B5Vx1Wsw.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-BmAeVdSr.cjs");
2
2
  const require_errors = require("./errors-9zQcQK1H.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-CmulMesb.cjs");
4
- const require_blueprint = require("./blueprint-C8nlHdUE.cjs");
4
+ const require_blueprint = require("./blueprint-D_5JAtYk.cjs");
5
5
  //#region src/io/objExportFns.ts
6
6
  /** Read a vec3 from a typed array at the given vertex index. */
7
7
  function vec3At(arr, i) {
package/dist/io.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_meshFns = require("./meshFns-Z5n8gFAS.cjs");
3
- const require_importFns = require("./importFns-Ca7DsY-k.cjs");
2
+ const require_meshFns = require("./meshFns-B5bBKLLl.cjs");
3
+ const require_importFns = require("./importFns-C_L9mTn_.cjs");
4
4
  exports.blueprintToDXF = require_importFns.blueprintToDXF;
5
5
  exports.exportDXF = require_importFns.exportDXF;
6
6
  exports.exportGlb = require_importFns.exportGlb;
package/dist/io.js CHANGED
@@ -1,3 +1,3 @@
1
- import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-CKs4H-CH.js";
2
- import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-NY1stg0C.js";
1
+ import { n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-C565-TZ9.js";
2
+ import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-B1iFL_xB.js";
3
3
  export { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD };
@@ -306,6 +306,7 @@ export declare class BrepkitAdapter implements KernelAdapter {
306
306
  meshBoolean(positionsA: number[], indicesA: number[], positionsB: number[], indicesB: number[], op: string, tolerance: number): KernelMeshResult;
307
307
  sketchNew(): number;
308
308
  sketchAddPoint(sketch: number, x: number, y: number, fixed: boolean): number;
309
+ sketchAddArc(sketch: number, centerIdx: number, startIdx: number, endIdx: number): number;
309
310
  sketchAddConstraint(sketch: number, constraintJson: string): void;
310
311
  sketchSolve(sketch: number, maxIterations: number, tolerance: number): string;
311
312
  sketchDof(sketch: number): string;