brepjs 13.1.0 → 13.4.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 (114) hide show
  1. package/dist/2d/curve2dGeometryFns.d.ts +107 -0
  2. package/dist/2d/curve2dGeometryFns.d.ts.map +1 -0
  3. package/dist/2d.cjs +229 -3
  4. package/dist/2d.d.ts +2 -0
  5. package/dist/2d.d.ts.map +1 -1
  6. package/dist/2d.js +206 -4
  7. package/dist/{arrayAccess-Bz2OkAF_.js → arrayAccess-B5LgmXBo.js} +4 -4
  8. package/dist/{arrayAccess-FwdVX3Nh.cjs → arrayAccess-t2dlxGSK.cjs} +4 -4
  9. package/dist/{blueprint-Bpa-w3WF.js → blueprint-CB_85Lz_.js} +10 -10
  10. package/dist/{blueprint-YPV8lQqg.cjs → blueprint-CDnBM-tA.cjs} +10 -10
  11. package/dist/{blueprintFns-iQsyPfTY.cjs → blueprintFns-D4YucGaQ.cjs} +142 -3
  12. package/dist/{blueprintFns-D0RopDZS.js → blueprintFns-DVDommWB.js} +125 -4
  13. package/dist/{boolean2D-D_yuF0kT.js → boolean2D-Mzp-0g7o.js} +12 -12
  14. package/dist/{boolean2D-CMXMxTgD.cjs → boolean2D-lqfKJKUY.cjs} +12 -12
  15. package/dist/{booleanFns-omB4YLGU.js → booleanFns-B46fgObh.js} +26 -14
  16. package/dist/{booleanFns-o7EsqNGM.cjs → booleanFns-Bw8sAMgI.cjs} +26 -14
  17. package/dist/brepjs.cjs +28 -145
  18. package/dist/brepjs.js +23 -143
  19. package/dist/core/curve2dHandle.d.ts +27 -0
  20. package/dist/core/curve2dHandle.d.ts.map +1 -0
  21. package/dist/core/errors.d.ts +7 -0
  22. package/dist/core/errors.d.ts.map +1 -1
  23. package/dist/core.cjs +5 -5
  24. package/dist/core.js +5 -5
  25. package/dist/{cornerFinder-E2w1gRI3.cjs → cornerFinder-BszIcLqj.cjs} +3 -3
  26. package/dist/{cornerFinder-nn_mma6p.js → cornerFinder-aBLykolI.js} +3 -3
  27. package/dist/{curveFns-DHFAK2lD.cjs → curveFns-CZszKLQB.cjs} +2 -2
  28. package/dist/{curveFns-CzcOFFDX.js → curveFns-DY4dFcP-.js} +2 -2
  29. package/dist/{drawFns-DLPEVSbK.cjs → drawFns-BHNDF8hb.cjs} +15 -15
  30. package/dist/{drawFns-4x9wOpZ3.js → drawFns-l5CY2s-l.js} +15 -15
  31. package/dist/{errors-D7ZQfeqv.js → errors-BVOlxlIA.js} +7 -0
  32. package/dist/{errors-BDTFTJ22.cjs → errors-BlC5ZWv4.cjs} +7 -0
  33. package/dist/{extrudeFns-CqKzY5BT.cjs → extrudeFns-GpCB_Uzs.cjs} +3 -3
  34. package/dist/{extrudeFns-CDWViQSe.js → extrudeFns-b0uLn4E4.js} +3 -3
  35. package/dist/{faceFns-DSUZvptN.cjs → faceFns-BywUjlJ7.cjs} +3 -3
  36. package/dist/{faceFns-6mY9O_5h.js → faceFns-Cat-4X74.js} +3 -3
  37. package/dist/{helpers-BWZ7h12W.cjs → helpers-1iCCEElA.cjs} +7 -7
  38. package/dist/{helpers-C9PtrI6D.js → helpers-DgX1UucG.js} +7 -7
  39. package/dist/{historyFns-r1owwcvA.js → historyFns-BFwp8NLX.js} +6 -6
  40. package/dist/{historyFns-DIUNWvA3.cjs → historyFns-DqxDtXIZ.cjs} +6 -6
  41. package/dist/{importFns-xg7LSAv6.js → importFns-Cb8fcldB.js} +4 -4
  42. package/dist/{importFns-CeDf0HmX.cjs → importFns-ChXEJAvu.cjs} +4 -4
  43. package/dist/index.d.ts +5 -0
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/io.cjs +2 -2
  46. package/dist/io.js +2 -2
  47. package/dist/kernel/brepkit/booleanOps.d.ts +7 -1
  48. package/dist/kernel/brepkit/booleanOps.d.ts.map +1 -1
  49. package/dist/kernel/brepkit/brepkitAdapter.d.ts +7 -4
  50. package/dist/kernel/brepkit/brepkitAdapter.d.ts.map +1 -1
  51. package/dist/kernel/brepkit/evolutionOps.d.ts +4 -4
  52. package/dist/kernel/brepkit/evolutionOps.d.ts.map +1 -1
  53. package/dist/kernel/interfaces/booleanOps.d.ts +3 -1
  54. package/dist/kernel/interfaces/booleanOps.d.ts.map +1 -1
  55. package/dist/kernel/interfaces/curveOps.d.ts +3 -1
  56. package/dist/kernel/interfaces/curveOps.d.ts.map +1 -1
  57. package/dist/kernel/interfaces/evolutionOps.d.ts +4 -4
  58. package/dist/kernel/interfaces/evolutionOps.d.ts.map +1 -1
  59. package/dist/kernel/interfaces/surfaceOps.d.ts +3 -1
  60. package/dist/kernel/interfaces/surfaceOps.d.ts.map +1 -1
  61. package/dist/kernel/occt/booleanOps.d.ts +7 -1
  62. package/dist/kernel/occt/booleanOps.d.ts.map +1 -1
  63. package/dist/kernel/occt/defaultAdapter.d.ts +7 -4
  64. package/dist/kernel/occt/defaultAdapter.d.ts.map +1 -1
  65. package/dist/kernel/occt/evolutionOps.d.ts +2 -2
  66. package/dist/kernel/occt/evolutionOps.d.ts.map +1 -1
  67. package/dist/kernel/occt/historyOps.d.ts +4 -4
  68. package/dist/kernel/occt/historyOps.d.ts.map +1 -1
  69. package/dist/kernel/occt/nurbsQueryOps.d.ts +12 -0
  70. package/dist/kernel/occt/nurbsQueryOps.d.ts.map +1 -0
  71. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts +4 -0
  72. package/dist/kernel/occt/wasmTypes/occtBuilders.d.ts.map +1 -1
  73. package/dist/kernel/types.d.ts +56 -0
  74. package/dist/kernel/types.d.ts.map +1 -1
  75. package/dist/{measureFns-Dp2Znpf_.cjs → measureFns-Bx-kl7_g.cjs} +3 -3
  76. package/dist/{measureFns-B7pm7ulJ.js → measureFns-D3rAp1X1.js} +3 -3
  77. package/dist/measurement.cjs +1 -1
  78. package/dist/measurement.js +1 -1
  79. package/dist/{meshFns-1ARDwoZ4.js → meshFns-BPi0bhm9.js} +3 -3
  80. package/dist/{meshFns-DHS9gepE.cjs → meshFns-D3KAZ_ma.cjs} +3 -3
  81. package/dist/operations.cjs +2 -2
  82. package/dist/operations.js +2 -2
  83. package/dist/{planeOps-DA5DmML2.cjs → planeOps-BqLav0Ir.cjs} +3 -3
  84. package/dist/{planeOps-D4THn1al.js → planeOps-D88tfyJs.js} +3 -3
  85. package/dist/{primitiveFns-DtAy6t6n.cjs → primitiveFns-BGh9A9jR.cjs} +67 -7
  86. package/dist/{primitiveFns-CfCgkRwY.js → primitiveFns-CnZkW6Bi.js} +50 -8
  87. package/dist/query.cjs +2 -2
  88. package/dist/query.js +2 -2
  89. package/dist/result.cjs +1 -1
  90. package/dist/result.js +1 -1
  91. package/dist/{shapeTypes-Du2qyM2n.cjs → shapeTypes-8eK48l-X.cjs} +258 -9
  92. package/dist/{shapeTypes-Beo7ikOL.js → shapeTypes-Di6GlhPk.js} +258 -9
  93. package/dist/sketching.cjs +2 -2
  94. package/dist/sketching.js +2 -2
  95. package/dist/{solidBuilders-BePRwqfJ.cjs → solidBuilders-D9KYP9sL.cjs} +3 -3
  96. package/dist/{solidBuilders-8CBjeBfT.js → solidBuilders-ctO_wFrm.js} +3 -3
  97. package/dist/{surfaceBuilders-BC0MvMK1.js → surfaceBuilders-BaqeZa0x.js} +3 -3
  98. package/dist/{surfaceBuilders-BCiMuuGV.cjs → surfaceBuilders-CZzipftq.cjs} +3 -3
  99. package/dist/topology/booleanDiagnosticFns.d.ts +18 -0
  100. package/dist/topology/booleanDiagnosticFns.d.ts.map +1 -0
  101. package/dist/topology/booleanFns.d.ts.map +1 -1
  102. package/dist/topology/nurbsFns.d.ts +13 -0
  103. package/dist/topology/nurbsFns.d.ts.map +1 -0
  104. package/dist/topology.cjs +9 -6
  105. package/dist/topology.d.ts +2 -0
  106. package/dist/topology.d.ts.map +1 -1
  107. package/dist/topology.js +7 -7
  108. package/dist/vectors.cjs +3 -3
  109. package/dist/vectors.js +3 -3
  110. package/package.json +1 -1
  111. /package/dist/{types-Bb4KK_iG.js → types-BWBlwp6w.js} +0 -0
  112. /package/dist/{types-BD-VVaWB.cjs → types-BjDcsS7l.cjs} +0 -0
  113. /package/dist/{vecOps-B9-MTeC8.js → vecOps-DFfUfsmc.js} +0 -0
  114. /package/dist/{vecOps-4iBMiet9.cjs → vecOps-DKGelwGL.cjs} +0 -0
package/dist/brepjs.cjs CHANGED
@@ -1,147 +1,27 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_drawFns = require("./drawFns-DLPEVSbK.cjs");
3
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
4
- const require_errors = require("./errors-BDTFTJ22.cjs");
5
- const require_vecOps = require("./vecOps-4iBMiet9.cjs");
6
- const require_types = require("./types-BD-VVaWB.cjs");
7
- const require_planeOps = require("./planeOps-DA5DmML2.cjs");
8
- const require_faceFns = require("./faceFns-DSUZvptN.cjs");
9
- const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
10
- const require_curveFns = require("./curveFns-DHFAK2lD.cjs");
11
- const require_meshFns = require("./meshFns-DHS9gepE.cjs");
12
- const require_surfaceBuilders = require("./surfaceBuilders-BCiMuuGV.cjs");
13
- const require_booleanFns = require("./booleanFns-o7EsqNGM.cjs");
14
- const require_primitiveFns = require("./primitiveFns-DtAy6t6n.cjs");
15
- const require_historyFns = require("./historyFns-DIUNWvA3.cjs");
16
- const require_boolean2D = require("./boolean2D-CMXMxTgD.cjs");
17
- const require_helpers = require("./helpers-BWZ7h12W.cjs");
18
- const require_solidBuilders = require("./solidBuilders-BePRwqfJ.cjs");
19
- const require_measureFns = require("./measureFns-Dp2Znpf_.cjs");
20
- const require_cornerFinder = require("./cornerFinder-E2w1gRI3.cjs");
21
- const require_extrudeFns = require("./extrudeFns-CqKzY5BT.cjs");
22
- const require_blueprintFns = require("./blueprintFns-iQsyPfTY.cjs");
23
- const require_importFns = require("./importFns-CeDf0HmX.cjs");
2
+ const require_drawFns = require("./drawFns-BHNDF8hb.cjs");
3
+ const require_shapeTypes = require("./shapeTypes-8eK48l-X.cjs");
4
+ const require_errors = require("./errors-BlC5ZWv4.cjs");
5
+ const require_blueprintFns = require("./blueprintFns-D4YucGaQ.cjs");
6
+ const require_vecOps = require("./vecOps-DKGelwGL.cjs");
7
+ const require_types = require("./types-BjDcsS7l.cjs");
8
+ const require_planeOps = require("./planeOps-BqLav0Ir.cjs");
9
+ const require_faceFns = require("./faceFns-BywUjlJ7.cjs");
10
+ const require_arrayAccess = require("./arrayAccess-t2dlxGSK.cjs");
11
+ const require_curveFns = require("./curveFns-CZszKLQB.cjs");
12
+ const require_meshFns = require("./meshFns-D3KAZ_ma.cjs");
13
+ const require_surfaceBuilders = require("./surfaceBuilders-CZzipftq.cjs");
14
+ const require_booleanFns = require("./booleanFns-Bw8sAMgI.cjs");
15
+ const require_primitiveFns = require("./primitiveFns-BGh9A9jR.cjs");
16
+ const require_historyFns = require("./historyFns-DqxDtXIZ.cjs");
17
+ const require_boolean2D = require("./boolean2D-lqfKJKUY.cjs");
18
+ const require_helpers = require("./helpers-1iCCEElA.cjs");
19
+ const require_solidBuilders = require("./solidBuilders-D9KYP9sL.cjs");
20
+ const require_measureFns = require("./measureFns-Bx-kl7_g.cjs");
21
+ const require_cornerFinder = require("./cornerFinder-BszIcLqj.cjs");
22
+ const require_extrudeFns = require("./extrudeFns-GpCB_Uzs.cjs");
23
+ const require_importFns = require("./importFns-ChXEJAvu.cjs");
24
24
  const require_workerHandler = require("./workerHandler-nLkvSOKX.cjs");
25
- //#region src/core/kernelCall.ts
26
- var errorFactories = {
27
- KERNEL_OPERATION: (code, message, cause) => ({
28
- kind: "KERNEL_OPERATION",
29
- code,
30
- message,
31
- cause
32
- }),
33
- VALIDATION: (code, message, cause) => ({
34
- kind: "VALIDATION",
35
- code,
36
- message,
37
- cause
38
- }),
39
- TYPE_CAST: (code, message, cause) => ({
40
- kind: "TYPE_CAST",
41
- code,
42
- message,
43
- cause
44
- }),
45
- SKETCHER_STATE: (code, message, cause) => ({
46
- kind: "SKETCHER_STATE",
47
- code,
48
- message,
49
- cause
50
- }),
51
- MODULE_INIT: (code, message, cause) => ({
52
- kind: "MODULE_INIT",
53
- code,
54
- message,
55
- cause
56
- }),
57
- COMPUTATION: (code, message, cause) => ({
58
- kind: "COMPUTATION",
59
- code,
60
- message,
61
- cause
62
- }),
63
- IO: (code, message, cause) => ({
64
- kind: "IO",
65
- code,
66
- message,
67
- cause
68
- }),
69
- QUERY: (code, message, cause) => ({
70
- kind: "QUERY",
71
- code,
72
- message,
73
- cause
74
- }),
75
- UNSUPPORTED: (code, message, cause) => ({
76
- kind: "UNSUPPORTED",
77
- code,
78
- message,
79
- cause
80
- })
81
- };
82
- /**
83
- * Wrap a kernel call that returns an KernelShape, automatically casting
84
- * the result into a branded AnyShape. On exception, returns an Err
85
- * with the given error code and message.
86
- *
87
- * kernel error messages are automatically translated into user-friendly
88
- * explanations when the error kind is KERNEL_OPERATION.
89
- */
90
- function kernelCall(fn, code, message, kind = "KERNEL_OPERATION") {
91
- try {
92
- return require_errors.ok(require_shapeTypes.castShape(fn()));
93
- } catch (e) {
94
- const rawMessage = e instanceof Error ? e.message : String(e);
95
- const translatedMessage = kind === "KERNEL_OPERATION" ? require_errors.translateKernelError(rawMessage) : rawMessage;
96
- return require_errors.err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e));
97
- }
98
- }
99
- /**
100
- * Wrap a kernel call that returns an arbitrary value. On exception,
101
- * returns an Err with the given error code and message.
102
- *
103
- * kernel error messages are automatically translated into user-friendly
104
- * explanations when the error kind is KERNEL_OPERATION.
105
- */
106
- function kernelCallRaw(fn, code, message, kind = "KERNEL_OPERATION") {
107
- try {
108
- return require_errors.ok(fn());
109
- } catch (e) {
110
- const rawMessage = e instanceof Error ? e.message : String(e);
111
- const translatedMessage = kind === "KERNEL_OPERATION" ? require_errors.translateKernelError(rawMessage) : rawMessage;
112
- return require_errors.err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e));
113
- }
114
- }
115
- /**
116
- * Wrap a kernel call that needs intermediate kernel allocations.
117
- *
118
- * A DisposalScope is created and passed to fn. The scope is disposed
119
- * deterministically after fn returns or throws — ensuring no intermediate
120
- * handles are leaked even on error paths.
121
- *
122
- * ```ts
123
- * return kernelCallScoped(
124
- * (scope) => {
125
- * const axis = scope.register(makeKernelAx1(origin, dir));
126
- * return getKernel().revolveVec(...) // was: oc.BRepBuilderAPI_MakeRevol_1(shape.wrapped, axis).Shape();
127
- * },
128
- * BrepErrorCode.REVOLUTION_NOT_3D,
129
- * 'Revolution failed'
130
- * );
131
- * ```
132
- */
133
- function kernelCallScoped(fn, code, message, kind = "KERNEL_OPERATION") {
134
- try {
135
- var _usingCtx$1 = require_shapeTypes._usingCtx();
136
- const scope = _usingCtx$1.u(new require_shapeTypes.DisposalScope());
137
- return kernelCall(() => fn(scope), code, message, kind);
138
- } catch (_) {
139
- _usingCtx$1.e = _;
140
- } finally {
141
- _usingCtx$1.d();
142
- }
143
- }
144
- //#endregion
145
25
  //#region src/topology/shapeBooleans.ts
146
26
  var BOPAlgo_GlueShift = 1;
147
27
  var BOPAlgo_GlueFull = 2;
@@ -2770,6 +2650,7 @@ exports.chamfer = chamfer;
2770
2650
  exports.chamferDistAngleShape = require_primitiveFns.chamferDistAngle;
2771
2651
  exports.chamferWithEvolution = require_primitiveFns.chamferWithEvolution;
2772
2652
  exports.checkAllInterferences = checkAllInterferences;
2653
+ exports.checkBoolean = require_primitiveFns.checkBoolean;
2773
2654
  exports.checkInterference = checkInterference;
2774
2655
  exports.circle = require_primitiveFns.circle;
2775
2656
  exports.circularPattern = require_historyFns.circularPattern;
@@ -2928,6 +2809,8 @@ exports.getFont = require_drawFns.getFont;
2928
2809
  exports.getHashCode = require_arrayAccess.getHashCode;
2929
2810
  exports.getHistoryShape = require_historyFns.getShape;
2930
2811
  exports.getKernel = require_shapeTypes.getKernel;
2812
+ exports.getNurbsCurveData = require_primitiveFns.getNurbsCurveData;
2813
+ exports.getNurbsSurfaceData = require_primitiveFns.getNurbsSurfaceData;
2931
2814
  exports.getOrientation = require_curveFns.getOrientation;
2932
2815
  exports.getOrientation2D = require_blueprintFns.getOrientation2D;
2933
2816
  exports.getShapeColor = require_arrayAccess.getShapeColor;
@@ -3004,9 +2887,9 @@ exports.iterFaces = require_arrayAccess.iterFaces;
3004
2887
  exports.iterTopo = require_faceFns.iterTopo;
3005
2888
  exports.iterVertices = require_arrayAccess.iterVertices;
3006
2889
  exports.iterWires = require_arrayAccess.iterWires;
3007
- exports.kernelCall = kernelCall;
3008
- exports.kernelCallRaw = kernelCallRaw;
3009
- exports.kernelCallScoped = kernelCallScoped;
2890
+ exports.kernelCall = require_blueprintFns.kernelCall;
2891
+ exports.kernelCallRaw = require_blueprintFns.kernelCallRaw;
2892
+ exports.kernelCallScoped = require_blueprintFns.kernelCallScoped;
3010
2893
  exports.kernelError = require_errors.kernelError;
3011
2894
  exports.line = require_primitiveFns.line;
3012
2895
  exports.linearPattern = require_historyFns.linearPattern;
package/dist/brepjs.js CHANGED
@@ -1,146 +1,26 @@
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, J as _usingCtx, 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, 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 supportsProjection, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as BrepkitAdapter, o as createFace, p as isFace, q as withScopeResultAsync, rt as supportsConstraintSketch, 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-Beo7ikOL.js";
2
- import { A as or, B as unwrapOrElse, C as isErr, D as mapErr, E as mapBoth, F as tryCatch, I as tryCatchAsync, L as unwrap, M as pipeline, N as tap, O as match, P as tapErr, R as unwrapErr, S as fromNullable, T as map, V as zip, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, f as translateKernelError, g as all, h as OK, i as kernelError, j as orElse, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as collect, w as isOk, x as flatten, y as err, z as unwrapOr } from "./errors-D7ZQfeqv.js";
3
- import { _ as DEG2RAD, 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, v as HASH_CODE_MAX, y as RAD2DEG } from "./vecOps-B9-MTeC8.js";
4
- import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-Bb4KK_iG.js";
5
- import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-D4THn1al.js";
6
- 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-6mY9O_5h.js";
7
- import { A as tagFaces, B as invalidateShapeCache, C as colorShape, D as getFaceTags, E as findFacesByTag, F as getEdges, G as vertexPosition, H as iterFaces, I as getFaces, M as setShapeOrigin, N as describe$1, O as getTagMetadata, P as getBounds, R as getVertices, S as colorFaces, T as getShapeColor, U as iterVertices, V as iterEdges, W as iterWires, _ as transformCopy$1, a as getHashCode, c as isSameShape, d as applyMatrix$1, f as composeTransforms, g as scale$1, h as rotate$1, i as clone$1, j as getFaceOrigins, k as setTagMetadata, l as simplify$1, m as resize, n as getAtOrThrow, o as isEmpty$2, p as mirror$1, s as isEqualShape, t as firstOrThrow, u as toBREP$1, v as translate$1, w as getFaceColor, z as getWires } from "./arrayAccess-Bz2OkAF_.js";
8
- 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-CzcOFFDX.js";
9
- 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-1ARDwoZ4.js";
10
- import { n as fill, r as makeFace } from "./surfaceBuilders-BC0MvMK1.js";
11
- 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-omB4YLGU.js";
12
- import { $ as facesOfEdge, 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 edgesOfFace, 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 adjacentFaces, _ as polygon, a as circle, at as toGroupedBufferGeometryData, b as sphere, c as cylinder, d as ellipsoid, et as sharedEdges, f as face, g as offsetFace, h as line, i as bsplineApprox, it as toBufferGeometryData, j as heal$1, k as fixSelfIntersection, l as ellipse, m as helix, n as bezier, nt as wiresOfFace, o as compound, ot as toLineGeometryData, p as filledFace, q as filletWithEvolution, r as box, rt as chamferDistAngle, s as cone, t as addHoles, tt as verticesOfEdge, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid, z as fillet$1 } from "./primitiveFns-CfCgkRwY.js";
13
- 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-r1owwcvA.js";
14
- import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-D_yuF0kT.js";
15
- import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-C9PtrI6D.js";
16
- 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-4x9wOpZ3.js";
17
- import { r as makeCylinder } from "./solidBuilders-8CBjeBfT.js";
18
- 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-B7pm7ulJ.js";
19
- import { t as cornerFinder } from "./cornerFinder-nn_mma6p.js";
20
- import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as revolve$1, o as supportExtrude, r as complexExtrude, s as sweep, t as extrude$1 } from "./extrudeFns-CDWViQSe.js";
21
- 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-D0RopDZS.js";
22
- 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-xg7LSAv6.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, 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 supportsProjection, j as validSolid, k as planarFace, l as createVertex, m as isShape1D, n as castShape3D, nt as BrepkitAdapter, o as createFace, p as isFace, q as withScopeResultAsync, rt as supportsConstraintSketch, 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-Di6GlhPk.js";
2
+ import { A as or, B as unwrapOrElse, C as isErr, D as mapErr, E as mapBoth, F as tryCatch, I as tryCatchAsync, L as unwrap, M as pipeline, N as tap, O as match, P as tapErr, R as unwrapErr, S as fromNullable, T as map, V as zip, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, g as all, h as OK, i as kernelError, j as orElse, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, t as BrepErrorCode, u as unsupportedError, v as collect, w as isOk, x as flatten, y as err, z as unwrapOr } from "./errors-BVOlxlIA.js";
3
+ import { C as kernelCall, S as reverseCurve, T as kernelCallScoped, _ 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, w as kernelCallRaw, x as curve2dTangentAt, y as curve2dParameter } from "./blueprintFns-DVDommWB.js";
4
+ import { _ as DEG2RAD, 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, v as HASH_CODE_MAX, y as RAD2DEG } from "./vecOps-DFfUfsmc.js";
5
+ import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
6
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, r as makePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-D88tfyJs.js";
7
+ 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-Cat-4X74.js";
8
+ import { A as tagFaces, B as invalidateShapeCache, C as colorShape, D as getFaceTags, E as findFacesByTag, F as getEdges, G as vertexPosition, H as iterFaces, I as getFaces, M as setShapeOrigin, N as describe$1, O as getTagMetadata, P as getBounds, R as getVertices, S as colorFaces, T as getShapeColor, U as iterVertices, V as iterEdges, W as iterWires, _ as transformCopy$1, a as getHashCode, c as isSameShape, d as applyMatrix$1, f as composeTransforms, g as scale$1, h as rotate$1, i as clone$1, j as getFaceOrigins, k as setTagMetadata, l as simplify$1, m as resize, n as getAtOrThrow, o as isEmpty$2, p as mirror$1, s as isEqualShape, t as firstOrThrow, u as toBREP$1, v as translate$1, w as getFaceColor, z as getWires } from "./arrayAccess-B5LgmXBo.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-DY4dFcP-.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-BPi0bhm9.js";
11
+ import { n as fill, r as makeFace } from "./surfaceBuilders-BaqeZa0x.js";
12
+ 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-B46fgObh.js";
13
+ 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-CnZkW6Bi.js";
14
+ 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-BFwp8NLX.js";
15
+ import { a as fuseBlueprints, c as roundedRectangleBlueprint, f as Sketch, i as cutBlueprints, m as organiseBlueprints, n as fuse2D, o as intersectBlueprints, p as loft$1, r as intersect2D, s as polysidesBlueprint, t as cut2D } from "./boolean2D-Mzp-0g7o.js";
16
+ import { a as createTypedFinder, i as wireFinder, n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-DgX1UucG.js";
17
+ 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-l5CY2s-l.js";
18
+ import { r as makeCylinder } from "./solidBuilders-ctO_wFrm.js";
19
+ 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-D3rAp1X1.js";
20
+ import { t as cornerFinder } from "./cornerFinder-aBLykolI.js";
21
+ import { a as multiSectionSweep, c as twistExtrude, i as guidedSweep, n as revolve$1, o as supportExtrude, r as complexExtrude, s as sweep, t as extrude$1 } from "./extrudeFns-b0uLn4E4.js";
22
+ 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-Cb8fcldB.js";
23
23
  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-BrOTzYRI.js";
24
- //#region src/core/kernelCall.ts
25
- var errorFactories = {
26
- KERNEL_OPERATION: (code, message, cause) => ({
27
- kind: "KERNEL_OPERATION",
28
- code,
29
- message,
30
- cause
31
- }),
32
- VALIDATION: (code, message, cause) => ({
33
- kind: "VALIDATION",
34
- code,
35
- message,
36
- cause
37
- }),
38
- TYPE_CAST: (code, message, cause) => ({
39
- kind: "TYPE_CAST",
40
- code,
41
- message,
42
- cause
43
- }),
44
- SKETCHER_STATE: (code, message, cause) => ({
45
- kind: "SKETCHER_STATE",
46
- code,
47
- message,
48
- cause
49
- }),
50
- MODULE_INIT: (code, message, cause) => ({
51
- kind: "MODULE_INIT",
52
- code,
53
- message,
54
- cause
55
- }),
56
- COMPUTATION: (code, message, cause) => ({
57
- kind: "COMPUTATION",
58
- code,
59
- message,
60
- cause
61
- }),
62
- IO: (code, message, cause) => ({
63
- kind: "IO",
64
- code,
65
- message,
66
- cause
67
- }),
68
- QUERY: (code, message, cause) => ({
69
- kind: "QUERY",
70
- code,
71
- message,
72
- cause
73
- }),
74
- UNSUPPORTED: (code, message, cause) => ({
75
- kind: "UNSUPPORTED",
76
- code,
77
- message,
78
- cause
79
- })
80
- };
81
- /**
82
- * Wrap a kernel call that returns an KernelShape, automatically casting
83
- * the result into a branded AnyShape. On exception, returns an Err
84
- * with the given error code and message.
85
- *
86
- * kernel error messages are automatically translated into user-friendly
87
- * explanations when the error kind is KERNEL_OPERATION.
88
- */
89
- function kernelCall(fn, code, message, kind = "KERNEL_OPERATION") {
90
- try {
91
- return ok(castShape(fn()));
92
- } catch (e) {
93
- const rawMessage = e instanceof Error ? e.message : String(e);
94
- const translatedMessage = kind === "KERNEL_OPERATION" ? translateKernelError(rawMessage) : rawMessage;
95
- return err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e));
96
- }
97
- }
98
- /**
99
- * Wrap a kernel call that returns an arbitrary value. On exception,
100
- * returns an Err with the given error code and message.
101
- *
102
- * kernel error messages are automatically translated into user-friendly
103
- * explanations when the error kind is KERNEL_OPERATION.
104
- */
105
- function kernelCallRaw(fn, code, message, kind = "KERNEL_OPERATION") {
106
- try {
107
- return ok(fn());
108
- } catch (e) {
109
- const rawMessage = e instanceof Error ? e.message : String(e);
110
- const translatedMessage = kind === "KERNEL_OPERATION" ? translateKernelError(rawMessage) : rawMessage;
111
- return err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e));
112
- }
113
- }
114
- /**
115
- * Wrap a kernel call that needs intermediate kernel allocations.
116
- *
117
- * A DisposalScope is created and passed to fn. The scope is disposed
118
- * deterministically after fn returns or throws — ensuring no intermediate
119
- * handles are leaked even on error paths.
120
- *
121
- * ```ts
122
- * return kernelCallScoped(
123
- * (scope) => {
124
- * const axis = scope.register(makeKernelAx1(origin, dir));
125
- * return getKernel().revolveVec(...) // was: oc.BRepBuilderAPI_MakeRevol_1(shape.wrapped, axis).Shape();
126
- * },
127
- * BrepErrorCode.REVOLUTION_NOT_3D,
128
- * 'Revolution failed'
129
- * );
130
- * ```
131
- */
132
- function kernelCallScoped(fn, code, message, kind = "KERNEL_OPERATION") {
133
- try {
134
- var _usingCtx$1 = _usingCtx();
135
- const scope = _usingCtx$1.u(new DisposalScope());
136
- return kernelCall(() => fn(scope), code, message, kind);
137
- } catch (_) {
138
- _usingCtx$1.e = _;
139
- } finally {
140
- _usingCtx$1.d();
141
- }
142
- }
143
- //#endregion
144
24
  //#region src/topology/shapeBooleans.ts
145
25
  var BOPAlgo_GlueShift = 1;
146
26
  var BOPAlgo_GlueFull = 2;
@@ -2720,4 +2600,4 @@ function shape(s) {
2720
2600
  throw new Error("shape() requires a Sketch or branded shape type");
2721
2601
  }
2722
2602
  //#endregion
2723
- export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, autoHeal, bezier, blueprintToDXF, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutBlueprints, cutWithEvolution, cylinder, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseBlueprints, fuseWithEvolution, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getOrientation, getOrientation2D, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, mesh, meshEdges, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, pendingCount, pipeline, pivotPlane, planarFace, planarWire, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, projectEdges, projectPointOnFace, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, uvBounds, uvCoordinates, validSolid, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
2603
+ export { BrepBugError, BrepErrorCode, BrepWrapperError, BrepkitAdapter, CompoundSketch, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, Sketch, Sketches, addChild, addHoles, addMate, addStep, adjacentFaces, all, andThen, applyGlue, applyMatrix, approximateCurve, as2D, as3D, asTopo, autoHeal, bezier, blueprintToDXF, boss, box, bsplineApprox, bug, cameraFromPlane, cameraLookAt, cast, castShape, castShape3D, chamfer, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkAllInterferences, checkBoolean, checkInterference, circle, circularPattern, classifyPointOnFace, clearMeshCache, clone, closedWire, collect, collectShapes, colorFaces, colorShape, complexExtrude, composeTransforms, compound, compoundSketchExtrude, compoundSketchFace, compoundSketchLoft, compoundSketchRevolve, computationError, computeStraightSkeleton, cone, convexHull, cornerFinder, countNodes, createAssembly, createAssemblyNode, createBlueprint, createCamera, createCompound, createCompoundBlueprint, createDistanceQuery, createEdge, createFace, createHandle, createHistory, createKernelHandle, createMeshCache, createNamedPlane, createOperationRegistry, createPlane, createRegistry, createShell, createSolid, createTaskQueue, createVertex, createWire, createWorkerClient, createWorkerHandler, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cut, cut2D, cutAll, cutBlueprints, cutWithEvolution, cylinder, dequeueTask, describe, deserializeDrawing, deserializeHistory, fromBREP as deserializeShape, downcast, draft, draw, drawCircle, drawEllipse, drawFaceOutline, drawParametricFunction, drawPointsInterpolation, drawPolysides, drawProjection, drawRectangle, drawRoundedRectangle, drawSingleCircle, drawSingleEllipse, drawText, drawingChamfer, drawingCut, drawingFillet, drawingFuse, drawingIntersect, drawingToSketchOnPlane, drill, edgeFinder, edgesOfFace, ellipse, ellipseArc, ellipsoid, enqueueTask, err, exportAssemblySTEP, exportDXF, exportGlb, exportGltf, exportIGES, exportOBJ, exportSTEP, exportSTEPConfigured, exportSTL, exportThreeMF, extrude, face, faceCenter, faceFinder, faceGeomType, faceOrientation, facesOfEdge, fill, filledFace, fillet, filletWithEvolution, findFacesByTag, findNode, findStep, fixSelfIntersection, fixShape, flatMap, flatten, flipFaceOrientation, flipOrientation, fontMetrics, fromBREP$1 as fromBREP, fromKernelDir, fromKernelPnt, fromKernelVec, fromNullable, fuse, fuse2D, fuseAll, fuseBlueprints, fuseWithEvolution, getBounds, getBounds2D, getCurveType, getDisposalStats, getEdges, getFaceColor, getFaceOrigins, getFaceTags, getFaces, getFont, getHashCode, getShape as getHistoryShape, getKernel, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getOrientation2D, getShapeColor, getShapeKind, getSingleFace, getSurfaceType, getTagMetadata, getVertices, getWires, guidedSweep, heal, healFace, healSolid, healWire, helix, hull, importDXF, importGLB, importIGES, importOBJ, importSTEP, importSTL, importSVG, importSVGPathD, importThreeMF, init, initFromOC, innerWires, interpolateCurve, intersect, intersect2D, intersectBlueprints, intersectWithEvolution, invalidateShapeCache, ioError, is2D, is3D, isChamferRadius, isClosedWire, isCompSolid, isCompound, isDisposeRequest, isEdge, isEmpty, isEqualShape, isErr, isErrorResponse, isFace, isFilletRadius, isInitRequest, isInside2D, isLive, isManifoldShell, isNumber, isOk, isOperationRequest, isOrientedFace, isPlanarFace, isPlanarWire, isProjectionPlane, isEmpty$1 as isQueueEmpty, isSameShape, isShape1D, isShape3D, isShell, isSolid, isSuccessResponse, isValid, isValidSolid, isVertex, isWire, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, kernelCall, kernelCallRaw, kernelCallScoped, kernelError, line, linearPattern, loadFont, loft, makeBaseBox, makePlane, makeProjectedEdges, manifoldShell, map, mapBoth, mapErr, match, measureArea, measureCurvatureAt, measureCurvatureAtMid, measureDistance, measureDistanceProps, measureLength, measureLinearProps, measureSurfaceProps, measureVolume, measureVolumeProps, mesh, meshEdges, minkowski, mirror, mirror2D, mirrorDrawing, mirrorJoin, modifyStep, moduleInitError, multiSectionSweep, normalAt, offset, offsetFace, offsetWire2D, ok, or, orElse, organiseBlueprints, orientedFace, outerWire, pendingCount, pipeline, pivotPlane, planarFace, planarWire, pocket, pointOnSurface, polygon, polyhedron, polysideInnerRadius, polysidesBlueprint, positionOnCurve, prewarm, projectEdges, projectPointOnFace, queryError, rectangularPattern, registerHandler, registerKernel, registerOperation, registerShape, rejectAll, removeChild, removeHolesFromFace, replayFrom, replayHistory, resetDisposalStats, resize, resolve, resolve3D, resolveDirection, resolvePlane, reverseCurve, revolve, roof, rotate, rotate2D, rotateDrawing, roundedRectangleBlueprint, scale, scale2D, scaleDrawing, section, sectionToFace, serializeHistory, setShapeOrigin, setTagMetadata, sewShells, shape, shapeType, sharedEdges, shell, shellWithEvolution, simplify, sketchCircle, sketchEllipse, sketchExtrude, sketchFace, sketchFaceOffset, sketchHelix, sketchLoft, sketchOnFace2D, sketchOnPlane2D, sketchParametricFunction, sketchPolysides, sketchRectangle, sketchRevolve, sketchRoundedRectangle, sketchSweep, sketchText, sketchWires, sketcherStateError, slice, solid, solidFromShell, solveAssembly, sphere, split, stepCount, stepsFrom, stretch2D, subFace, supportExtrude, supportsConstraintSketch, supportsProjection, surfaceFromGrid, surfaceFromImage, sweep, tagFaces, tangentArc, tap, tapErr, textBlueprints, textMetrics, thicken, threePointArc, toBREP, toBufferGeometryData, toGroupedBufferGeometryData, toKernelVec, toLineGeometryData, toSVGPathD, toVec2, toVec3, torus, transformCopy, translate, translate2D, translateDrawing, translatePlane, tryCatch, tryCatchAsync, twistExtrude, typeCastError, undoLast, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, updateNode, uvBounds, uvCoordinates, validSolid, validationError, variableFillet, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, vertex, vertexFinder, vertexPosition, verticesOfEdge, walkAssembly, wire, wireFinder, wireLoop, wiresOfFace, withKernel, withKernelDir, withKernelPnt, withKernelVec, withScope, withScopeResult, withScopeResultAsync, zip as zipResults };
@@ -0,0 +1,27 @@
1
+ import { KernelType } from '../kernel/types.js';
2
+ declare const __curve2d: unique symbol;
3
+ /**
4
+ * A disposable handle to a 2D curve (Geom2d_Curve or similar).
5
+ *
6
+ * Created by 2D curve constructors (`line2d`, `circle2d`, etc.) and disposed
7
+ * via `Symbol.dispose` / the `using` keyword.
8
+ *
9
+ * The `.raw` property accesses the underlying kernel handle for passing to
10
+ * kernel methods. Throws if the handle has been disposed.
11
+ */
12
+ export interface Curve2DHandle extends Disposable {
13
+ readonly [__curve2d]: true;
14
+ /** The underlying kernel handle. Throws if disposed. */
15
+ readonly raw: KernelType;
16
+ /** Whether this handle has been disposed. */
17
+ readonly disposed: boolean;
18
+ }
19
+ /**
20
+ * Wrap a raw kernel 2D curve handle with brand + disposal tracking.
21
+ *
22
+ * Uses {@link createKernelHandle} internally for stats tracking,
23
+ * `FinalizationRegistry` safety net, and double-dispose guards.
24
+ */
25
+ export declare function createCurve2DHandle(rawHandle: KernelType): Curve2DHandle;
26
+ export {};
27
+ //# sourceMappingURL=curve2dHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curve2dHandle.d.ts","sourceRoot":"","sources":["../../src/core/curve2dHandle.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAQpD,OAAO,CAAC,MAAM,SAAS,EAAE,OAAO,MAAM,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,WAAW,aAAc,SAAQ,UAAU;IAC/C,QAAQ,CAAC,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;IACzB,6CAA6C;IAC7C,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAMD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,UAAU,GAAG,aAAa,CAiCxE"}
@@ -15,6 +15,7 @@ export declare const BrepErrorCode: {
15
15
  readonly FUSE_FAILED: "FUSE_FAILED";
16
16
  readonly CUT_FAILED: "CUT_FAILED";
17
17
  readonly HEAL_NO_EFFECT: "HEAL_NO_EFFECT";
18
+ readonly BOOLEAN_HAS_ERRORS: "BOOLEAN_HAS_ERRORS";
18
19
  readonly VARIABLE_FILLET_FAILED: "VARIABLE_FILLET_FAILED";
19
20
  readonly POSITION_ON_CURVE_FAILED: "POSITION_ON_CURVE_FAILED";
20
21
  readonly FIX_SHAPE_FAILED: "FIX_SHAPE_FAILED";
@@ -115,6 +116,12 @@ export declare const BrepErrorCode: {
115
116
  readonly FONT_FETCH_FAILED: "FONT_FETCH_FAILED";
116
117
  readonly FONT_PARSE_FAILED: "FONT_PARSE_FAILED";
117
118
  readonly NO_FONT_LOADED: "NO_FONT_LOADED";
119
+ readonly CURVE2D_CONSTRUCTION_FAILED: "CURVE2D_CONSTRUCTION_FAILED";
120
+ readonly CURVE2D_INVALID_RADIUS: "CURVE2D_INVALID_RADIUS";
121
+ readonly CURVE2D_TRANSFORM_FAILED: "CURVE2D_TRANSFORM_FAILED";
122
+ readonly CURVE2D_QUERY_FAILED: "CURVE2D_QUERY_FAILED";
123
+ readonly CURVE2D_INTERSECTION_FAILED: "CURVE2D_INTERSECTION_FAILED";
124
+ readonly CURVE2D_BRIDGE_FAILED: "CURVE2D_BRIDGE_FAILED";
118
125
  readonly UNSUPPORTED_CAPABILITY: "UNSUPPORTED_CAPABILITY";
119
126
  };
120
127
  /** Union of all known error code string literals. */
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM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M,6BAA6B,CAAC;AAMnE;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,CAMlF"}
package/dist/core.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
3
- const require_errors = require("./errors-BDTFTJ22.cjs");
4
- const require_vecOps = require("./vecOps-4iBMiet9.cjs");
5
- const require_types = require("./types-BD-VVaWB.cjs");
6
- const require_planeOps = require("./planeOps-DA5DmML2.cjs");
2
+ const require_shapeTypes = require("./shapeTypes-8eK48l-X.cjs");
3
+ const require_errors = require("./errors-BlC5ZWv4.cjs");
4
+ const require_vecOps = require("./vecOps-DKGelwGL.cjs");
5
+ const require_types = require("./types-BjDcsS7l.cjs");
6
+ const require_planeOps = require("./planeOps-BqLav0Ir.cjs");
7
7
  exports.BrepBugError = require_errors.BrepBugError;
8
8
  exports.DEG2RAD = require_vecOps.DEG2RAD;
9
9
  exports.DisposalScope = require_shapeTypes.DisposalScope;
package/dist/core.js CHANGED
@@ -1,6 +1,6 @@
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-Beo7ikOL.js";
2
- import { B as unwrapOrElse, C as isErr, D as mapErr, F as tryCatch, I as tryCatchAsync, L as unwrap, O as match, R as unwrapErr, T as map, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, h as OK, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, u as unsupportedError, v as collect, w as isOk, y as err, z as unwrapOr } from "./errors-D7ZQfeqv.js";
3
- import { _ as DEG2RAD, 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, v as HASH_CODE_MAX, y as RAD2DEG } from "./vecOps-B9-MTeC8.js";
4
- import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-Bb4KK_iG.js";
5
- import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-D4THn1al.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-Di6GlhPk.js";
2
+ import { B as unwrapOrElse, C as isErr, D as mapErr, F as tryCatch, I as tryCatchAsync, L as unwrap, O as match, R as unwrapErr, T as map, _ as andThen, a as moduleInitError, b as flatMap, c as sketcherStateError, d as validationError, h as OK, i as kernelError, k as ok, l as typeCastError, m as bug, n as computationError, o as queryError, p as BrepBugError, r as ioError, u as unsupportedError, v as collect, w as isOk, y as err, z as unwrapOr } from "./errors-BVOlxlIA.js";
3
+ import { _ as DEG2RAD, 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, v as HASH_CODE_MAX, y as RAD2DEG } from "./vecOps-DFfUfsmc.js";
4
+ import { n as toVec2, r as toVec3, t as resolveDirection } from "./types-BWBlwp6w.js";
5
+ import { i as pivotPlane, n as createPlane, o as resolvePlane, s as translatePlane, t as createNamedPlane } from "./planeOps-D88tfyJs.js";
6
6
  export { BrepBugError, DEG2RAD, DisposalScope, HASH_CODE_MAX, OK, RAD2DEG, andThen, bug, castShape, closedWire, collect, computationError, createHandle, createKernelHandle, createNamedPlane, createPlane, err, flatMap, getShapeKind, ioError, is2D, is3D, isClosedWire, isCompound, isEdge, isErr, isFace, isLive, isManifoldShell, isOk, isOrientedFace, isShape1D, isShape3D, isShell, isSolid, isValidSolid, isVertex, isWire, kernelError, manifoldShell, map, mapErr, match, moduleInitError, ok, orientedFace, pivotPlane, queryError, resolveDirection, resolvePlane, sketcherStateError, toVec2, toVec3, translatePlane, tryCatch, tryCatchAsync, typeCastError, unsupportedError, unwrap, unwrapErr, unwrapOr, unwrapOrElse, validSolid, validationError, vecAdd, vecAngle, vecCross, vecDistance, vecDot, vecEquals, vecIsZero, vecLength, vecLengthSq, vecNegate, vecNormalize, vecProjectToPlane, vecRepr, vecRotate, vecScale, vecSub, withScope, withScopeResult, withScopeResultAsync };
@@ -1,6 +1,6 @@
1
- const require_vecOps = require("./vecOps-4iBMiet9.cjs");
2
- const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
3
- const require_helpers = require("./helpers-BWZ7h12W.cjs");
1
+ const require_vecOps = require("./vecOps-DKGelwGL.cjs");
2
+ const require_arrayAccess = require("./arrayAccess-t2dlxGSK.cjs");
3
+ const require_helpers = require("./helpers-1iCCEElA.cjs");
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,6 +1,6 @@
1
- import { _ as DEG2RAD } from "./vecOps-B9-MTeC8.js";
2
- import { n as getAtOrThrow } from "./arrayAccess-Bz2OkAF_.js";
3
- import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-C9PtrI6D.js";
1
+ import { _ as DEG2RAD } from "./vecOps-DFfUfsmc.js";
2
+ import { n as getAtOrThrow } from "./arrayAccess-B5LgmXBo.js";
3
+ import { _ as samePoint, p as distance2d, u as angle2d } from "./helpers-DgX1UucG.js";
4
4
  //#region src/query/cornerFinder.ts
5
5
  var PI_2 = 2 * Math.PI;
6
6
  function positiveHalfAngle(angle) {
@@ -1,5 +1,5 @@
1
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
2
- const require_errors = require("./errors-BDTFTJ22.cjs");
1
+ const require_shapeTypes = require("./shapeTypes-8eK48l-X.cjs");
2
+ const require_errors = require("./errors-BlC5ZWv4.cjs");
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
@@ -1,5 +1,5 @@
1
- import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-Beo7ikOL.js";
2
- import { k as ok, l as typeCastError, y as err } from "./errors-D7ZQfeqv.js";
1
+ import { Y as getKernel, f as isEdge, t as castShape, y as isWire } from "./shapeTypes-Di6GlhPk.js";
2
+ import { k as ok, l as typeCastError, y as err } from "./errors-BVOlxlIA.js";
3
3
  //#region src/topology/curveFns.ts
4
4
  /**
5
5
  * Curve and 1D shape functions — functional replacements for _1DShape/Curve methods.
@@ -20,21 +20,21 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
20
20
  enumerable: true
21
21
  }) : target, mod));
22
22
  //#endregion
23
- const require_shapeTypes = require("./shapeTypes-Du2qyM2n.cjs");
24
- const require_errors = require("./errors-BDTFTJ22.cjs");
25
- const require_vecOps = require("./vecOps-4iBMiet9.cjs");
26
- const require_types = require("./types-BD-VVaWB.cjs");
27
- const require_planeOps = require("./planeOps-DA5DmML2.cjs");
28
- const require_faceFns = require("./faceFns-DSUZvptN.cjs");
29
- const require_arrayAccess = require("./arrayAccess-FwdVX3Nh.cjs");
30
- const require_curveFns = require("./curveFns-DHFAK2lD.cjs");
31
- const require_surfaceBuilders = require("./surfaceBuilders-BCiMuuGV.cjs");
32
- const require_boolean2D = require("./boolean2D-CMXMxTgD.cjs");
33
- const require_helpers = require("./helpers-BWZ7h12W.cjs");
34
- const require_blueprint = require("./blueprint-YPV8lQqg.cjs");
35
- const require_solidBuilders = require("./solidBuilders-BePRwqfJ.cjs");
36
- const require_cornerFinder = require("./cornerFinder-E2w1gRI3.cjs");
37
- const require_extrudeFns = require("./extrudeFns-CqKzY5BT.cjs");
23
+ const require_shapeTypes = require("./shapeTypes-8eK48l-X.cjs");
24
+ const require_errors = require("./errors-BlC5ZWv4.cjs");
25
+ const require_vecOps = require("./vecOps-DKGelwGL.cjs");
26
+ const require_types = require("./types-BjDcsS7l.cjs");
27
+ const require_planeOps = require("./planeOps-BqLav0Ir.cjs");
28
+ const require_faceFns = require("./faceFns-BywUjlJ7.cjs");
29
+ const require_arrayAccess = require("./arrayAccess-t2dlxGSK.cjs");
30
+ const require_curveFns = require("./curveFns-CZszKLQB.cjs");
31
+ const require_surfaceBuilders = require("./surfaceBuilders-CZzipftq.cjs");
32
+ const require_boolean2D = require("./boolean2D-lqfKJKUY.cjs");
33
+ const require_helpers = require("./helpers-1iCCEElA.cjs");
34
+ const require_blueprint = require("./blueprint-CDnBM-tA.cjs");
35
+ const require_solidBuilders = require("./solidBuilders-D9KYP9sL.cjs");
36
+ const require_cornerFinder = require("./cornerFinder-BszIcLqj.cjs");
37
+ const require_extrudeFns = require("./extrudeFns-GpCB_Uzs.cjs");
38
38
  let opentype_js = require("opentype.js");
39
39
  opentype_js = __toESM(opentype_js);
40
40
  //#region src/2d/lib/stitching.ts