brepjs 18.29.0 → 18.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/2d.cjs +6 -6
  2. package/dist/2d.js +6 -6
  3. package/dist/{blueprint-79MQJVZa.cjs → blueprint-CX2RHEEB.cjs} +5 -5
  4. package/dist/{blueprint-CUvDkWLs.js → blueprint-DjzrmC44.js} +5 -5
  5. package/dist/{blueprintFns-DX7ftQu1.cjs → blueprintFns-sYjcuD3S.cjs} +2 -2
  6. package/dist/{blueprintFns-Ce-Mzufq.js → blueprintFns-uty9-SLX.js} +2 -2
  7. package/dist/{blueprintSketcher-DiJ7nX5P.js → blueprintSketcher-Bs4zUnzq.js} +3 -3
  8. package/dist/{blueprintSketcher-CoefmhkD.cjs → blueprintSketcher-CuUqou1w.cjs} +3 -3
  9. package/dist/{boolean2D-B-6u7Td3.js → boolean2D-BtQAX9qA.js} +4 -4
  10. package/dist/{boolean2D-ByEkLCB7.cjs → boolean2D-CPHSLRai.cjs} +4 -4
  11. package/dist/{booleanFns-B-saLmi4.js → booleanFns-DcT5S7PR.js} +4 -4
  12. package/dist/{booleanFns-2zKQEuA8.cjs → booleanFns-DkMXJEWT.cjs} +4 -4
  13. package/dist/brepjs.cjs +24 -24
  14. package/dist/brepjs.js +24 -24
  15. package/dist/{cameraFns-ILz-I1EN.js → cameraFns-DkeC7V5J.js} +2 -2
  16. package/dist/{cameraFns-C0uWLB4t.cjs → cameraFns-K_Nl1guR.cjs} +2 -2
  17. package/dist/core.cjs +1 -1
  18. package/dist/core.js +1 -1
  19. package/dist/{cornerFinder-DnbKeXpc.js → cornerFinder-BJJFyfEh.js} +1 -1
  20. package/dist/{cornerFinder-DheJjEdJ.cjs → cornerFinder-DFiCSIfH.cjs} +1 -1
  21. package/dist/{curveFns-Dp2RyxrR.js → curveFns-BAeFDquO.js} +1 -1
  22. package/dist/{curveFns-BW6fpApo.cjs → curveFns-BgkFOuyU.cjs} +1 -1
  23. package/dist/{drawFns-rCnf1L3r.cjs → drawFns-BIpCVb2d.cjs} +12 -12
  24. package/dist/{drawFns-CJamg2C6.js → drawFns-CvJdaSme.js} +12 -12
  25. package/dist/{extrudeFns-CMGE0i5l.js → extrudeFns-B5gjM-FM.js} +1 -1
  26. package/dist/{extrudeFns-zngMBHOx.cjs → extrudeFns-CXPBh5nU.cjs} +1 -1
  27. package/dist/{faceFns-C8A9sCkb.cjs → faceFns-CyHH4kTh.cjs} +2 -2
  28. package/dist/{faceFns-DFDKI39R.js → faceFns-Mc45gFVz.js} +2 -2
  29. package/dist/{helpers-POBaax19.js → helpers-BbDE_mL4.js} +6 -6
  30. package/dist/{helpers-D-mko0qh.cjs → helpers-CE0Raxxr.cjs} +6 -6
  31. package/dist/{historyFns-CbT3UJYn.js → historyFns-DZKQl8qL.js} +4 -4
  32. package/dist/{historyFns-D0K337z6.cjs → historyFns-KpkhqpgM.cjs} +4 -4
  33. package/dist/{importFns-B1ym1wuL.cjs → importFns-Cwfs-weK.cjs} +2 -2
  34. package/dist/{importFns-CwNl9Ll2.js → importFns-Dn2UEtZd.js} +2 -2
  35. package/dist/io.cjs +2 -2
  36. package/dist/io.js +2 -2
  37. package/dist/kernel/brepkit/geometryOps.d.ts +10 -2
  38. package/dist/{measureFns-CeEybpyd.js → measureFns-C7SJOyBc.js} +3 -3
  39. package/dist/{measureFns-B7x2vp6b.cjs → measureFns-DGayqGpX.cjs} +3 -3
  40. package/dist/measurement.cjs +1 -1
  41. package/dist/measurement.js +1 -1
  42. package/dist/{meshFns-By5mtdo9.cjs → meshFns-CkYAnECP.cjs} +2 -2
  43. package/dist/{meshFns-BtNBXH5S.js → meshFns-_FNR4QJM.js} +2 -2
  44. package/dist/operations.cjs +2 -2
  45. package/dist/operations.js +2 -2
  46. package/dist/{primitiveFns-DfsjF4Kj.js → primitiveFns-CnnO2ark.js} +7 -7
  47. package/dist/{primitiveFns-IzSRaAG-.cjs → primitiveFns-OIIvukU7.cjs} +7 -7
  48. package/dist/projection.cjs +1 -1
  49. package/dist/projection.js +1 -1
  50. package/dist/query.cjs +2 -2
  51. package/dist/query.js +2 -2
  52. package/dist/{shapeFns-Cf79IuMn.js → shapeFns-CAajqXTr.js} +2 -2
  53. package/dist/{shapeFns-DPjMiDcX.cjs → shapeFns-DmeM98ps.cjs} +2 -2
  54. package/dist/shapeRef.cjs +1 -1
  55. package/dist/shapeRef.js +1 -1
  56. package/dist/{shapeRefFns-sE77hIRw.js → shapeRefFns-D-o1iNz2.js} +4 -4
  57. package/dist/{shapeRefFns-hCaw9c68.cjs → shapeRefFns-XZ0m15hb.cjs} +4 -4
  58. package/dist/{shapeTypes-q3dLIqqs.cjs → shapeTypes-Cm921nQl.cjs} +23 -3
  59. package/dist/{shapeTypes-DUC23pOr.js → shapeTypes-DoQpZDvB.js} +23 -3
  60. package/dist/sketching.cjs +3 -3
  61. package/dist/sketching.js +3 -3
  62. package/dist/{solidBuilders-CwwLuRz8.js → solidBuilders-BiX5zCdw.js} +2 -2
  63. package/dist/{solidBuilders-BoeIWGQs.cjs → solidBuilders-ByFrBRBR.cjs} +2 -2
  64. package/dist/{surfaceBuilders-CRTJ3eLf.js → surfaceBuilders-C3qCxovs.js} +2 -2
  65. package/dist/{surfaceBuilders-BJX_D1VO.cjs → surfaceBuilders-Ce_8WGQP.cjs} +2 -2
  66. package/dist/text.cjs +2 -2
  67. package/dist/text.js +2 -2
  68. package/dist/{textBlueprints-OEB7VKBv.js → textBlueprints-BJ_hCrTm.js} +7 -7
  69. package/dist/{textBlueprints-CuPkJa3W.cjs → textBlueprints-IkLHU-vh.cjs} +7 -7
  70. package/dist/{textMetrics-lTkakQKC.js → textMetrics-BXiQ0eD2.js} +1 -1
  71. package/dist/{textMetrics-boJWbnQk.cjs → textMetrics-BxcmbaRn.cjs} +1 -1
  72. package/dist/topology.cjs +7 -7
  73. package/dist/topology.js +7 -7
  74. package/dist/{topologyQueryFns-C38cIHle.cjs → topologyQueryFns-CAIQlNoT.cjs} +1 -1
  75. package/dist/{topologyQueryFns-BELdxJ8R.js → topologyQueryFns-CN_fFTlr.js} +1 -1
  76. package/package.json +1 -1
package/dist/2d.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
3
3
  const require_errors = require("./errors-DxoD7zgx.cjs");
4
- const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-CoefmhkD.cjs");
6
- const require_blueprint = require("./blueprint-79MQJVZa.cjs");
7
- const require_boolean2D = require("./boolean2D-ByEkLCB7.cjs");
8
- const require_blueprintFns = require("./blueprintFns-DX7ftQu1.cjs");
4
+ const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-CuUqou1w.cjs");
6
+ const require_blueprint = require("./blueprint-CX2RHEEB.cjs");
7
+ const require_boolean2D = require("./boolean2D-CPHSLRai.cjs");
8
+ const require_blueprintFns = require("./blueprintFns-sYjcuD3S.cjs");
9
9
  //#region src/core/curve2dHandle.ts
10
10
  /**
11
11
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
package/dist/2d.js CHANGED
@@ -1,10 +1,10 @@
1
- import { B as createKernelHandle, Q as getKernel2D, a as createEdge } from "./shapeTypes-DUC23pOr.js";
1
+ import { B as createKernelHandle, Q as getKernel2D, a as createEdge } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-BJSTLaDI.js";
3
- import { v as kernelCallRaw } from "./topologyQueryFns-BELdxJ8R.js";
4
- import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-DiJ7nX5P.js";
5
- import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-CUvDkWLs.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-B-6u7Td3.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-Ce-Mzufq.js";
3
+ import { v as kernelCallRaw } from "./topologyQueryFns-CN_fFTlr.js";
4
+ import { a as Blueprints, i as CompoundBlueprint, r as organiseBlueprints } from "./blueprintSketcher-Bs4zUnzq.js";
5
+ import { _ as Curve2D, t as Blueprint, y as BoundingBox2d } from "./blueprint-DjzrmC44.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-BtQAX9qA.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-uty9-SLX.js";
8
8
  //#region src/core/curve2dHandle.ts
9
9
  /**
10
10
  * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
@@ -1,14 +1,14 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
3
  const require_errors = require("./errors-DxoD7zgx.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_types = require("./types-KjA8tY4Y.cjs");
6
6
  const require_planeOps = require("./planeOps-C6wxugvC.cjs");
7
- const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
8
- const require_curveFns = require("./curveFns-BW6fpApo.cjs");
7
+ const require_faceFns = require("./faceFns-CyHH4kTh.cjs");
8
+ const require_curveFns = require("./curveFns-BgkFOuyU.cjs");
9
9
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
10
- const require_surfaceBuilders = require("./surfaceBuilders-BJX_D1VO.cjs");
11
- const require_helpers = require("./helpers-D-mko0qh.cjs");
10
+ const require_surfaceBuilders = require("./surfaceBuilders-Ce_8WGQP.cjs");
11
+ const require_helpers = require("./helpers-CE0Raxxr.cjs");
12
12
  //#region src/2d/lib/definitions.ts
13
13
  /** Type guard that checks whether a value is a `Point2D`. */
14
14
  function isPoint2D(point) {
@@ -1,14 +1,14 @@
1
- import { G as unregisterFromCleanup, Q as getKernel2D, U as registerForCleanup, Z as getKernel, a as createEdge, u as createWire } from "./shapeTypes-DUC23pOr.js";
1
+ import { G as unregisterFromCleanup, Q as getKernel2D, U as registerForCleanup, Z as getKernel, a as createEdge, u as createWire } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
3
  import { A as ok, R as unwrap, b as err, d as validationError, h as bug, n as computationError } from "./errors-BJSTLaDI.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { r as toVec3 } from "./types-D24Y27N0.js";
6
6
  import { r as makePlane } from "./planeOps-CblVcWbn.js";
7
- import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-DFDKI39R.js";
8
- import { f as getOrientation } from "./curveFns-Dp2RyxrR.js";
7
+ import { g as cast, m as uvCoordinates, n as faceCenter, p as uvBounds, r as faceGeomType } from "./faceFns-Mc45gFVz.js";
8
+ import { f as getOrientation } from "./curveFns-BAeFDquO.js";
9
9
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
10
- import { r as makeFace } from "./surfaceBuilders-CRTJ3eLf.js";
11
- import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-POBaax19.js";
10
+ import { r as makeFace } from "./surfaceBuilders-C3qCxovs.js";
11
+ import { _ as samePoint, b as subtract2d, l as add2d, o as normalize2d, p as distance2d, t as getSingleFace, v as scalarMultiply2d } from "./helpers-BbDE_mL4.js";
12
12
  //#region src/2d/lib/definitions.ts
13
13
  /** Type guard that checks whether a value is a `Point2D`. */
14
14
  function isPoint2D(point) {
@@ -1,6 +1,6 @@
1
1
  const require_errors = require("./errors-DxoD7zgx.cjs");
2
- const require_blueprintSketcher = require("./blueprintSketcher-CoefmhkD.cjs");
3
- const require_blueprint = require("./blueprint-79MQJVZa.cjs");
2
+ const require_blueprintSketcher = require("./blueprintSketcher-CuUqou1w.cjs");
3
+ const require_blueprint = require("./blueprint-CX2RHEEB.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-BJSTLaDI.js";
2
- import { i as CompoundBlueprint } from "./blueprintSketcher-DiJ7nX5P.js";
3
- import { t as Blueprint } from "./blueprint-CUvDkWLs.js";
2
+ import { i as CompoundBlueprint } from "./blueprintSketcher-Bs4zUnzq.js";
3
+ import { t as Blueprint } from "./blueprint-DjzrmC44.js";
4
4
  //#region src/2d/lib/curve2dFns.ts
5
5
  /**
6
6
  * Return a reversed copy of the curve (non-mutating).
@@ -1,10 +1,10 @@
1
- import { Q as getKernel2D, Z as getKernel } from "./shapeTypes-DUC23pOr.js";
1
+ import { Q as getKernel2D, Z as getKernel } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
3
  import { A as ok, R as unwrap, T as isOk, b as err, h as bug, n as computationError, s as safeIndex } from "./errors-BJSTLaDI.js";
4
4
  import { r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
6
- import { _ as samePoint, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, v as scalarMultiply2d } from "./helpers-POBaax19.js";
7
- import { _ as Curve2D, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-CUvDkWLs.js";
6
+ import { _ as samePoint, b as subtract2d, d as cartesianToPolar, f as crossProduct2d, g as rotate2d, h as polarToCartesian, l as add2d, m as polarAngle2d, o as normalize2d, p as distance2d, v as scalarMultiply2d } from "./helpers-BbDE_mL4.js";
7
+ import { _ as Curve2D, c as make2dCircle, f as make2dSegmentCurve, h as approximateAsBSpline, m as make2dThreePointArc, n as asSVG, o as make2dArcFromCenter, p as make2dTangentArc, r as viewbox, s as make2dBezierCurve, t as Blueprint, u as make2dEllipseArc, x as isPoint2D, y as BoundingBox2d } from "./blueprint-DjzrmC44.js";
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /** @template T */
10
10
  var FlatQueue = class {
@@ -1,10 +1,10 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
3
3
  const require_errors = require("./errors-DxoD7zgx.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
6
- const require_helpers = require("./helpers-D-mko0qh.cjs");
7
- const require_blueprint = require("./blueprint-79MQJVZa.cjs");
6
+ const require_helpers = require("./helpers-CE0Raxxr.cjs");
7
+ const require_blueprint = require("./blueprint-CX2RHEEB.cjs");
8
8
  //#region node_modules/flatqueue/index.js
9
9
  /** @template T */
10
10
  var FlatQueue = class {
@@ -1,10 +1,10 @@
1
1
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
2
2
  import { R as unwrap, h as bug, s as safeIndex } from "./errors-BJSTLaDI.js";
3
3
  import { r as lastOrThrow } from "./arrayAccess-DrUGPADn.js";
4
- import { v as zip } from "./surfaceBuilders-CRTJ3eLf.js";
5
- import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-DiJ7nX5P.js";
6
- import { _ as samePoint$1, b as subtract2d, f as crossProduct2d, s as PRECISION_INTERSECTION } from "./helpers-POBaax19.js";
7
- import { b as removeDuplicatePoints, f as make2dSegmentCurve, t as Blueprint } from "./blueprint-CUvDkWLs.js";
4
+ import { v as zip } from "./surfaceBuilders-C3qCxovs.js";
5
+ import { a as Blueprints, i as CompoundBlueprint, l as intersectCurves, r as organiseBlueprints, t as BlueprintSketcher, u as Flatbush } from "./blueprintSketcher-Bs4zUnzq.js";
6
+ import { _ as samePoint$1, b as subtract2d, f as crossProduct2d, s as PRECISION_INTERSECTION } from "./helpers-BbDE_mL4.js";
7
+ import { b as removeDuplicatePoints, f as make2dSegmentCurve, t as Blueprint } from "./blueprint-DjzrmC44.js";
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
@@ -1,10 +1,10 @@
1
1
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
2
2
  const require_errors = require("./errors-DxoD7zgx.cjs");
3
3
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
4
- const require_surfaceBuilders = require("./surfaceBuilders-BJX_D1VO.cjs");
5
- const require_blueprintSketcher = require("./blueprintSketcher-CoefmhkD.cjs");
6
- const require_helpers = require("./helpers-D-mko0qh.cjs");
7
- const require_blueprint = require("./blueprint-79MQJVZa.cjs");
4
+ const require_surfaceBuilders = require("./surfaceBuilders-Ce_8WGQP.cjs");
5
+ const require_blueprintSketcher = require("./blueprintSketcher-CuUqou1w.cjs");
6
+ const require_helpers = require("./helpers-CE0Raxxr.cjs");
7
+ const require_blueprint = require("./blueprint-CX2RHEEB.cjs");
8
8
  //#region src/2d/blueprints/cannedBlueprints.ts
9
9
  /**
10
10
  * Create a regular polygon blueprint inscribed in a circle of the given radius.
@@ -1,12 +1,12 @@
1
- import { Z as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-DUC23pOr.js";
1
+ import { Z as getKernel, h as isShape3D, t as castShape } from "./shapeTypes-DoQpZDvB.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-BJSTLaDI.js";
3
- import { l as getVertices, o as getEdges, u as getWires } from "./topologyQueryFns-BELdxJ8R.js";
3
+ import { l as getVertices, o as getEdges, u as getWires } from "./topologyQueryFns-CN_fFTlr.js";
4
4
  import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
5
5
  import { h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
6
6
  import { o as resolvePlane } from "./planeOps-CblVcWbn.js";
7
- import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-Cf79IuMn.js";
7
+ import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-CAajqXTr.js";
8
8
  import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
9
- import { r as makeFace } from "./surfaceBuilders-CRTJ3eLf.js";
9
+ import { r as makeFace } from "./surfaceBuilders-C3qCxovs.js";
10
10
  //#region src/topology/booleanFns.ts
11
11
  /**
12
12
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
6
  const require_planeOps = require("./planeOps-C6wxugvC.cjs");
7
- const require_shapeFns = require("./shapeFns-DPjMiDcX.cjs");
7
+ const require_shapeFns = require("./shapeFns-DmeM98ps.cjs");
8
8
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
9
- const require_surfaceBuilders = require("./surfaceBuilders-BJX_D1VO.cjs");
9
+ const require_surfaceBuilders = require("./surfaceBuilders-Ce_8WGQP.cjs");
10
10
  //#region src/topology/booleanFns.ts
11
11
  /**
12
12
  * Boolean and compound operations — functional replacements for _3DShape boolean methods.
package/dist/brepjs.cjs CHANGED
@@ -1,36 +1,36 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_textBlueprints = require("./textBlueprints-CuPkJa3W.cjs");
3
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
2
+ const require_textBlueprints = require("./textBlueprints-IkLHU-vh.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
4
4
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
5
5
  const require_occtWasmAdapter = require("./occtWasmAdapter-BaidTDJk.cjs");
6
6
  const require_errors = require("./errors-DxoD7zgx.cjs");
7
- const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
7
+ const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
8
8
  const require_constants = require("./constants-BOVyEYGH.cjs");
9
9
  const require_types = require("./types-KjA8tY4Y.cjs");
10
10
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
11
11
  const require_planeOps = require("./planeOps-C6wxugvC.cjs");
12
- const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
13
- const require_shapeFns = require("./shapeFns-DPjMiDcX.cjs");
14
- const require_curveFns = require("./curveFns-BW6fpApo.cjs");
15
- const require_meshFns = require("./meshFns-By5mtdo9.cjs");
12
+ const require_faceFns = require("./faceFns-CyHH4kTh.cjs");
13
+ const require_shapeFns = require("./shapeFns-DmeM98ps.cjs");
14
+ const require_curveFns = require("./curveFns-BgkFOuyU.cjs");
15
+ const require_meshFns = require("./meshFns-CkYAnECP.cjs");
16
16
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
17
- const require_surfaceBuilders = require("./surfaceBuilders-BJX_D1VO.cjs");
18
- const require_booleanFns = require("./booleanFns-2zKQEuA8.cjs");
19
- const require_primitiveFns = require("./primitiveFns-IzSRaAG-.cjs");
20
- const require_historyFns = require("./historyFns-D0K337z6.cjs");
21
- const require_blueprintSketcher = require("./blueprintSketcher-CoefmhkD.cjs");
22
- const require_helpers = require("./helpers-D-mko0qh.cjs");
23
- const require_drawFns = require("./drawFns-rCnf1L3r.cjs");
24
- const require_solidBuilders = require("./solidBuilders-BoeIWGQs.cjs");
25
- const require_measureFns = require("./measureFns-B7x2vp6b.cjs");
26
- const require_cornerFinder = require("./cornerFinder-DheJjEdJ.cjs");
27
- const require_boolean2D = require("./boolean2D-ByEkLCB7.cjs");
28
- const require_blueprintFns = require("./blueprintFns-DX7ftQu1.cjs");
29
- const require_importFns = require("./importFns-B1ym1wuL.cjs");
30
- const require_extrudeFns = require("./extrudeFns-zngMBHOx.cjs");
31
- const require_cameraFns = require("./cameraFns-C0uWLB4t.cjs");
32
- const require_textMetrics = require("./textMetrics-boJWbnQk.cjs");
33
- const require_shapeRefFns = require("./shapeRefFns-hCaw9c68.cjs");
17
+ const require_surfaceBuilders = require("./surfaceBuilders-Ce_8WGQP.cjs");
18
+ const require_booleanFns = require("./booleanFns-DkMXJEWT.cjs");
19
+ const require_primitiveFns = require("./primitiveFns-OIIvukU7.cjs");
20
+ const require_historyFns = require("./historyFns-KpkhqpgM.cjs");
21
+ const require_blueprintSketcher = require("./blueprintSketcher-CuUqou1w.cjs");
22
+ const require_helpers = require("./helpers-CE0Raxxr.cjs");
23
+ const require_drawFns = require("./drawFns-BIpCVb2d.cjs");
24
+ const require_solidBuilders = require("./solidBuilders-ByFrBRBR.cjs");
25
+ const require_measureFns = require("./measureFns-DGayqGpX.cjs");
26
+ const require_cornerFinder = require("./cornerFinder-DFiCSIfH.cjs");
27
+ const require_boolean2D = require("./boolean2D-CPHSLRai.cjs");
28
+ const require_blueprintFns = require("./blueprintFns-sYjcuD3S.cjs");
29
+ const require_importFns = require("./importFns-Cwfs-weK.cjs");
30
+ const require_extrudeFns = require("./extrudeFns-CXPBh5nU.cjs");
31
+ const require_cameraFns = require("./cameraFns-K_Nl1guR.cjs");
32
+ const require_textMetrics = require("./textMetrics-BxcmbaRn.cjs");
33
+ const require_shapeRefFns = require("./shapeRefFns-XZ0m15hb.cjs");
34
34
  const require_workerHandler = require("./workerHandler-CdlOTwJg.cjs");
35
35
  //#region src/topology/shapeBooleans.ts
36
36
  var BOPAlgo_GlueShift = 1;
package/dist/brepjs.js CHANGED
@@ -1,35 +1,35 @@
1
- import { $ as init, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getActiveKernelId, Y as _usingCtx, Z as getKernel, _ as isSolid, a as createEdge, at as supportsProjection, b as closedWire, c as createSolid, ct as resetPerformanceStats, d as isCompound, et as initFromOC, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as supportsConstraintSketch, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as registerKernel, o as createFace, ot as BrepkitAdapter, p as isFace, q as withScopeResult, rt as withKernel, s as createShell, st as getPerformanceStats, t as castShape, tt as prewarm, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-DUC23pOr.js";
1
+ import { $ as init, A as planarWire, B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, F as as3D, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, P as as2D, R as DisposalScope, S as isManifoldShell, T as isPlanarWire, V as getDisposalStats, W as resetDisposalStats, X as getActiveKernelId, Y as _usingCtx, Z as getKernel, _ as isSolid, a as createEdge, at as supportsProjection, b as closedWire, c as createSolid, ct as resetPerformanceStats, d as isCompound, et as initFromOC, f as isEdge, g as isShell, h as isShape3D, i as createCompound, it as supportsConstraintSketch, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as registerKernel, o as createFace, ot as BrepkitAdapter, p as isFace, q as withScopeResult, rt as withKernel, s as createShell, st as getPerformanceStats, t as castShape, tt as prewarm, u as createWire, v as isVertex, w as isPlanarFace, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
3
  import { t as OcctWasmAdapter } from "./occtWasmAdapter-Dtp7Wu27.js";
4
4
  import { A as ok, B as unwrapOr, C as fromNullable, D as mapBoth, E as map, F as tapErr, H as zip, I as tryCatch, L as tryCatchAsync, M as orElse, N as pipeline, O as mapErr, P as tap, R as unwrap, S as flatten, T as isOk, V as unwrapOrElse, _ as all, a as moduleInitError, b as err, c as sketcherStateError, d as validationError, g as OK, h as bug, i as kernelError, j as or, k as match, l as typeCastError, m as BrepBugError, n as computationError, o as queryError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as andThen, w as isErr, x as flatMap, y as collect, z as unwrapErr } from "./errors-BJSTLaDI.js";
5
- import { _ as kernelCall, a as getCachedSurfaceType, d as invalidateShapeCache, f as iterEdges, g as vertexPosition, h as iterWires, l as getVertices, m as iterVertices, n as getBounds, o as getEdges, p as iterFaces, s as getFaces, t as describe$1, u as getWires, v as kernelCallRaw, y as kernelCallScoped } from "./topologyQueryFns-BELdxJ8R.js";
5
+ import { _ as kernelCall, a as getCachedSurfaceType, d as invalidateShapeCache, f as iterEdges, g as vertexPosition, h as iterWires, l as getVertices, m as iterVertices, n as getBounds, o as getEdges, p as iterFaces, s as getFaces, t as describe$1, u as getWires, v as kernelCallRaw, y as kernelCallScoped } from "./topologyQueryFns-CN_fFTlr.js";
6
6
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
7
7
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
8
8
  import { a as vecDot, c as vecLength, d as vecNormalize, f as vecProjectToPlane, g as vecSub, h as vecScale, i as vecDistance, l as vecLengthSq, m as vecRotate, n as vecAngle, o as vecEquals, p as vecRepr, r as vecCross, s as vecIsZero, t as vecAdd, u as vecNegate } from "./vecOps-SKPRvPH-.js";
9
9
  import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-CblVcWbn.js";
10
- import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-DFDKI39R.js";
11
- import { C as findFacesByTag, D as tagFaces, E as setTagMetadata, O as getFaceOrigins, S as getShapeColor, T as getTagMetadata, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$2, h as translate$2, i as isEqualShape, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$2, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$2, w as getFaceTags, x as getFaceColor, y as colorFaces } from "./shapeFns-Cf79IuMn.js";
12
- import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-Dp2RyxrR.js";
13
- import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o as meshMultiLOD, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-BtNBXH5S.js";
10
+ import { _ as downcast, a as flipFaceOrientation, b as iterTopo, c as normalAt, d as projectPointOnFace, f as removeHolesFromFace, g as cast, h as asTopo, i as faceOrientation, l as outerWire, m as uvCoordinates, n as faceCenter, o as getSurfaceType, p as uvBounds, r as faceGeomType, s as innerWires, t as classifyPointOnFace, u as pointOnSurface, v as fromBREP, x as shapeType, y as isCompSolid } from "./faceFns-Mc45gFVz.js";
11
+ import { C as findFacesByTag, D as tagFaces, E as setTagMetadata, O as getFaceOrigins, S as getShapeColor, T as getTagMetadata, a as isSameShape, b as colorShape, c as applyMatrix$1, d as resize, f as rotate$2, h as translate$2, i as isEqualShape, k as setShapeOrigin, l as composeTransforms, m as transformCopy$1, n as getHashCode, o as simplify$1, p as scale$2, r as isEmpty$2, s as toBREP$1, t as clone$1, u as mirror$2, w as getFaceTags, x as getFaceColor, y as colorFaces } from "./shapeFns-CAajqXTr.js";
12
+ import { a as curveLength, c as curveStartPoint, d as getCurveType, f as getOrientation, i as curveIsPeriodic, l as curveTangentAt, m as offsetWire2D, n as curveEndPoint, o as curvePeriod, p as interpolateCurve, r as curveIsClosed, s as curvePointAt, t as approximateCurve, u as flipOrientation } from "./curveFns-BAeFDquO.js";
13
+ import { a as meshEdges$1, c as createMeshCache, i as mesh$1, n as exportSTEP, o as meshMultiLOD, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-_FNR4QJM.js";
14
14
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
15
- import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-CRTJ3eLf.js";
16
- import { a as fuseAll, c as sectionToFace$1, i as fuse$2, l as slice$1, n as cut$2, o as intersect$2, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-B-saLmi4.js";
17
- import { $ as fuseAllBisect, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as cutAllBisect, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, dt as toLODGeometryData, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-DfsjF4Kj.js";
18
- import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-CbT3UJYn.js";
19
- import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-DiJ7nX5P.js";
20
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-POBaax19.js";
21
- import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-CJamg2C6.js";
22
- import { r as makeCylinder } from "./solidBuilders-CwwLuRz8.js";
23
- import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-CeEybpyd.js";
24
- import { t as cornerFinder } from "./cornerFinder-DnbKeXpc.js";
25
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-B-6u7Td3.js";
26
- import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-Ce-Mzufq.js";
27
- import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-CwNl9Ll2.js";
28
- import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-CMGE0i5l.js";
29
- import { a as Sketch, b as loftAll, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch, y as loft$1 } from "./textBlueprints-OEB7VKBv.js";
30
- import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-ILz-I1EN.js";
31
- import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-lTkakQKC.js";
32
- import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-sE77hIRw.js";
15
+ import { _ as makeThreePointArc, d as makeCircle, h as makeLine, l as makeBSplineInterpolation, n as fill, r as makeFace, s as assembleWire } from "./surfaceBuilders-C3qCxovs.js";
16
+ import { a as fuseAll, c as sectionToFace$1, i as fuse$2, l as slice$1, n as cut$2, o as intersect$2, r as cutAll, s as section$1, t as booleanPipeline, u as split$1 } from "./booleanFns-DcT5S7PR.js";
17
+ import { $ as fuseAllBisect, A as fixShape, B as offset$1, C as threePointArc, D as wireLoop, E as wire, F as isValid$1, G as chamferWithEvolution, H as thicken$1, I as solidFromShell, J as fuseWithEvolution, K as cutWithEvolution, L as chamfer$1, M as healFace, N as healSolid, O as autoHeal, P as healWire, Q as cutAllBisect, R as draft$1, S as tangentArc, T as vertex, U as variableFillet, V as shell$1, W as positionOnCurve, X as shellWithEvolution, Y as intersectWithEvolution, Z as checkBoolean, _ as polygon, a as circle, at as sharedEdges, b as sphere, c as cylinder, ct as chamferDistAngle, d as ellipsoid, dt as toLODGeometryData, et as getNurbsCurveData, f as face, ft as toLineGeometryData, g as offsetFace, h as line, i as bsplineApprox, it as facesOfEdge, j as heal$1, k as fixSelfIntersection, l as ellipse, lt as toBufferGeometryData, m as helix, n as bezier, nt as adjacentFaces, o as compound, ot as verticesOfEdge, p as filledFace, q as filletWithEvolution, r as box, rt as edgesOfFace, s as cone, st as wiresOfFace, t as addHoles, tt as getNurbsSurfaceData, u as ellipseArc, ut as toGroupedBufferGeometryData, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-CnnO2ark.js";
18
+ import { C as walkAssembly, D as exportAssemblySTEP, E as linearPattern, O as createAssembly, S as updateNode, _ as collectShapes, a as findStep, b as findNode, c as registerOperation, d as replayHistory, f as serializeHistory, g as addChild, h as undoLast, i as deserializeHistory, l as registerShape, m as stepsFrom, n as createHistory, o as getShape, p as stepCount, r as createRegistry, s as modifyStep, t as addStep, u as replayFrom, v as countNodes, w as circularPattern, x as removeChild, y as createAssemblyNode } from "./historyFns-DZKQl8qL.js";
19
+ import { n as BaseSketcher2d, r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-Bs4zUnzq.js";
20
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-BbDE_mL4.js";
21
+ import { A as sketchEllipse, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-CvJdaSme.js";
22
+ import { r as makeCylinder } from "./solidBuilders-BiX5zCdw.js";
23
+ import { a as measureDistance, c as measureLinearProps, d as measureVolumeProps, i as measureCurvatureAtMid, l as measureSurfaceProps, n as measureArea, o as measureDistanceProps, r as measureCurvatureAt, s as measureLength, t as createDistanceQuery, u as measureVolume } from "./measureFns-C7SJOyBc.js";
24
+ import { t as cornerFinder } from "./cornerFinder-BJJFyfEh.js";
25
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, i as cutBlueprints, n as fuse2D, o as intersectBlueprints, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BtQAX9qA.js";
26
+ import { S as reverseCurve, _ as curve2dIsOnCurve, a as isInside2D, b as curve2dSplitAt, c as scale2D, d as stretch2D, f as toSVGPathD, g as curve2dFirstPoint, h as curve2dDistanceFrom, i as getOrientation2D, l as sketchOnFace2D, m as curve2dBoundingBox, n as createCompoundBlueprint, o as mirror2D, p as translate2D, r as getBounds2D, s as rotate2D, t as createBlueprint, u as sketchOnPlane2D, v as curve2dLastPoint, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-uty9-SLX.js";
27
+ import { a as importSVG, c as blueprintToDXF, d as exportGltf, f as exportOBJ, i as exportSTEPConfigured, l as exportDXF, n as importSTEP, o as importSVGPathD, r as importSTL, s as exportThreeMF, t as importIGES, u as exportGlb } from "./importFns-Dn2UEtZd.js";
28
+ import { a as guidedSweep, c as sweep, i as complexExtrude, l as twistExtrude, n as extrudeAll, o as multiSectionSweep, r as revolve$1, s as supportExtrude, t as extrude$1 } from "./extrudeFns-B5gjM-FM.js";
29
+ import { a as Sketch, b as loftAll, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, n as getFont, o as compoundSketchExtrude, p as sketchRevolve, r as loadFont, s as compoundSketchFace, t as textBlueprints, u as sketchExtrude, v as CompoundSketch, y as loft$1 } from "./textBlueprints-BJ_hCrTm.js";
30
+ import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-DkeC7V5J.js";
31
+ import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-BXiQ0eD2.js";
32
+ import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-D-o1iNz2.js";
33
33
  import { a as createTaskQueue, c as isEmpty$1, d as isDisposeRequest, f as isErrorResponse, h as isSuccessResponse, i as createWorkerClient, l as pendingCount, m as isOperationRequest, n as createWorkerHandler, o as dequeueTask, p as isInitRequest, r as registerHandler, s as enqueueTask, t as createOperationRegistry, u as rejectAll } from "./workerHandler-CFetYgIm.js";
34
34
  //#region \0rolldown/runtime.js
35
35
  var __defProp = Object.defineProperty;
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-DUC23pOr.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { A as ok, b as err, d as validationError } from "./errors-BJSTLaDI.js";
3
- import { o as getEdges } from "./topologyQueryFns-BELdxJ8R.js";
3
+ import { o as getEdges } from "./topologyQueryFns-CN_fFTlr.js";
4
4
  import { c as vecLength, d as vecNormalize, g as vecSub, r as vecCross } from "./vecOps-SKPRvPH-.js";
5
5
  //#region src/projection/projectionPlanes.ts
6
6
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
4
4
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
5
5
  //#region src/projection/projectionPlanes.ts
6
6
  /** Lookup table mapping each {@link ProjectionPlane} to its camera configuration. */
package/dist/core.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
3
3
  const require_errors = require("./errors-DxoD7zgx.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_types = require("./types-KjA8tY4Y.cjs");
package/dist/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-DUC23pOr.js";
1
+ import { B as createKernelHandle, C as isOrientedFace, D as manifoldShell, E as isValidSolid, H as isLive, I as is2D, J as withScopeResultAsync, K as withScope, L as is3D, M as getShapeKind, O as orientedFace, R as DisposalScope, S as isManifoldShell, _ as isSolid, b as closedWire, d as isCompound, f as isEdge, g as isShell, h as isShape3D, j as validSolid, m as isShape1D, p as isFace, q as withScopeResult, t as castShape, v as isVertex, x as isClosedWire, y as isWire, z as createHandle } from "./shapeTypes-DoQpZDvB.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-BJSTLaDI.js";
3
3
  import { n as HASH_CODE_MAX, r as RAD2DEG, t as DEG2RAD } from "./constants-ITRzCnCp.js";
4
4
  import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-D24Y27N0.js";
@@ -1,6 +1,6 @@
1
1
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
2
2
  import { n as getAtOrThrow } from "./arrayAccess-DrUGPADn.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-POBaax19.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-BbDE_mL4.js";
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,6 +1,6 @@
1
1
  const require_constants = require("./constants-BOVyEYGH.cjs");
2
2
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
3
- const require_helpers = require("./helpers-D-mko0qh.cjs");
3
+ const require_helpers = require("./helpers-CE0Raxxr.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 { Z as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-DUC23pOr.js";
1
+ import { Z as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { A as ok, b as err, l as typeCastError } from "./errors-BJSTLaDI.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_errors = require("./errors-DxoD7zgx.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
@@ -1,22 +1,22 @@
1
- const require_textBlueprints = require("./textBlueprints-CuPkJa3W.cjs");
2
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_textBlueprints = require("./textBlueprints-IkLHU-vh.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
3
3
  const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
4
4
  const require_errors = require("./errors-DxoD7zgx.cjs");
5
- const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
5
+ const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
6
6
  const require_constants = require("./constants-BOVyEYGH.cjs");
7
7
  const require_types = require("./types-KjA8tY4Y.cjs");
8
8
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
9
9
  const require_planeOps = require("./planeOps-C6wxugvC.cjs");
10
- const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
11
- const require_curveFns = require("./curveFns-BW6fpApo.cjs");
10
+ const require_faceFns = require("./faceFns-CyHH4kTh.cjs");
11
+ const require_curveFns = require("./curveFns-BgkFOuyU.cjs");
12
12
  const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
13
- const require_surfaceBuilders = require("./surfaceBuilders-BJX_D1VO.cjs");
14
- const require_blueprintSketcher = require("./blueprintSketcher-CoefmhkD.cjs");
15
- const require_helpers = require("./helpers-D-mko0qh.cjs");
16
- const require_blueprint = require("./blueprint-79MQJVZa.cjs");
17
- const require_cornerFinder = require("./cornerFinder-DheJjEdJ.cjs");
18
- const require_boolean2D = require("./boolean2D-ByEkLCB7.cjs");
19
- const require_cameraFns = require("./cameraFns-C0uWLB4t.cjs");
13
+ const require_surfaceBuilders = require("./surfaceBuilders-Ce_8WGQP.cjs");
14
+ const require_blueprintSketcher = require("./blueprintSketcher-CuUqou1w.cjs");
15
+ const require_helpers = require("./helpers-CE0Raxxr.cjs");
16
+ const require_blueprint = require("./blueprint-CX2RHEEB.cjs");
17
+ const require_cornerFinder = require("./cornerFinder-DFiCSIfH.cjs");
18
+ const require_boolean2D = require("./boolean2D-CPHSLRai.cjs");
19
+ const require_cameraFns = require("./cameraFns-K_Nl1guR.cjs");
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
@@ -1,22 +1,22 @@
1
- import { R as DisposalScope, Y as _usingCtx, Z as getKernel, a as createEdge, o as createFace, u as createWire } from "./shapeTypes-DUC23pOr.js";
1
+ import { R as DisposalScope, Y as _usingCtx, Z as getKernel, a as createEdge, o as createFace, u as createWire } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
3
3
  import { R as unwrap, h as bug, s as safeIndex } from "./errors-BJSTLaDI.js";
4
- import { o as getEdges } from "./topologyQueryFns-BELdxJ8R.js";
4
+ import { o as getEdges } from "./topologyQueryFns-CN_fFTlr.js";
5
5
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
6
6
  import { r as toVec3 } from "./types-D24Y27N0.js";
7
7
  import { d as vecNormalize, g as vecSub, h as vecScale, m as vecRotate, r as vecCross } from "./vecOps-SKPRvPH-.js";
8
8
  import { a as planeToWorld, o as resolvePlane } from "./planeOps-CblVcWbn.js";
9
- import { _ as downcast, c as normalAt, l as outerWire, n as faceCenter, p as uvBounds, u as pointOnSurface } from "./faceFns-DFDKI39R.js";
10
- import { c as curveStartPoint, m as offsetWire2D, r as curveIsClosed } from "./curveFns-Dp2RyxrR.js";
9
+ import { _ as downcast, c as normalAt, l as outerWire, n as faceCenter, p as uvBounds, u as pointOnSurface } from "./faceFns-Mc45gFVz.js";
10
+ import { c as curveStartPoint, m as offsetWire2D, r as curveIsClosed } from "./curveFns-BAeFDquO.js";
11
11
  import { n as getAtOrThrow, r as lastOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
12
- import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-CRTJ3eLf.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-DiJ7nX5P.js";
14
- import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-POBaax19.js";
15
- import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-CUvDkWLs.js";
16
- import { t as cornerFinder } from "./cornerFinder-DnbKeXpc.js";
17
- import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-B-6u7Td3.js";
18
- import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-OEB7VKBv.js";
19
- import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-ILz-I1EN.js";
12
+ import { c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, m as makeHelix, r as makeFace, s as assembleWire } from "./surfaceBuilders-C3qCxovs.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-Bs4zUnzq.js";
14
+ import { _ as samePoint$1, b as subtract2d, c as PRECISION_OFFSET, l as add2d, y as squareDistance2d } from "./helpers-BbDE_mL4.js";
15
+ import { _ as Curve2D, a as edgeToCurve, c as make2dCircle, d as make2dInerpolatedBSplineCurve, f as make2dSegmentCurve, g as approximateAsSvgCompatibleCurve, i as curvesAsEdgesOnPlane, l as make2dEllipse, o as make2dArcFromCenter, t as Blueprint, v as deserializeCurve2D, y as BoundingBox2d } from "./blueprint-DjzrmC44.js";
16
+ import { t as cornerFinder } from "./cornerFinder-BJJFyfEh.js";
17
+ import { c as roundedRectangleBlueprint, n as fuse2D, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-BtQAX9qA.js";
18
+ import { _ as wrapSketchDataArray, a as Sketch, g as wrapSketchData, i as Sketches, t as textBlueprints } from "./textBlueprints-BJ_hCrTm.js";
19
+ import { i as projectEdges, t as cameraFromPlane } from "./cameraFns-DkeC7V5J.js";
20
20
  //#region src/2d/lib/stitching.ts
21
21
  /**
22
22
  * Group a flat list of curves into connected chains by matching endpoints.
@@ -1,4 +1,4 @@
1
- import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-DUC23pOr.js";
1
+ import { Z as getKernel, c as createSolid, h as isShape3D, t as castShape, y as isWire } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { A as ok, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, w as isErr } from "./errors-BJSTLaDI.js";
3
3
  import { c as vecLength, d as vecNormalize, t as vecAdd } from "./vecOps-SKPRvPH-.js";
4
4
  //#region src/operations/extrudeUtils.ts
@@ -1,4 +1,4 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_errors = require("./errors-DxoD7zgx.cjs");
3
3
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
4
4
  //#region src/operations/extrudeUtils.ts
@@ -1,6 +1,6 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
4
4
  const require_types = require("./types-KjA8tY4Y.cjs");
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,6 +1,6 @@
1
- import { Z as getKernel, t as castShape } from "./shapeTypes-DUC23pOr.js";
1
+ import { Z as getKernel, t as castShape } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { A as ok, R as unwrap, b as err, l as typeCastError } from "./errors-BJSTLaDI.js";
3
- import { a as getCachedSurfaceType } from "./topologyQueryFns-BELdxJ8R.js";
3
+ import { a as getCachedSurfaceType } from "./topologyQueryFns-CN_fFTlr.js";
4
4
  import { r as toVec3 } from "./types-D24Y27N0.js";
5
5
  //#region src/topology/cast.ts
6
6
  var TOPO_ENUM = {
@@ -1,12 +1,12 @@
1
- import { Z as getKernel, p as isFace } from "./shapeTypes-DUC23pOr.js";
1
+ import { Z as getKernel, p as isFace } from "./shapeTypes-DoQpZDvB.js";
2
2
  import { A as ok, T as isOk, b as err, h as bug, o as queryError } from "./errors-BJSTLaDI.js";
3
- import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-BELdxJ8R.js";
3
+ import { l as getVertices, o as getEdges, s as getFaces, u as getWires } from "./topologyQueryFns-CN_fFTlr.js";
4
4
  import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
5
5
  import { a as vecDot, d as vecNormalize } from "./vecOps-SKPRvPH-.js";
6
- import { c as normalAt, o as getSurfaceType } from "./faceFns-DFDKI39R.js";
7
- import { a as isSameShape, n as getHashCode } from "./shapeFns-Cf79IuMn.js";
8
- import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-Dp2RyxrR.js";
9
- import { n as measureArea } from "./measureFns-CeEybpyd.js";
6
+ import { c as normalAt, o as getSurfaceType } from "./faceFns-Mc45gFVz.js";
7
+ import { a as isSameShape, n as getHashCode } from "./shapeFns-CAajqXTr.js";
8
+ import { a as curveLength, d as getCurveType, r as curveIsClosed } from "./curveFns-BAeFDquO.js";
9
+ import { n as measureArea } from "./measureFns-C7SJOyBc.js";
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;
@@ -1,12 +1,12 @@
1
- const require_shapeTypes = require("./shapeTypes-q3dLIqqs.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-Cm921nQl.cjs");
2
2
  const require_errors = require("./errors-DxoD7zgx.cjs");
3
- const require_topologyQueryFns = require("./topologyQueryFns-C38cIHle.cjs");
3
+ const require_topologyQueryFns = require("./topologyQueryFns-CAIQlNoT.cjs");
4
4
  const require_constants = require("./constants-BOVyEYGH.cjs");
5
5
  const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
6
- const require_faceFns = require("./faceFns-C8A9sCkb.cjs");
7
- const require_shapeFns = require("./shapeFns-DPjMiDcX.cjs");
8
- const require_curveFns = require("./curveFns-BW6fpApo.cjs");
9
- const require_measureFns = require("./measureFns-B7x2vp6b.cjs");
6
+ const require_faceFns = require("./faceFns-CyHH4kTh.cjs");
7
+ const require_shapeFns = require("./shapeFns-DmeM98ps.cjs");
8
+ const require_curveFns = require("./curveFns-BgkFOuyU.cjs");
9
+ const require_measureFns = require("./measureFns-DGayqGpX.cjs");
10
10
  //#region src/utils/vec2d.ts
11
11
  /** Precision for curve intersection and parameter operations. */
12
12
  var PRECISION_INTERSECTION = 1e-9;