brepjs 7.4.1 → 7.5.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 (78) hide show
  1. package/README.md +179 -17
  2. package/dist/2d.cjs +2 -2
  3. package/dist/2d.js +4 -4
  4. package/dist/{Blueprint-3Dyu0OL6.cjs → Blueprint-CVctc41Z.cjs} +4 -4
  5. package/dist/{Blueprint-DSHD89bZ.js → Blueprint-D3JfGJTz.js} +4 -4
  6. package/dist/{boolean2D-CtyE2hK5.js → boolean2D-Ba8TcVzC.js} +6 -6
  7. package/dist/{boolean2D-BwOpOv6L.cjs → boolean2D-BnuJdfDv.cjs} +6 -6
  8. package/dist/{booleanFns-5KSbtLBU.cjs → booleanFns-BBSVKhL2.cjs} +27 -31
  9. package/dist/{booleanFns-DcxqLQSG.js → booleanFns-CqehfzcK.js} +27 -31
  10. package/dist/brepjs.cjs +87 -79
  11. package/dist/brepjs.js +120 -112
  12. package/dist/{cast-D1s7Im9E.js → cast-DQaUibmm.js} +3 -3
  13. package/dist/{cast-DsxJk_F0.cjs → cast-DkB0GKmQ.cjs} +2 -2
  14. package/dist/{drawFns-CSbH7uoI.js → drawFns-D9qkvHgY.js} +8 -8
  15. package/dist/{drawFns-C6KQjmQj.cjs → drawFns-DWOskIp7.cjs} +8 -8
  16. package/dist/{faceFns-B9if-FPW.cjs → faceFns-BwK7FP7N.cjs} +1 -1
  17. package/dist/{faceFns-Bl6HHbqO.js → faceFns-DHu-2JpA.js} +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/io.cjs +2 -2
  21. package/dist/io.js +2 -2
  22. package/dist/{loft-Cc5E5pAf.cjs → loft-BzWFokmC.cjs} +2 -2
  23. package/dist/{loft-BlNndTOR.js → loft-CtG5nMq5.js} +2 -2
  24. package/dist/{measurement-D75pyJi1.js → measurement-C5JGCuUP.js} +1 -1
  25. package/dist/{measurement-BVdZ9cG3.cjs → measurement-fxm_pW7x.cjs} +1 -1
  26. package/dist/measurement.cjs +1 -1
  27. package/dist/measurement.js +1 -1
  28. package/dist/{meshFns-p_kv--PW.js → meshFns-BY1fMF48.js} +7 -7
  29. package/dist/{meshFns-mVlogI3J.cjs → meshFns-Dbj_k5gq.cjs} +7 -7
  30. package/dist/operations/api.d.ts +2 -2
  31. package/dist/operations/api.d.ts.map +1 -1
  32. package/dist/operations/extrude.d.ts +2 -2
  33. package/dist/operations/extrudeFns.d.ts +3 -3
  34. package/dist/operations/extrudeFns.d.ts.map +1 -1
  35. package/dist/operations/loft.d.ts +1 -1
  36. package/dist/operations/loftFns.d.ts +2 -2
  37. package/dist/operations/loftFns.d.ts.map +1 -1
  38. package/dist/{operations-SRN-mfTx.cjs → operations-BP1wVDw0.cjs} +14 -20
  39. package/dist/{operations-CEV-gqkX.js → operations-C1rWoba2.js} +14 -20
  40. package/dist/operations.cjs +2 -2
  41. package/dist/operations.js +2 -2
  42. package/dist/{query-D7XclvBZ.js → query-V6nV-VfL.js} +4 -4
  43. package/dist/{query-DkcMfh6j.cjs → query-hMSmOWJP.cjs} +4 -4
  44. package/dist/query.cjs +1 -1
  45. package/dist/query.js +1 -1
  46. package/dist/{shapeFns-BpCPVHFT.js → shapeFns-BrF97sKt.js} +19 -19
  47. package/dist/{shapeFns-DjsWo98C.cjs → shapeFns-BvOndshS.cjs} +19 -19
  48. package/dist/{shapeHelpers-BBSVHPGk.cjs → shapeHelpers-B2SXz1p4.cjs} +2 -2
  49. package/dist/{shapeHelpers-C4QIp7u5.js → shapeHelpers-BcoZf2N9.js} +2 -2
  50. package/dist/sketching.cjs +2 -2
  51. package/dist/sketching.js +2 -2
  52. package/dist/topology/api.d.ts +11 -11
  53. package/dist/topology/api.d.ts.map +1 -1
  54. package/dist/topology/booleanFns.d.ts +9 -9
  55. package/dist/topology/booleanFns.d.ts.map +1 -1
  56. package/dist/topology/cast.d.ts +2 -2
  57. package/dist/topology/cast.d.ts.map +1 -1
  58. package/dist/topology/chamferAngleFns.d.ts +1 -1
  59. package/dist/topology/chamferAngleFns.d.ts.map +1 -1
  60. package/dist/topology/healingFns.d.ts +2 -2
  61. package/dist/topology/healingFns.d.ts.map +1 -1
  62. package/dist/topology/index.d.ts +1 -1
  63. package/dist/topology/index.d.ts.map +1 -1
  64. package/dist/topology/meshFns.d.ts +2 -2
  65. package/dist/topology/meshFns.d.ts.map +1 -1
  66. package/dist/topology/modifierFns.d.ts +5 -5
  67. package/dist/topology/modifierFns.d.ts.map +1 -1
  68. package/dist/topology/primitiveFns.d.ts +5 -1
  69. package/dist/topology/primitiveFns.d.ts.map +1 -1
  70. package/dist/topology/shapeFns.d.ts +9 -9
  71. package/dist/topology/shapeFns.d.ts.map +1 -1
  72. package/dist/{topology-BEMrS4WZ.js → topology-CJKeDGUb.js} +18 -18
  73. package/dist/{topology-Bb1W3SyF.cjs → topology-DoNKAKMt.cjs} +18 -18
  74. package/dist/topology.cjs +8 -8
  75. package/dist/topology.d.ts +1 -1
  76. package/dist/topology.d.ts.map +1 -1
  77. package/dist/topology.js +8 -8
  78. package/package.json +1 -1
package/dist/brepjs.js CHANGED
@@ -6,34 +6,34 @@ import { c as castShape, o as localGC, p as createSolid, h as isShape3D, n as gc
6
6
  import { D, r as r3, t as t3, q as q2, a as a2, b as b3, v as v2, u, s as s2, x, g as g2, i as i3, f as f3, j as j3, k as k3, l as l2, w as w3 } from "./shapeTypes-BlSElW8z.js";
7
7
  import { D as DEG2RAD, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
8
8
  import { H, R, v as v3, a as a3, b as b4, c as c2, d, e, g as g3, h as h3, i as i4, k as k4, l as l3, m as m2, o } from "./vecOps-ZDdZWbwT.js";
9
- import { B, a as a4, C, b as b5, m as m3 } from "./Blueprint-DSHD89bZ.js";
9
+ import { B, a as a4, C, b as b5, m as m3 } from "./Blueprint-D3JfGJTz.js";
10
10
  import { c as curveIsClosed, a as curveTangentAt, b as curvePointAt, d as curveEndPoint, e as curveStartPoint, f as curveLength } from "./curveFns-CdVE4da7.js";
11
11
  import { g as g4, h as h4, i as i5, j as j4, k as k5, l as l4, m as m4, n as n2, o as o2 } from "./curveFns-CdVE4da7.js";
12
- import { b as b6, g as g5, r as r4 } from "./loft-BlNndTOR.js";
13
- import { e as extrudeFace, r as revolveFace, s as sweep, c as circularPattern, l as linearPattern } from "./operations-CEV-gqkX.js";
14
- import { a as a5, b as b7, d as d2, f as f4, g as g6, h as h5, i as i6, j as j5, k as k6, m as m5, n as n3, o as o3, p, q as q3, t as t4, u as u2, v as v4, w as w4, x as x2, y, z as z2, A, B as B2, C as C2, D as D2, E } from "./operations-CEV-gqkX.js";
15
- import { B as B3, a as a6, b as b8, C as C3, F, S, c as c3, d as d3, f as f5, e as e2, i as i7, g as g7, o as o4, p as p2, r as r5 } from "./boolean2D-CtyE2hK5.js";
12
+ import { b as b6, g as g5, r as r4 } from "./loft-CtG5nMq5.js";
13
+ import { e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-C1rWoba2.js";
14
+ import { a as a5, b as b7, d as d2, f as f4, g as g6, h as h5, i as i6, j as j5, k as k6, m as m5, n as n3, o as o3, p, q as q3, t as t4, u as u2, v as v4, w as w4, x as x2, y, z as z2, A, B as B2, C as C2, D as D2, E } from "./operations-C1rWoba2.js";
15
+ import { B as B3, a as a6, b as b8, C as C3, F, S, c as c3, d as d3, f as f5, e as e2, i as i7, g as g7, o as o4, p as p2, r as r5 } from "./boolean2D-Ba8TcVzC.js";
16
16
  import { blueprintBoundingBox, blueprintIsInside, blueprintOrientation, blueprintToSVGPathD, createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, cutBlueprint2D, fuseBlueprint2D, getBounds2D, getOrientation2D, intersectBlueprint2D, isInside2D, mirror2D, mirrorBlueprint, reverseCurve, rotate2D, rotateBlueprint, scale2D, scaleBlueprint, sketch2DOnFace, sketch2DOnPlane, sketchBlueprintOnFace, sketchBlueprintOnPlane, stretch2D, stretchBlueprint, toSVGPathD, translate2D, translateBlueprint } from "./2d.js";
17
- import { e as edgeFinder, f as faceFinder } from "./query-D7XclvBZ.js";
18
- import { c as c4, g as g8, v as v5, w as w5 } from "./query-D7XclvBZ.js";
17
+ import { e as edgeFinder, f as faceFinder } from "./query-V6nV-VfL.js";
18
+ import { c as c4, g as g8, v as v5, w as w5 } from "./query-V6nV-VfL.js";
19
19
  import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
20
- import { C as C4, D as D3, a as a7, S as S2, b as b9, X, Y, c as c5, d as d4, e as e3, f as f6, Z, g as g9, h as h6, i as i8, j as j6, k as k7, l as l5, m as m6, n as n4, o as o5, p as p3, q as q4, r as r6, s as s3, t as t5, u as u3, v as v6, w as w6, x as x3, y as y2, z as z3, _, $, a0, A as A2, a1, B as B4, E as E2, a2 as a22, F as F2, G, H as H2, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a3 as a32, V, a4 as a42, W } from "./drawFns-CSbH7uoI.js";
20
+ import { C as C4, D as D3, a as a7, S as S2, b as b9, X, Y, c as c5, d as d4, e as e3, f as f6, Z, g as g9, h as h6, i as i8, j as j6, k as k7, l as l5, m as m6, n as n4, o as o5, p as p3, q as q4, r as r6, s as s3, t as t5, u as u3, v as v6, w as w6, x as x3, y as y2, z as z3, _, $, a0, A as A2, a1, B as B4, E as E2, a2 as a22, F as F2, G, H as H2, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a3 as a32, V, a4 as a42, W } from "./drawFns-D9qkvHgY.js";
21
21
  import { c as c6, a as a8, p as p4, r as r7, t as t6 } from "./vectors-CBuaMeZv.js";
22
- import { t as translateShape, g as getEdges, c as cloneShape, d as describeShape, i as isShapeNull, m as mirrorShape, r as rotateShape, s as scaleShape, a as simplifyShape, b as serializeShape, e as getBounds, f as getFaces, h as getVertices, j as getWires } from "./shapeFns-BpCPVHFT.js";
23
- import { k as k8, l as l6, n as n5, o as o6, p as p5, q as q5, u as u4, v as v7 } from "./shapeFns-BpCPVHFT.js";
24
- import { c as chamferDistAngleShape, h as healShape, i as isShapeValid } from "./topology-BEMrS4WZ.js";
25
- import { a as a9, b as b10, e as e4, f as f7, d as d5, g as g10, j as j7, s as s4, t as t7, k as k9, l as l7, v as v8, w as w7 } from "./topology-BEMrS4WZ.js";
26
- import { n as normalAt, f as faceCenter, i as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-Bl6HHbqO.js";
27
- import { c as c7, a as a10, b as b11, d as d6, p as p6, e as e5, u as u5, h as h7 } from "./faceFns-Bl6HHbqO.js";
28
- import { m as meshShape, a as meshShapeEdges } from "./meshFns-p_kv--PW.js";
29
- import { c as c8, b as b12, e as e6, d as d7, f as f8 } from "./meshFns-p_kv--PW.js";
30
- import { c as cutShape, f as fuseShape, i as intersectShape, s as sectionShape, a as sliceShape, b as splitShape, d as cutAll } from "./booleanFns-DcxqLQSG.js";
31
- import { e as e7, g as g11 } from "./booleanFns-DcxqLQSG.js";
32
- import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-D75pyJi1.js";
33
- import { d as d8, e as e8, f as f9, g as g12, h as h8, i as i9 } from "./measurement-D75pyJi1.js";
34
- import { d as addHolesInFace, e as makeBezierCurve, f as makeBSplineApproximation, g as makeCircle, h as makeCompound, i as makeCone, j as makeCylinder, k as makeEllipse, l as makeEllipseArc, n as makeEllipsoid, o as makeFace, p as makeNonPlanarFace, b as makeHelix, m as makeLine, q as makeOffset, r as makePolygon, w as weldShellsAndFaces, s as makeSolid, t as makeSphere, u as makeNewFaceWithinFace, v as makeTangentArc, x as makeThreePointArc, y as makeTorus, c as makeVertex, a as assembleWire } from "./shapeHelpers-C4QIp7u5.js";
35
- import { e as deserializeShape } from "./cast-D1s7Im9E.js";
36
- import { f as f10, c as c9, d as d9, g as g13, i as i10, s as s5 } from "./cast-D1s7Im9E.js";
22
+ import { t as translate$1, g as getEdges, c as clone$1, d as describe$1, i as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, a as simplify$1, b as toBREP$1, e as getBounds, f as getFaces, h as getVertices, j as getWires } from "./shapeFns-BrF97sKt.js";
23
+ import { k as k8, l as l6, n as n5, o as o6, p as p5, q as q5, u as u4, v as v7 } from "./shapeFns-BrF97sKt.js";
24
+ import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-CJKeDGUb.js";
25
+ import { a as a9, b as b10, e as e4, f as f7, d as d5, g as g10, j as j7, s as s4, t as t7, k as k9, l as l7, v as v8, w as w7 } from "./topology-CJKeDGUb.js";
26
+ import { n as normalAt, f as faceCenter, i as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-DHu-2JpA.js";
27
+ import { c as c7, a as a10, b as b11, d as d6, p as p6, e as e5, u as u5, h as h7 } from "./faceFns-DHu-2JpA.js";
28
+ import { m as mesh$1, a as meshEdges$1 } from "./meshFns-BY1fMF48.js";
29
+ import { c as c8, b as b12, e as e6, d as d7, f as f8 } from "./meshFns-BY1fMF48.js";
30
+ import { c as cut$1, f as fuse$1, i as intersect$1, s as section$1, a as slice$1, b as split$1, d as cutAll } from "./booleanFns-CqehfzcK.js";
31
+ import { e as e7, g as g11 } from "./booleanFns-CqehfzcK.js";
32
+ import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-C5JGCuUP.js";
33
+ import { d as d8, e as e8, f as f9, g as g12, h as h8, i as i9 } from "./measurement-C5JGCuUP.js";
34
+ import { d as addHolesInFace, e as makeBezierCurve, f as makeBSplineApproximation, g as makeCircle, h as makeCompound, i as makeCone, j as makeCylinder, k as makeEllipse, l as makeEllipseArc, n as makeEllipsoid, o as makeFace, p as makeNonPlanarFace, b as makeHelix, m as makeLine, q as makeOffset, r as makePolygon, w as weldShellsAndFaces, s as makeSolid, t as makeSphere, u as makeNewFaceWithinFace, v as makeTangentArc, x as makeThreePointArc, y as makeTorus, c as makeVertex, a as assembleWire } from "./shapeHelpers-BcoZf2N9.js";
35
+ import { f as fromBREP$1 } from "./cast-DQaUibmm.js";
36
+ import { e as e9, c as c9, d as d9, g as g13, i as i10, s as s5 } from "./cast-DQaUibmm.js";
37
37
  import { BrepBugError, bug } from "./result.js";
38
38
  import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
39
39
  const errorFactories = {
@@ -49,19 +49,19 @@ const errorFactories = {
49
49
  function kernelCall(fn, code, message, kind = "OCCT_OPERATION") {
50
50
  try {
51
51
  return ok(castShape(fn()));
52
- } catch (e9) {
53
- const rawMessage = e9 instanceof Error ? e9.message : String(e9);
52
+ } catch (e10) {
53
+ const rawMessage = e10 instanceof Error ? e10.message : String(e10);
54
54
  const translatedMessage = kind === "OCCT_OPERATION" ? translateOcctError(rawMessage) : rawMessage;
55
- return err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e9));
55
+ return err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e10));
56
56
  }
57
57
  }
58
58
  function kernelCallRaw(fn, code, message, kind = "OCCT_OPERATION") {
59
59
  try {
60
60
  return ok(fn());
61
- } catch (e9) {
62
- const rawMessage = e9 instanceof Error ? e9.message : String(e9);
61
+ } catch (e10) {
62
+ const rawMessage = e10 instanceof Error ? e10.message : String(e10);
63
63
  const translatedMessage = kind === "OCCT_OPERATION" ? translateOcctError(rawMessage) : rawMessage;
64
- return err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e9));
64
+ return err(errorFactories[kind](code, `${message}: ${translatedMessage}`, e10));
65
65
  }
66
66
  }
67
67
  function isPoint(p7) {
@@ -139,9 +139,12 @@ function box(width, depth, height, options) {
139
139
  const maker = r8(new oc.BRepPrimAPI_MakeBox_2(width, depth, height));
140
140
  let solid2 = createSolid(maker.Solid());
141
141
  gc();
142
- if (options?.center) {
143
- const c10 = options.center === true ? [0, 0, 0] : options.center;
144
- solid2 = translateShape(solid2, [c10[0] - width / 2, c10[1] - depth / 2, c10[2] - height / 2]);
142
+ const at = options?.at ?? (options?.center !== void 0 && options.center !== true ? options.center : void 0);
143
+ const centered = options?.centered ?? options?.center === true;
144
+ if (at) {
145
+ solid2 = translate$1(solid2, [at[0] - width / 2, at[1] - depth / 2, at[2] - height / 2]);
146
+ } else if (centered) {
147
+ solid2 = translate$1(solid2, [-width / 2, -depth / 2, -height / 2]);
145
148
  }
146
149
  return solid2;
147
150
  }
@@ -155,14 +158,14 @@ function cylinder(radius, height, options) {
155
158
  -axis[1] * height * 0.5,
156
159
  -axis[2] * height * 0.5
157
160
  ];
158
- solid2 = translateShape(solid2, halfShift);
161
+ solid2 = translate$1(solid2, halfShift);
159
162
  }
160
163
  return solid2;
161
164
  }
162
165
  function sphere(radius, options) {
163
166
  let solid2 = makeSphere(radius);
164
167
  if (options?.at) {
165
- solid2 = translateShape(solid2, options.at);
168
+ solid2 = translate$1(solid2, options.at);
166
169
  }
167
170
  return solid2;
168
171
  }
@@ -176,7 +179,7 @@ function cone(bottomRadius, topRadius, height, options) {
176
179
  -axis[1] * height * 0.5,
177
180
  -axis[2] * height * 0.5
178
181
  ];
179
- solid2 = translateShape(solid2, halfShift);
182
+ solid2 = translate$1(solid2, halfShift);
180
183
  }
181
184
  return solid2;
182
185
  }
@@ -186,7 +189,7 @@ function torus(majorRadius, minorRadius, options) {
186
189
  function ellipsoid(rx, ry, rz, options) {
187
190
  let solid2 = makeEllipsoid(rx, ry, rz);
188
191
  if (options?.at) {
189
- solid2 = translateShape(solid2, options.at);
192
+ solid2 = translate$1(solid2, options.at);
190
193
  }
191
194
  return solid2;
192
195
  }
@@ -259,14 +262,14 @@ function compound(shapeArray) {
259
262
  function solid(facesOrShells) {
260
263
  return makeSolid(facesOrShells);
261
264
  }
262
- function offsetFace(f11, distance, tolerance) {
263
- return makeOffset(f11, distance, tolerance);
265
+ function offsetFace(f10, distance, tolerance) {
266
+ return makeOffset(f10, distance, tolerance);
264
267
  }
265
268
  function sewShells(facesOrShells, ignoreType) {
266
269
  return weldShellsAndFaces(facesOrShells, ignoreType);
267
270
  }
268
- function addHoles(f11, holes) {
269
- return addHolesInFace(f11, holes);
271
+ function addHoles(f10, holes) {
272
+ return addHolesInFace(f10, holes);
270
273
  }
271
274
  function validateNotNull(shape2, label) {
272
275
  if (shape2.wrapped.IsNull()) {
@@ -274,8 +277,8 @@ function validateNotNull(shape2, label) {
274
277
  }
275
278
  return ok(void 0);
276
279
  }
277
- function thickenSurface(shape2, thickness) {
278
- const check = validateNotNull(shape2, "thickenSurface: shape");
280
+ function thicken$1(shape2, thickness) {
281
+ const check = validateNotNull(shape2, "thicken: shape");
279
282
  if (isErr(check)) return check;
280
283
  return kernelCall(
281
284
  () => getKernel().thicken(shape2.wrapped, thickness),
@@ -283,8 +286,8 @@ function thickenSurface(shape2, thickness) {
283
286
  "Thicken operation failed"
284
287
  );
285
288
  }
286
- function filletShape(shape2, edges, radius) {
287
- const check = validateNotNull(shape2, "filletShape: shape");
289
+ function fillet$1(shape2, edges, radius) {
290
+ const check = validateNotNull(shape2, "fillet: shape");
288
291
  if (isErr(check)) return check;
289
292
  if (typeof radius === "number" && radius <= 0) {
290
293
  return err(
@@ -331,7 +334,7 @@ function filletShape(shape2, edges, radius) {
331
334
  ) : radius;
332
335
  const result = kernel.fillet(
333
336
  shape2.wrapped,
334
- selectedEdges.map((e9) => e9.wrapped),
337
+ selectedEdges.map((e10) => e10.wrapped),
335
338
  kernelRadius
336
339
  );
337
340
  const cast = castShape(result);
@@ -339,19 +342,19 @@ function filletShape(shape2, edges, radius) {
339
342
  return err(occtError("FILLET_RESULT_NOT_3D", "Fillet result is not a 3D shape"));
340
343
  }
341
344
  return ok(cast);
342
- } catch (e9) {
343
- const raw = e9 instanceof Error ? e9.message : String(e9);
345
+ } catch (e10) {
346
+ const raw = e10 instanceof Error ? e10.message : String(e10);
344
347
  return err(
345
- occtError("FILLET_FAILED", `Fillet operation failed: ${raw}`, e9, {
346
- operation: "filletShape",
348
+ occtError("FILLET_FAILED", `Fillet operation failed: ${raw}`, e10, {
349
+ operation: "fillet",
347
350
  edgeCount: selectedEdges.length,
348
351
  radius
349
352
  })
350
353
  );
351
354
  }
352
355
  }
353
- function chamferShape(shape2, edges, distance) {
354
- const check = validateNotNull(shape2, "chamferShape: shape");
356
+ function chamfer$1(shape2, edges, distance) {
357
+ const check = validateNotNull(shape2, "chamfer: shape");
355
358
  if (isErr(check)) return check;
356
359
  if (typeof distance === "number" && distance <= 0) {
357
360
  return err(
@@ -390,7 +393,7 @@ function chamferShape(shape2, edges, distance) {
390
393
  ) : distance;
391
394
  const result = kernel.chamfer(
392
395
  shape2.wrapped,
393
- selectedEdges.map((e9) => e9.wrapped),
396
+ selectedEdges.map((e10) => e10.wrapped),
394
397
  kernelDistance
395
398
  );
396
399
  const cast = castShape(result);
@@ -398,19 +401,19 @@ function chamferShape(shape2, edges, distance) {
398
401
  return err(occtError("CHAMFER_RESULT_NOT_3D", "Chamfer result is not a 3D shape"));
399
402
  }
400
403
  return ok(cast);
401
- } catch (e9) {
402
- const raw = e9 instanceof Error ? e9.message : String(e9);
404
+ } catch (e10) {
405
+ const raw = e10 instanceof Error ? e10.message : String(e10);
403
406
  return err(
404
- occtError("CHAMFER_FAILED", `Chamfer operation failed: ${raw}`, e9, {
405
- operation: "chamferShape",
407
+ occtError("CHAMFER_FAILED", `Chamfer operation failed: ${raw}`, e10, {
408
+ operation: "chamfer",
406
409
  edgeCount: selectedEdges.length,
407
410
  distance
408
411
  })
409
412
  );
410
413
  }
411
414
  }
412
- function shellShape(shape2, faces, thickness, tolerance = 1e-3) {
413
- const check = validateNotNull(shape2, "shellShape: shape");
415
+ function shell$1(shape2, faces, thickness, tolerance = 1e-3) {
416
+ const check = validateNotNull(shape2, "shell: shape");
414
417
  if (isErr(check)) return check;
415
418
  if (thickness <= 0) {
416
419
  return err(validationError("INVALID_THICKNESS", "Shell thickness must be positive"));
@@ -421,7 +424,7 @@ function shellShape(shape2, faces, thickness, tolerance = 1e-3) {
421
424
  try {
422
425
  const result = getKernel().shell(
423
426
  shape2.wrapped,
424
- faces.map((f11) => f11.wrapped),
427
+ faces.map((f10) => f10.wrapped),
425
428
  thickness,
426
429
  tolerance
427
430
  );
@@ -430,19 +433,19 @@ function shellShape(shape2, faces, thickness, tolerance = 1e-3) {
430
433
  return err(occtError("SHELL_RESULT_NOT_3D", "Shell result is not a 3D shape"));
431
434
  }
432
435
  return ok(cast);
433
- } catch (e9) {
434
- const raw = e9 instanceof Error ? e9.message : String(e9);
436
+ } catch (e10) {
437
+ const raw = e10 instanceof Error ? e10.message : String(e10);
435
438
  return err(
436
- occtError("SHELL_FAILED", `Shell operation failed: ${raw}`, e9, {
437
- operation: "shellShape",
439
+ occtError("SHELL_FAILED", `Shell operation failed: ${raw}`, e10, {
440
+ operation: "shell",
438
441
  faceCount: faces.length,
439
442
  thickness
440
443
  })
441
444
  );
442
445
  }
443
446
  }
444
- function offsetShape(shape2, distance, tolerance = 1e-6) {
445
- const check = validateNotNull(shape2, "offsetShape: shape");
447
+ function offset$1(shape2, distance, tolerance = 1e-6) {
448
+ const check = validateNotNull(shape2, "offset: shape");
446
449
  if (isErr(check)) return check;
447
450
  if (distance === 0) {
448
451
  return err(validationError("ZERO_OFFSET", "Offset distance cannot be zero"));
@@ -454,39 +457,39 @@ function offsetShape(shape2, distance, tolerance = 1e-6) {
454
457
  );
455
458
  }
456
459
  function translate(shape2, v9) {
457
- return translateShape(resolve(shape2), v9);
460
+ return translate$1(resolve(shape2), v9);
458
461
  }
459
462
  function rotate(shape2, angle, options) {
460
463
  const pivotPoint = options?.at ?? options?.around;
461
- return rotateShape(resolve(shape2), angle, pivotPoint, options?.axis);
464
+ return rotate$1(resolve(shape2), angle, pivotPoint, options?.axis);
462
465
  }
463
466
  function mirror(shape2, options) {
464
467
  const planeOrigin = options?.at ?? options?.origin;
465
- return mirrorShape(resolve(shape2), options?.normal ?? [1, 0, 0], planeOrigin);
468
+ return mirror$1(resolve(shape2), options?.normal ?? [1, 0, 0], planeOrigin);
466
469
  }
467
470
  function scale(shape2, factor, options) {
468
- return scaleShape(resolve(shape2), factor, options?.center);
471
+ return scale$1(resolve(shape2), factor, options?.center);
469
472
  }
470
473
  function clone(shape2) {
471
- return cloneShape(resolve(shape2));
474
+ return clone$1(resolve(shape2));
472
475
  }
473
476
  function fuse(a11, b13, options) {
474
- return fuseShape(resolve(a11), resolve(b13), options);
477
+ return fuse$1(resolve(a11), resolve(b13), options);
475
478
  }
476
479
  function cut(base, tool, options) {
477
- return cutShape(resolve(base), resolve(tool), options);
480
+ return cut$1(resolve(base), resolve(tool), options);
478
481
  }
479
482
  function intersect(a11, b13, options) {
480
- return intersectShape(resolve(a11), resolve(b13), options);
483
+ return intersect$1(resolve(a11), resolve(b13), options);
481
484
  }
482
485
  function section(shape2, plane, options) {
483
- return sectionShape(resolve(shape2), plane, options);
486
+ return section$1(resolve(shape2), plane, options);
484
487
  }
485
488
  function split(shape2, tools) {
486
- return splitShape(resolve(shape2), tools);
489
+ return split$1(resolve(shape2), tools);
487
490
  }
488
491
  function slice(shape2, planes, options) {
489
- return sliceShape(resolve(shape2), planes, options);
492
+ return slice$1(resolve(shape2), planes, options);
490
493
  }
491
494
  function resolveEdges(edgesOrFn, shape2) {
492
495
  if (edgesOrFn === void 0) return void 0;
@@ -536,7 +539,7 @@ function fillet(shape2, edgesOrRadius, maybeRadius) {
536
539
  edges = void 0;
537
540
  radius = edgesOrRadius;
538
541
  }
539
- return filletShape(s6, edges, normalizeFilletRadius(radius));
542
+ return fillet$1(s6, edges, normalizeFilletRadius(radius));
540
543
  }
541
544
  function chamfer(shape2, edgesOrDistance, maybeDistance) {
542
545
  const s6 = resolve(shape2);
@@ -552,54 +555,54 @@ function chamfer(shape2, edgesOrDistance, maybeDistance) {
552
555
  const normalized = normalizeChamferDistance(distance);
553
556
  if (normalized.mode === "distAngle") {
554
557
  const selectedEdges = edges ?? getEdges(s6);
555
- return chamferDistAngleShape(
558
+ return chamferDistAngle(
556
559
  s6,
557
560
  [...selectedEdges],
558
561
  normalized.distance,
559
562
  normalized.angle
560
563
  );
561
564
  }
562
- return chamferShape(s6, edges, normalized.distance);
565
+ return chamfer$1(s6, edges, normalized.distance);
563
566
  }
564
567
  function shell(shape2, faces, thickness, options) {
565
568
  const s6 = resolve(shape2);
566
569
  const resolvedFaces = resolveFaces(faces, s6);
567
- return shellShape(s6, resolvedFaces, thickness, options?.tolerance);
570
+ return shell$1(s6, resolvedFaces, thickness, options?.tolerance);
568
571
  }
569
572
  function offset(shape2, distance, options) {
570
- return offsetShape(resolve(shape2), distance, options?.tolerance);
573
+ return offset$1(resolve(shape2), distance, options?.tolerance);
571
574
  }
572
575
  function thicken(shape2, thickness) {
573
- return thickenSurface(resolve(shape2), thickness);
576
+ return thicken$1(resolve(shape2), thickness);
574
577
  }
575
578
  function heal(shape2) {
576
- return healShape(resolve(shape2));
579
+ return heal$1(resolve(shape2));
577
580
  }
578
581
  function simplify(shape2) {
579
- return simplifyShape(resolve(shape2));
582
+ return simplify$1(resolve(shape2));
580
583
  }
581
584
  function mesh(shape2, options) {
582
- return meshShape(resolve(shape2), options);
585
+ return mesh$1(resolve(shape2), options);
583
586
  }
584
587
  function meshEdges(shape2, options) {
585
- return meshShapeEdges(resolve(shape2), options);
588
+ return meshEdges$1(resolve(shape2), options);
586
589
  }
587
590
  function describe(shape2) {
588
- return describeShape(resolve(shape2));
591
+ return describe$1(resolve(shape2));
589
592
  }
590
593
  function toBREP(shape2) {
591
- return serializeShape(resolve(shape2));
594
+ return toBREP$1(resolve(shape2));
592
595
  }
593
596
  function fromBREP(data) {
594
- return deserializeShape(data);
597
+ return fromBREP$1(data);
595
598
  }
596
599
  function isValid(shape2) {
597
- return isShapeValid(resolve(shape2));
600
+ return isValid$1(resolve(shape2));
598
601
  }
599
602
  function isEmpty(shape2) {
600
- return isShapeNull(resolve(shape2));
603
+ return isEmpty$1(resolve(shape2));
601
604
  }
602
- function loftWires(wires, { ruled = true, startPoint, endPoint } = {}, returnShell = false) {
605
+ function loft$1(wires, { ruled = true, startPoint, endPoint } = {}, returnShell = false) {
603
606
  if (wires.length === 0 && !startPoint && !endPoint) {
604
607
  return err(validationError("LOFT_EMPTY", "Loft requires at least one wire or start/end point"));
605
608
  }
@@ -631,17 +634,22 @@ function loftWires(wires, { ruled = true, startPoint, endPoint } = {}, returnShe
631
634
  return ok(result);
632
635
  }
633
636
  function extrude(face2, height) {
634
- const f11 = resolve(face2);
637
+ const f10 = resolve(face2);
635
638
  const vec = typeof height === "number" ? [0, 0, height] : height;
636
- return extrudeFace(f11, vec);
639
+ return extrude$1(f10, vec);
637
640
  }
638
641
  function revolve(face2, options) {
639
642
  const pivotPoint = options?.at ?? options?.around ?? [0, 0, 0];
640
- return revolveFace(resolve(face2), pivotPoint, options?.axis ?? [0, 0, 1], options?.angle ?? 360);
643
+ return revolve$1(
644
+ resolve(face2),
645
+ pivotPoint,
646
+ options?.axis ?? [0, 0, 1],
647
+ options?.angle ?? 360
648
+ );
641
649
  }
642
650
  function loft(wires, options) {
643
651
  const resolvedWires = wires.map((w8) => resolve(w8));
644
- return loftWires(resolvedWires, options);
652
+ return loft$1(resolvedWires, options);
645
653
  }
646
654
  function resolveTargetFace(shape2, faceSpec) {
647
655
  if (faceSpec === void 0) {
@@ -652,10 +660,10 @@ function resolveTargetFace(shape2, faceSpec) {
652
660
  let best = faces[0];
653
661
  let bestZ = faceCenter(best)[2];
654
662
  for (let i11 = 1; i11 < faces.length; i11++) {
655
- const f11 = faces[i11];
656
- const z4 = faceCenter(f11)[2];
663
+ const f10 = faces[i11];
664
+ const z4 = faceCenter(f10)[2];
657
665
  if (z4 > bestZ) {
658
- best = f11;
666
+ best = f10;
659
667
  bestZ = z4;
660
668
  }
661
669
  }
@@ -699,8 +707,8 @@ function drill(shape2, options) {
699
707
  }
700
708
  const cyl = makeCylinder(radius, depth, pos, dir);
701
709
  const startOffset = options.depth === void 0 ? vecScale(dir, -depth / 2) : [0, 0, 0];
702
- const tool = startOffset[0] !== 0 || startOffset[1] !== 0 || startOffset[2] !== 0 ? translateShape(cyl, startOffset) : cyl;
703
- return cutShape(s6, tool);
710
+ const tool = startOffset[0] !== 0 || startOffset[1] !== 0 || startOffset[2] !== 0 ? translate$1(cyl, startOffset) : cyl;
711
+ return cut$1(s6, tool);
704
712
  }
705
713
  function pocket(shape2, options) {
706
714
  const s6 = resolve(shape2);
@@ -714,9 +722,9 @@ function pocket(shape2, options) {
714
722
  const faceResult = makeFace(w8);
715
723
  if (isErr(faceResult)) return faceResult;
716
724
  const extDir = vecScale(vecNormalize(normal), -depth);
717
- const toolResult = extrudeFace(faceResult.value, extDir);
725
+ const toolResult = extrude$1(faceResult.value, extDir);
718
726
  if (isErr(toolResult)) return toolResult;
719
- return cutShape(s6, toolResult.value);
727
+ return cut$1(s6, toolResult.value);
720
728
  }
721
729
  function boss(shape2, options) {
722
730
  const s6 = resolve(shape2);
@@ -730,16 +738,16 @@ function boss(shape2, options) {
730
738
  const faceResult = makeFace(w8);
731
739
  if (isErr(faceResult)) return faceResult;
732
740
  const extDir = vecScale(vecNormalize(normal), height);
733
- const toolResult = extrudeFace(faceResult.value, extDir);
741
+ const toolResult = extrude$1(faceResult.value, extDir);
734
742
  if (isErr(toolResult)) return toolResult;
735
- return fuseShape(s6, toolResult.value);
743
+ return fuse$1(s6, toolResult.value);
736
744
  }
737
745
  function mirrorJoin(shape2, options) {
738
746
  const s6 = resolve(shape2);
739
747
  const normal = options?.normal ?? [1, 0, 0];
740
748
  const planeOrigin = options?.at ?? options?.origin;
741
- const mirrored = mirrorShape(s6, normal, planeOrigin);
742
- return fuseShape(s6, mirrored);
749
+ const mirrored = mirror$1(s6, normal, planeOrigin);
750
+ return fuse$1(s6, mirrored);
743
751
  }
744
752
  function rectangularPattern(shape2, options) {
745
753
  const s6 = resolve(shape2);
@@ -765,8 +773,8 @@ function rectangularPattern(shape2, options) {
765
773
  xNorm[1] * xSpacing * xi + yNorm[1] * ySpacing * yi,
766
774
  xNorm[2] * xSpacing * xi + yNorm[2] * ySpacing * yi
767
775
  ];
768
- const copy = translateShape(s6, offset2);
769
- const fuseResult = fuseShape(result, copy);
776
+ const copy = translate$1(s6, offset2);
777
+ const fuseResult = fuse$1(result, copy);
770
778
  if (isErr(fuseResult)) return fuseResult;
771
779
  result = fuseResult.value;
772
780
  }
@@ -968,7 +976,7 @@ export {
968
976
  a as andThen,
969
977
  e7 as applyGlue,
970
978
  g4 as approximateCurve,
971
- f10 as asTopo,
979
+ e9 as asTopo,
972
980
  b10 as autoHeal,
973
981
  b5 as axis2d,
974
982
  b6 as basicFaceExtrusion,
@@ -987,7 +995,7 @@ export {
987
995
  c9 as cast,
988
996
  castShape,
989
997
  chamfer,
990
- chamferDistAngleShape,
998
+ chamferDistAngle as chamferDistAngleShape,
991
999
  checkAllInterferences,
992
1000
  checkInterference,
993
1001
  circle,
@@ -1055,7 +1063,7 @@ export {
1055
1063
  dequeueTask,
1056
1064
  describe,
1057
1065
  g9 as deserializeDrawing,
1058
- deserializeShape,
1066
+ fromBREP$1 as deserializeShape,
1059
1067
  d9 as downcast,
1060
1068
  h6 as draw,
1061
1069
  i8 as drawCircle,
@@ -86,7 +86,7 @@ function isCompSolid(shape) {
86
86
  const oc = getKernel().oc;
87
87
  return st === oc.TopAbs_ShapeEnum.TopAbs_COMPSOLID;
88
88
  }
89
- function deserializeShape(data) {
89
+ function fromBREP(data) {
90
90
  const oc = getKernel().oc;
91
91
  return cast(oc.BRepToolsWrapper.Read(data));
92
92
  }
@@ -95,8 +95,8 @@ export {
95
95
  isWire as b,
96
96
  cast as c,
97
97
  downcast as d,
98
- deserializeShape as e,
99
- asTopo as f,
98
+ asTopo as e,
99
+ fromBREP as f,
100
100
  isCompSolid as g,
101
101
  iterTopo as i,
102
102
  shapeType as s
@@ -87,14 +87,14 @@ function isCompSolid(shape) {
87
87
  const oc = occtBoundary.getKernel().oc;
88
88
  return st === oc.TopAbs_ShapeEnum.TopAbs_COMPSOLID;
89
89
  }
90
- function deserializeShape(data) {
90
+ function fromBREP(data) {
91
91
  const oc = occtBoundary.getKernel().oc;
92
92
  return cast(oc.BRepToolsWrapper.Read(data));
93
93
  }
94
94
  exports.asTopo = asTopo;
95
95
  exports.cast = cast;
96
- exports.deserializeShape = deserializeShape;
97
96
  exports.downcast = downcast;
97
+ exports.fromBREP = fromBREP;
98
98
  exports.isCompSolid = isCompSolid;
99
99
  exports.isShape3D = isShape3D;
100
100
  exports.isWire = isWire;
@@ -1,18 +1,18 @@
1
1
  import { u as unwrap, g as isOk, e as err, x as validationError, l as ok } from "./errors-wGhcJMpB.js";
2
- import { m as makeLine, x as makeThreePointArc, v as makeTangentArc, l as makeEllipseArc, e as makeBezierCurve, a as assembleWire, h as makeCompound, d as addHolesInFace, s as makeSolid, o as makeFace, g as makeCircle, k as makeEllipse, b as makeHelix, f as makeBSplineApproximation } from "./shapeHelpers-C4QIp7u5.js";
2
+ import { m as makeLine, x as makeThreePointArc, v as makeTangentArc, l as makeEllipseArc, e as makeBezierCurve, a as assembleWire, h as makeCompound, d as addHolesInFace, s as makeSolid, o as makeFace, g as makeCircle, k as makeEllipse, b as makeHelix, f as makeBSplineApproximation } from "./shapeHelpers-BcoZf2N9.js";
3
3
  import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-CBuaMeZv.js";
4
4
  import { g as getKernel, a as toVec3, c as makeOcAx2 } from "./occtBoundary-CwegMzqc.js";
5
5
  import { n as vecScale, j as vecNormalize, v as vecAdd, o as vecSub, b as vecCross, m as vecRotate, R as RAD2DEG, g as vecLength, e as vecEquals, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
6
- import { h as Flatbush, j as convertSvgEllipseParams, k as defaultsSplineConfig, S as Sketch, r as roundedRectangleBlueprint, b as Blueprints, C as CompoundBlueprint, c as cut2D, l as intersectCurves, f as fuse2D, m as make2dOffset, n as filletCurves, q as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, i as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-CtyE2hK5.js";
7
- import { f as faceCenter, n as normalAt, o as outerWire } from "./faceFns-Bl6HHbqO.js";
6
+ import { h as Flatbush, j as convertSvgEllipseParams, k as defaultsSplineConfig, S as Sketch, r as roundedRectangleBlueprint, b as Blueprints, C as CompoundBlueprint, c as cut2D, l as intersectCurves, f as fuse2D, m as make2dOffset, n as filletCurves, q as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, i as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-Ba8TcVzC.js";
7
+ import { f as faceCenter, n as normalAt, o as outerWire } from "./faceFns-DHu-2JpA.js";
8
8
  import { a as curveTangentAt, d as curveEndPoint, l as getCurveType, o as offsetWire2D } from "./curveFns-CdVE4da7.js";
9
9
  import { s as createWire, o as localGC, q as createFace, e as isFace, n as gcWithScope, c as castShape } from "./shapeTypes-BlSElW8z.js";
10
- import { d as downcast, c as cast } from "./cast-D1s7Im9E.js";
11
- import { n as mirror, B as Blueprint, C as Curve2D, c as make2dSegmentCurve, g as make2dArcFromCenter, o as approximateAsSvgCompatibleCurve, a as BoundingBox2d, p as edgeToCurve, q as make2dInerpolatedBSplineCurve, e as make2dCircle, s as make2dEllipse, t as deserializeCurve2D } from "./Blueprint-DSHD89bZ.js";
10
+ import { d as downcast, c as cast } from "./cast-DQaUibmm.js";
11
+ import { n as mirror, B as Blueprint, C as Curve2D, c as make2dSegmentCurve, g as make2dArcFromCenter, o as approximateAsSvgCompatibleCurve, a as BoundingBox2d, p as edgeToCurve, q as make2dInerpolatedBSplineCurve, e as make2dCircle, s as make2dEllipse, t as deserializeCurve2D } from "./Blueprint-D3JfGJTz.js";
12
12
  import { bug } from "./result.js";
13
- import { i as distance2d, k as polarAngle2d, p as polarToCartesian, l as PRECISION_OFFSET, m as squareDistance2d, s as samePoint$1, a as subtract2d, b as add2d, c as cornerFinder } from "./query-D7XclvBZ.js";
14
- import { g as getEdges } from "./shapeFns-BpCPVHFT.js";
15
- import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-BlNndTOR.js";
13
+ import { i as distance2d, k as polarAngle2d, p as polarToCartesian, l as PRECISION_OFFSET, m as squareDistance2d, s as samePoint$1, a as subtract2d, b as add2d, c as cornerFinder } from "./query-V6nV-VfL.js";
14
+ import { g as getEdges } from "./shapeFns-BrF97sKt.js";
15
+ import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-CtG5nMq5.js";
16
16
  import opentype from "opentype.js";
17
17
  const stitchCurves = (curves, precision = 1e-7) => {
18
18
  const startPoints = new Flatbush(curves.length);
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  const errors = require("./errors-DK1VAdP4.cjs");
3
- const shapeHelpers = require("./shapeHelpers-BBSVHPGk.cjs");
3
+ const shapeHelpers = require("./shapeHelpers-B2SXz1p4.cjs");
4
4
  const vectors = require("./vectors-ChWEZPwy.cjs");
5
5
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
6
6
  const vecOps = require("./vecOps-CjRL1jau.cjs");
7
- const boolean2D = require("./boolean2D-BwOpOv6L.cjs");
8
- const faceFns = require("./faceFns-B9if-FPW.cjs");
7
+ const boolean2D = require("./boolean2D-BnuJdfDv.cjs");
8
+ const faceFns = require("./faceFns-BwK7FP7N.cjs");
9
9
  const curveFns = require("./curveFns-BilyYL_s.cjs");
10
10
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
11
- const cast = require("./cast-DsxJk_F0.cjs");
12
- const Blueprint = require("./Blueprint-3Dyu0OL6.cjs");
11
+ const cast = require("./cast-DkB0GKmQ.cjs");
12
+ const Blueprint = require("./Blueprint-CVctc41Z.cjs");
13
13
  const result = require("./result.cjs");
14
- const query = require("./query-DkcMfh6j.cjs");
15
- const shapeFns = require("./shapeFns-DjsWo98C.cjs");
16
- const loft = require("./loft-Cc5E5pAf.cjs");
14
+ const query = require("./query-hMSmOWJP.cjs");
15
+ const shapeFns = require("./shapeFns-BvOndshS.cjs");
16
+ const loft = require("./loft-BzWFokmC.cjs");
17
17
  const opentype = require("opentype.js");
18
18
  const stitchCurves = (curves, precision = 1e-7) => {
19
19
  const startPoints = new boolean2D.Flatbush(curves.length);
@@ -2,7 +2,7 @@
2
2
  const occtBoundary = require("./occtBoundary-du8_ex-p.cjs");
3
3
  const shapeTypes = require("./shapeTypes-DKhwEnUM.cjs");
4
4
  const errors = require("./errors-DK1VAdP4.cjs");
5
- const cast = require("./cast-DsxJk_F0.cjs");
5
+ const cast = require("./cast-DkB0GKmQ.cjs");
6
6
  function getSurfaceType(face) {
7
7
  const oc = occtBoundary.getKernel().oc;
8
8
  const r = shapeTypes.gcWithScope();
@@ -1,7 +1,7 @@
1
1
  import { g as getKernel, a as toVec3, d as toOcPnt } from "./occtBoundary-CwegMzqc.js";
2
2
  import { c as castShape, n as gcWithScope } from "./shapeTypes-BlSElW8z.js";
3
3
  import { u as unwrap, e as err, p as typeCastError, l as ok } from "./errors-wGhcJMpB.js";
4
- import { i as iterTopo, d as downcast } from "./cast-D1s7Im9E.js";
4
+ import { i as iterTopo, d as downcast } from "./cast-DQaUibmm.js";
5
5
  function getSurfaceType(face) {
6
6
  const oc = getKernel().oc;
7
7
  const r = gcWithScope();