brepjs 8.0.2 → 8.0.4

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 (69) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +3 -3
  3. package/dist/{Blueprint-B9fhnpFp.js → Blueprint-2_aAKNQR.js} +8 -9
  4. package/dist/{Blueprint-VGbo3izk.cjs → Blueprint-DLrTLXzX.cjs} +9 -10
  5. package/dist/{boolean2D-B1XrGVgx.cjs → boolean2D-DeFQSg1m.cjs} +10 -10
  6. package/dist/{boolean2D-_WiqPxWZ.js → boolean2D-XbuOXTHG.js} +10 -10
  7. package/dist/{booleanFns-CkccZ7UL.js → booleanFns-DGMIgJl_.js} +5 -5
  8. package/dist/{booleanFns-BxW-N3rP.cjs → booleanFns-ND7sZvhu.cjs} +3 -3
  9. package/dist/brepjs.cjs +65 -69
  10. package/dist/brepjs.js +114 -119
  11. package/dist/{cast-C4Ff_1Qe.js → cast-BEg1mN7n.js} +2 -2
  12. package/dist/{cast-DIiyxDLo.cjs → cast-CqDc8oFW.cjs} +2 -2
  13. package/dist/core.cjs +3 -3
  14. package/dist/core.js +3 -3
  15. package/dist/{cornerFinder-DzGzfiqb.js → cornerFinder-D52Bk6bt.js} +1 -1
  16. package/dist/{cornerFinder-BndBNtJE.cjs → cornerFinder-DhbwiYQK.cjs} +1 -1
  17. package/dist/{curveBuilders-BUoFO1UG.cjs → curveBuilders-BjtdNw1B.cjs} +2 -2
  18. package/dist/{curveBuilders-CBlIWlbU.js → curveBuilders-U26XDfxg.js} +2 -2
  19. package/dist/curveFns-BoG_iA07.cjs +375 -0
  20. package/dist/curveFns-Cg99XKe2.js +376 -0
  21. package/dist/{drawFns-Btmlh_Oz.js → drawFns-CqfB685D.js} +12 -13
  22. package/dist/{drawFns-D2eDcf4k.cjs → drawFns-DJIg_iZh.cjs} +15 -16
  23. package/dist/{faceFns-DDzCECn3.js → faceFns-CyokaCDr.js} +3 -3
  24. package/dist/{faceFns-NDRFeekj.cjs → faceFns-DcSCjDG0.cjs} +3 -3
  25. package/dist/{helpers-jku2V1DY.js → helpers-BCWmNSKh.js} +14 -14
  26. package/dist/{helpers-Ck8GJ58k.cjs → helpers-DwmieP38.cjs} +17 -17
  27. package/dist/io.cjs +4 -4
  28. package/dist/io.js +4 -4
  29. package/dist/kernel/curveOps.d.ts.map +1 -1
  30. package/dist/kernel/meshOps.d.ts.map +1 -1
  31. package/dist/kernel/modifierOps.d.ts.map +1 -1
  32. package/dist/{loft-DJXwxV_L.cjs → loft-8asn63t4.cjs} +4 -4
  33. package/dist/{loft-Bk9EM0gZ.js → loft-jIkZRqHm.js} +4 -4
  34. package/dist/{measurement-DlXaTzKc.js → measurement-DWv8kK6J.js} +3 -3
  35. package/dist/{measurement-LcGh4wV0.cjs → measurement-lRLwaoqD.cjs} +3 -3
  36. package/dist/measurement.cjs +1 -1
  37. package/dist/measurement.js +1 -1
  38. package/dist/{meshFns-c8lDKfYy.cjs → meshFns-DWuLC3fk.cjs} +29 -9
  39. package/dist/{meshFns-Djzdn-CS.js → meshFns-DgAIL1B-.js} +29 -9
  40. package/dist/{occtBoundary-6kQSl3cF.cjs → occtBoundary-DHtzU4tz.cjs} +72 -61
  41. package/dist/{occtBoundary-CqXvDhZY.js → occtBoundary-DYsksDtE.js} +72 -61
  42. package/dist/operations/patternFns.d.ts.map +1 -1
  43. package/dist/{operations-CrQlFDHc.js → operations-BtwU1X9p.js} +32 -10
  44. package/dist/{operations-Do-WZGXc.cjs → operations-CCFPvtd-.cjs} +32 -10
  45. package/dist/operations.cjs +2 -2
  46. package/dist/operations.js +2 -2
  47. package/dist/query/shapeDistanceFilter.d.ts.map +1 -1
  48. package/dist/query.cjs +5 -5
  49. package/dist/query.js +6 -6
  50. package/dist/{shapeTypes-BJ3Hmskg.cjs → shapeTypes-b_lhwQB7.cjs} +1 -1
  51. package/dist/{shapeTypes-C9sUsmEW.js → shapeTypes-i7VwMRwc.js} +1 -1
  52. package/dist/sketching.cjs +2 -2
  53. package/dist/sketching.js +2 -2
  54. package/dist/topology/adjacencyFns.d.ts.map +1 -1
  55. package/dist/topology/compoundOpsFns.d.ts.map +1 -1
  56. package/dist/topology/meshFns.d.ts.map +1 -1
  57. package/dist/{topology-CtfUZwLR.js → topology-DXDdiKaF.js} +39 -18
  58. package/dist/{topology-DXq8dLsi.cjs → topology-uexRi0i6.cjs} +44 -23
  59. package/dist/topology.cjs +33 -34
  60. package/dist/topology.js +52 -53
  61. package/dist/{vectors-BVgXsYWl.js → vectors-DWLjb9-P.js} +1 -1
  62. package/dist/{vectors-DK2hEKcI.cjs → vectors-aQBZK0Sb.cjs} +1 -1
  63. package/dist/vectors.cjs +2 -2
  64. package/dist/vectors.js +2 -2
  65. package/package.json +1 -1
  66. package/dist/curveFns-BrJDkaWi.cjs +0 -177
  67. package/dist/curveFns-BshHA9Ys.js +0 -178
  68. package/dist/shapeFns-DQtpzndX.js +0 -203
  69. package/dist/shapeFns-cN4qGpbO.cjs +0 -202
package/dist/brepjs.js CHANGED
@@ -1,44 +1,42 @@
1
- import { g as getKernel, b as toOcPnt, a as toVec3 } from "./occtBoundary-CqXvDhZY.js";
2
- import { f, h, i, j, r, c, t, w, k, l } from "./occtBoundary-CqXvDhZY.js";
1
+ import { g as getKernel, b as toOcPnt, a as toVec3 } from "./occtBoundary-DYsksDtE.js";
2
+ import { f, h, i, j, r, c, t, w, k, l } from "./occtBoundary-DYsksDtE.js";
3
3
  import { l as ok, y as translateOcctError, e as err, q as queryError, u as unwrap, x as validationError, B as BrepErrorCode, d as isErr, o as occtError, p as typeCastError } from "./errors-wGhcJMpB.js";
4
4
  import { O, a, c as c2, b, f as f2, i as i2, g, m, h as h2, j as j2, k as k2, z, s, t as t2, n, r as r2, v, w as w2 } from "./errors-wGhcJMpB.js";
5
- import { c as castShape, s as createSolid, p as gcWithScope, h as isShape3D, e as isFace, d as isEdge, m as isWire } from "./shapeTypes-C9sUsmEW.js";
6
- import { D, q, o, u, a as a2, b as b2, v as v2, r as r3, n as n2, x, g as g2, i as i3, f as f3, j as j3, k as k3, l as l2, t as t3, w as w3 } from "./shapeTypes-C9sUsmEW.js";
5
+ import { c as castShape, s as createSolid, p as gcWithScope, h as isShape3D, e as isFace, d as isEdge, m as isWire } from "./shapeTypes-i7VwMRwc.js";
6
+ import { D, q, o, u, a as a2, b as b2, v as v2, r as r3, n as n2, x, g as g2, i as i3, f as f3, j as j3, k as k3, l as l2, t as t3, w as w3 } from "./shapeTypes-i7VwMRwc.js";
7
7
  import { c as vecDistance, 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 b3, d, e, g as g3, h as h3, i as i4, k as k4, l as l3, m as m2, o as o2 } from "./vecOps-ZDdZWbwT.js";
9
- import { a as addHolesInFace, m as makeFace, b as makeNonPlanarFace, c as makePolygon, d as makeNewFaceWithinFace } from "./Blueprint-B9fhnpFp.js";
10
- import { B, e as e2, C, f as f4, g as g4 } from "./Blueprint-B9fhnpFp.js";
11
- import { c as curveIsClosed, a as curveTangentAt, b as curvePointAt, d as curveEndPoint, e as curveStartPoint, f as curveLength } from "./curveFns-BshHA9Ys.js";
12
- import { g as g5, h as h4, i as i5, j as j4, k as k5, l as l4, m as m3, n as n3, o as o3 } from "./curveFns-BshHA9Ys.js";
13
- import { m as makeCompound, a as makeCone, b as makeCylinder, c as makeEllipsoid, d as makeOffset, w as weldShellsAndFaces, e as makeSolid, f as makeSphere, g as makeTorus, h as makeVertex } from "./loft-Bk9EM0gZ.js";
14
- import { i as i6, j as j5, r as r4 } from "./loft-Bk9EM0gZ.js";
15
- import { e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-CrQlFDHc.js";
16
- import { a as a4, b as b4, d as d2, f as f5, g as g6, h as h5, i as i7, j as j6, k as k6, m as m4, n as n4, o as o4, p, q as q2, 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-CrQlFDHc.js";
17
- import { B as B3, a as a5, b as b5, C as C3, F, S, c as c3, d as d3, f as f6, e as e3, i as i8, g as g7, o as o5, p as p2, r as r5 } from "./boolean2D-_WiqPxWZ.js";
9
+ import { a as addHolesInFace, m as makeFace, b as makeNonPlanarFace, c as makePolygon, d as makeNewFaceWithinFace } from "./Blueprint-2_aAKNQR.js";
10
+ import { B, e as e2, C, f as f4, g as g4 } from "./Blueprint-2_aAKNQR.js";
11
+ import { c as curveIsClosed, v as vertexPosition, t as translate$1, a as getEdges, b as clone$1, d as describe$1, e as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, f as simplify$1, h as toBREP$1, j as getBounds, k as getFaces, l as curveTangentAt, n as curvePointAt, o as curveEndPoint, p as curveStartPoint, q as curveLength, u as getVertices, w as getWires } from "./curveFns-Cg99XKe2.js";
12
+ import { x as x2, y, z as z2, A, B as B2, C as C2, g as g5, D as D2, E, F, i as i5, G, H as H2, I, J, K } from "./curveFns-Cg99XKe2.js";
13
+ import { m as makeCompound, a as makeCone, b as makeCylinder, c as makeEllipsoid, d as makeOffset, w as weldShellsAndFaces, e as makeSolid, f as makeSphere, g as makeTorus, h as makeVertex } from "./loft-jIkZRqHm.js";
14
+ import { i as i6, j as j4, r as r4 } from "./loft-jIkZRqHm.js";
15
+ import { e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-BtwU1X9p.js";
16
+ import { a as a4, b as b4, d as d2, f as f5, g as g6, h as h4, i as i7, j as j5, k as k5, m as m3, n as n3, o as o3, p, q as q2, t as t4, u as u2, v as v4, w as w4, x as x3, y as y2, z as z3, A as A2, B as B3, C as C3, D as D3, E as E2 } from "./operations-BtwU1X9p.js";
17
+ import { B as B4, a as a5, b as b5, C as C4, F as F2, S, c as c3, d as d3, f as f6, e as e3, i as i8, g as g7, o as o4, p as p2, r as r5 } from "./boolean2D-XbuOXTHG.js";
18
18
  import { createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, getBounds2D, getOrientation2D, isInside2D, mirror2D, reverseCurve, rotate2D, scale2D, sketch2DOnFace, sketch2DOnPlane, stretch2D, toSVGPathD, translate2D } from "./2d.js";
19
- import { c as createTypedFinder, f as faceFinder } from "./helpers-jku2V1DY.js";
20
- import { g as g8 } from "./helpers-jku2V1DY.js";
19
+ import { c as createTypedFinder, f as faceFinder } from "./helpers-BCWmNSKh.js";
20
+ import { g as g8 } from "./helpers-BCWmNSKh.js";
21
21
  import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
22
- import { C as C4, D as D3, a as a6, S as S2, b as b6, X, Y, c as c4, d as d4, e as e4, f as f7, Z, g as g9, h as h6, i as i9, j as j7, k as k7, l as l5, m as m5, n as n5, o as o6, p as p3, q as q3, r as r6, s as s2, t as t5, u as u3, v as v5, w as w5, 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-Btmlh_Oz.js";
23
- import { c as c5, a as a7, p as p4, r as r7, t as t6 } from "./vectors-BVgXsYWl.js";
24
- import { v as vertexPosition, t as translate$1, a as getEdges, c as clone$1, d as describe$1, b as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, e as simplify$1, f as toBREP$1, h as getBounds, j as getFaces, k as getVertices, l as getWires } from "./shapeFns-DQtpzndX.js";
25
- import { g as g10, n as n6, i as i10, o as o7, p as p5, q as q4, u as u4 } from "./shapeFns-DQtpzndX.js";
26
- import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-CtfUZwLR.js";
27
- import { a as a8, b as b7, e as e5, f as f8, d as d5, g as g11, j as j8, s as s3, t as t7, k as k8, l as l6, v as v6, w as w6 } from "./topology-CtfUZwLR.js";
28
- import { n as normalAt, f as faceCenter, i as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-DDzCECn3.js";
29
- import { c as c6, a as a9, b as b8, d as d6, p as p6, e as e6, u as u5, h as h7 } from "./faceFns-DDzCECn3.js";
30
- import { m as mesh$1, a as meshEdges$1 } from "./meshFns-Djzdn-CS.js";
31
- import { c as c7, b as b9, e as e7, d as d7, f as f9 } from "./meshFns-Djzdn-CS.js";
32
- 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, e as fuseAll } from "./booleanFns-CkccZ7UL.js";
33
- import { g as g12 } from "./booleanFns-CkccZ7UL.js";
34
- import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-DlXaTzKc.js";
35
- import { d as d8, e as e8, f as f10, g as g13, h as h8, i as i11 } from "./measurement-DlXaTzKc.js";
36
- import { c as makeBezierCurve, d as makeBSplineApproximation, e as makeCircle, f as makeEllipse, g as makeEllipseArc, b as makeHelix, m as makeLine, h as makeTangentArc, i as makeThreePointArc, a as assembleWire } from "./curveBuilders-CBlIWlbU.js";
37
- import { i as iterTopo, f as fromBREP$1 } from "./cast-C4Ff_1Qe.js";
38
- import { e as e9, c as c8, d as d9, g as g14, s as s4 } from "./cast-C4Ff_1Qe.js";
22
+ import { C as C5, D as D4, a as a6, S as S2, b as b6, X, Y, c as c4, d as d4, e as e4, f as f7, Z, g as g9, h as h5, i as i9, j as j6, k as k6, l as l4, m as m4, n as n4, o as o5, p as p3, q as q3, r as r6, s as s2, t as t5, u as u3, v as v5, w as w5, x as x4, y as y3, z as z4, _, $, a0, A as A3, a1, B as B5, E as E3, a2 as a22, F as F3, G as G2, H as H3, I as I2, J as J2, K as K2, L, M, N, O as O2, P, Q, R as R2, T, U, a3 as a32, V, a4 as a42, W } from "./drawFns-CqfB685D.js";
23
+ import { c as c5, a as a7, p as p4, r as r7, t as t6 } from "./vectors-DWLjb9-P.js";
24
+ import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-DXDdiKaF.js";
25
+ import { a as a8, b as b7, e as e5, f as f8, d as d5, g as g10, j as j7, s as s3, t as t7, k as k7, l as l5, v as v6, w as w6 } from "./topology-DXDdiKaF.js";
26
+ import { n as normalAt, f as faceCenter, i as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-CyokaCDr.js";
27
+ import { c as c6, a as a9, b as b8, d as d6, p as p5, e as e6, u as u4, h as h6 } from "./faceFns-CyokaCDr.js";
28
+ import { m as mesh$1, a as meshEdges$1 } from "./meshFns-DgAIL1B-.js";
29
+ import { c as c7, b as b9, e as e7, d as d7, f as f9 } from "./meshFns-DgAIL1B-.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 fuseAll, e as cutAll } from "./booleanFns-DGMIgJl_.js";
31
+ import { g as g11 } from "./booleanFns-DGMIgJl_.js";
32
+ import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-DWv8kK6J.js";
33
+ import { d as d8, e as e8, f as f10, g as g12, h as h7, i as i10 } from "./measurement-DWv8kK6J.js";
34
+ import { c as makeBezierCurve, d as makeBSplineApproximation, e as makeCircle, f as makeEllipse, g as makeEllipseArc, b as makeHelix, m as makeLine, h as makeTangentArc, i as makeThreePointArc, a as assembleWire } from "./curveBuilders-U26XDfxg.js";
35
+ import { i as iterTopo, f as fromBREP$1 } from "./cast-BEg1mN7n.js";
36
+ import { e as e9, c as c8, d as d9, g as g13, s as s4 } from "./cast-BEg1mN7n.js";
39
37
  import { edgeFinder } from "./query.js";
40
38
  import { BrepBugError, bug } from "./result.js";
41
- import { c as c9 } from "./cornerFinder-DzGzfiqb.js";
39
+ import { c as c9 } from "./cornerFinder-D52Bk6bt.js";
42
40
  import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
43
41
  const errorFactories = {
44
42
  OCCT_OPERATION: (code, message, cause) => ({ kind: "OCCT_OPERATION", code, message, cause }),
@@ -113,11 +111,11 @@ function withNearestPostFilter(baseFinder, nearestPoint) {
113
111
  if (candidates.length === 0) return [];
114
112
  let bestIdx = 0;
115
113
  let bestDist = vecDistance(vertexPosition(candidates[0]), nearestPoint);
116
- for (let i12 = 1; i12 < candidates.length; i12++) {
117
- const d10 = vecDistance(vertexPosition(candidates[i12]), nearestPoint);
114
+ for (let i11 = 1; i11 < candidates.length; i11++) {
115
+ const d10 = vecDistance(vertexPosition(candidates[i11]), nearestPoint);
118
116
  if (d10 < bestDist) {
119
117
  bestDist = d10;
120
- bestIdx = i12;
118
+ bestIdx = i11;
121
119
  }
122
120
  }
123
121
  return [candidates[bestIdx]];
@@ -186,11 +184,11 @@ function checkInterference(shape1, shape2, tolerance = 1e-6) {
186
184
  }
187
185
  function checkAllInterferences(shapes, tolerance = 1e-6) {
188
186
  const pairs = [];
189
- shapes.forEach((si, i12) => {
190
- for (let j9 = i12 + 1; j9 < shapes.length; j9++) {
191
- const result = unwrap(checkInterference(si, shapes[j9], tolerance));
187
+ shapes.forEach((si, i11) => {
188
+ for (let j8 = i11 + 1; j8 < shapes.length; j8++) {
189
+ const result = unwrap(checkInterference(si, shapes[j8], tolerance));
192
190
  if (result.hasInterference) {
193
- pairs.push({ i: i12, j: j9, result });
191
+ pairs.push({ i: i11, j: j8, result });
194
192
  }
195
193
  }
196
194
  });
@@ -727,12 +725,12 @@ function resolveTargetFace(shape2, faceSpec) {
727
725
  }
728
726
  let best = faces[0];
729
727
  let bestZ = faceCenter(best)[2];
730
- for (let i12 = 1; i12 < faces.length; i12++) {
731
- const f11 = faces[i12];
732
- const z4 = faceCenter(f11)[2];
733
- if (z4 > bestZ) {
728
+ for (let i11 = 1; i11 < faces.length; i11++) {
729
+ const f11 = faces[i11];
730
+ const z5 = faceCenter(f11)[2];
731
+ if (z5 > bestZ) {
734
732
  best = f11;
735
- bestZ = z4;
733
+ bestZ = z5;
736
734
  }
737
735
  }
738
736
  return best;
@@ -832,7 +830,7 @@ function rectangularPattern(shape2, options) {
832
830
  if (xCount === 1 && yCount === 1) return ok(s5);
833
831
  const xNorm = vecNormalize(xDir);
834
832
  const yNorm = vecNormalize(yDir);
835
- let result = s5;
833
+ const copies = [s5];
836
834
  for (let xi = 0; xi < xCount; xi++) {
837
835
  for (let yi = 0; yi < yCount; yi++) {
838
836
  if (xi === 0 && yi === 0) continue;
@@ -841,13 +839,10 @@ function rectangularPattern(shape2, options) {
841
839
  xNorm[1] * xSpacing * xi + yNorm[1] * ySpacing * yi,
842
840
  xNorm[2] * xSpacing * xi + yNorm[2] * ySpacing * yi
843
841
  ];
844
- const copy = translate$1(s5, offset2);
845
- const fuseResult = fuse$1(result, copy);
846
- if (isErr(fuseResult)) return fuseResult;
847
- result = fuseResult.value;
842
+ copies.push(translate$1(s5, offset2));
848
843
  }
849
844
  }
850
- return ok(result);
845
+ return fuseAll(copies);
851
846
  }
852
847
  class BrepWrapperError extends Error {
853
848
  code;
@@ -1016,7 +1011,7 @@ function shape(s5) {
1016
1011
  throw new Error("shape() requires a Sketch or branded shape type");
1017
1012
  }
1018
1013
  export {
1019
- B3 as BaseSketcher2d,
1014
+ B4 as BaseSketcher2d,
1020
1015
  B as Blueprint,
1021
1016
  a5 as BlueprintSketcher,
1022
1017
  b5 as Blueprints,
@@ -1024,14 +1019,14 @@ export {
1024
1019
  BrepBugError,
1025
1020
  BrepErrorCode,
1026
1021
  BrepWrapperError,
1027
- C3 as CompoundBlueprint,
1028
- C4 as CompoundSketch,
1022
+ C4 as CompoundBlueprint,
1023
+ C5 as CompoundSketch,
1029
1024
  C as Curve2D,
1030
1025
  DEG2RAD,
1031
1026
  D as DisposalScope,
1032
- D3 as Drawing,
1027
+ D4 as Drawing,
1033
1028
  a6 as DrawingPen,
1034
- F as FaceSketcher,
1029
+ F2 as FaceSketcher,
1035
1030
  H as HASH_CODE_MAX,
1036
1031
  O as OK,
1037
1032
  R as RAD2DEG,
@@ -1043,8 +1038,8 @@ export {
1043
1038
  b4 as addStep,
1044
1039
  a8 as adjacentFaces,
1045
1040
  a as andThen,
1046
- g12 as applyGlue,
1047
- g5 as approximateCurve,
1041
+ g11 as applyGlue,
1042
+ x2 as approximateCurve,
1048
1043
  e9 as asTopo,
1049
1044
  b7 as autoHeal,
1050
1045
  f4 as axis2d,
@@ -1080,7 +1075,7 @@ export {
1080
1075
  cone,
1081
1076
  c9 as cornerFinder,
1082
1077
  g6 as countNodes,
1083
- h5 as createAssembly,
1078
+ h4 as createAssembly,
1084
1079
  i7 as createAssemblyNode,
1085
1080
  createBlueprint,
1086
1081
  Z as createCamera,
@@ -1089,13 +1084,13 @@ export {
1089
1084
  o as createEdge,
1090
1085
  u as createFace,
1091
1086
  a2 as createHandle,
1092
- j6 as createHistory,
1087
+ j5 as createHistory,
1093
1088
  b9 as createMeshCache,
1094
1089
  c5 as createNamedPlane,
1095
1090
  b2 as createOcHandle,
1096
1091
  createOperationRegistry,
1097
1092
  a7 as createPlane,
1098
- k6 as createRegistry,
1093
+ k5 as createRegistry,
1099
1094
  v2 as createShell,
1100
1095
  createSolid,
1101
1096
  createTaskQueue,
@@ -1113,9 +1108,9 @@ export {
1113
1108
  curve2dTangentAt,
1114
1109
  curveEndPoint,
1115
1110
  curveIsClosed,
1116
- h4 as curveIsPeriodic,
1111
+ y as curveIsPeriodic,
1117
1112
  curveLength,
1118
- i5 as curvePeriod,
1113
+ z2 as curvePeriod,
1119
1114
  curvePointAt,
1120
1115
  curveStartPoint,
1121
1116
  curveTangentAt,
@@ -1129,14 +1124,14 @@ export {
1129
1124
  g9 as deserializeDrawing,
1130
1125
  fromBREP$1 as deserializeShape,
1131
1126
  d9 as downcast,
1132
- h6 as draw,
1127
+ h5 as draw,
1133
1128
  i9 as drawCircle,
1134
- j7 as drawEllipse,
1135
- k7 as drawFaceOutline,
1136
- l5 as drawParametricFunction,
1137
- m5 as drawPointsInterpolation,
1138
- n5 as drawPolysides,
1139
- o6 as drawProjection,
1129
+ j6 as drawEllipse,
1130
+ k6 as drawFaceOutline,
1131
+ l4 as drawParametricFunction,
1132
+ m4 as drawPointsInterpolation,
1133
+ n4 as drawPolysides,
1134
+ o5 as drawProjection,
1140
1135
  p3 as drawRectangle,
1141
1136
  q3 as drawRoundedRectangle,
1142
1137
  r6 as drawSingleCircle,
@@ -1145,9 +1140,9 @@ export {
1145
1140
  u3 as drawingChamfer,
1146
1141
  v5 as drawingCut,
1147
1142
  w5 as drawingFillet,
1148
- x3 as drawingFuse,
1149
- y2 as drawingIntersect,
1150
- z3 as drawingToSketchOnPlane,
1143
+ x4 as drawingFuse,
1144
+ y3 as drawingIntersect,
1145
+ z4 as drawingToSketchOnPlane,
1151
1146
  drill,
1152
1147
  edgeFinder,
1153
1148
  e5 as edgesOfFace,
@@ -1156,7 +1151,7 @@ export {
1156
1151
  ellipsoid,
1157
1152
  enqueueTask,
1158
1153
  err,
1159
- m4 as exportAssemblySTEP,
1154
+ m3 as exportAssemblySTEP,
1160
1155
  exportDXF,
1161
1156
  exportGlb,
1162
1157
  exportGltf,
@@ -1174,12 +1169,12 @@ export {
1174
1169
  f8 as facesOfEdge,
1175
1170
  filledFace,
1176
1171
  fillet,
1177
- j4 as findCurveType,
1178
- n4 as findNode,
1179
- o4 as findStep,
1172
+ A as findCurveType,
1173
+ n3 as findNode,
1174
+ o3 as findStep,
1180
1175
  f2 as flatMap,
1181
1176
  d6 as flipFaceOrientation,
1182
- k5 as flipOrientation,
1177
+ B2 as flipOrientation,
1183
1178
  fromBREP,
1184
1179
  f as fromOcDir,
1185
1180
  h as fromOcPnt,
@@ -1190,17 +1185,17 @@ export {
1190
1185
  e3 as fuseBlueprints,
1191
1186
  x as gcWithObject,
1192
1187
  gcWithScope,
1193
- j5 as genericSweep,
1188
+ j4 as genericSweep,
1194
1189
  getBounds,
1195
1190
  getBounds2D,
1196
- l4 as getCurveType,
1191
+ C2 as getCurveType,
1197
1192
  getEdges,
1198
1193
  getFaces,
1199
1194
  _ as getFont,
1200
- g10 as getHashCode,
1195
+ g5 as getHashCode,
1201
1196
  p as getHistoryShape,
1202
1197
  getKernel,
1203
- m3 as getOrientation,
1198
+ D2 as getOrientation,
1204
1199
  getOrientation2D,
1205
1200
  g2 as getShapeKind,
1206
1201
  g8 as getSingleFace,
@@ -1209,8 +1204,8 @@ export {
1209
1204
  getWires,
1210
1205
  heal,
1211
1206
  d5 as healFace,
1212
- g11 as healSolid,
1213
- j8 as healWire,
1207
+ g10 as healSolid,
1208
+ j7 as healWire,
1214
1209
  helix,
1215
1210
  importIGES,
1216
1211
  importSTEP,
@@ -1219,18 +1214,18 @@ export {
1219
1214
  importSVGPathD,
1220
1215
  j as initFromOC,
1221
1216
  innerWires,
1222
- n3 as interpolateCurve,
1217
+ E as interpolateCurve,
1223
1218
  intersect,
1224
1219
  i8 as intersect2D,
1225
1220
  g7 as intersectBlueprints,
1226
1221
  i2 as ioError,
1227
1222
  isChamferRadius,
1228
- g14 as isCompSolid,
1223
+ g13 as isCompSolid,
1229
1224
  i3 as isCompound,
1230
1225
  isDisposeRequest,
1231
1226
  isEdge,
1232
1227
  isEmpty,
1233
- n6 as isEqualShape,
1228
+ F as isEqualShape,
1234
1229
  isErr,
1235
1230
  isErrorResponse,
1236
1231
  isFace,
@@ -1242,7 +1237,7 @@ export {
1242
1237
  isOperationRequest,
1243
1238
  $ as isProjectionPlane,
1244
1239
  isQueueEmpty,
1245
- i10 as isSameShape,
1240
+ i5 as isSameShape,
1246
1241
  f3 as isShape1D,
1247
1242
  isShape3D,
1248
1243
  j3 as isShell,
@@ -1251,11 +1246,11 @@ export {
1251
1246
  isValid,
1252
1247
  l2 as isVertex,
1253
1248
  isWire,
1254
- o7 as iterEdges,
1255
- p5 as iterFaces,
1249
+ G as iterEdges,
1250
+ H2 as iterFaces,
1256
1251
  iterTopo,
1257
- q4 as iterVertices,
1258
- u4 as iterWires,
1252
+ I as iterVertices,
1253
+ J as iterWires,
1259
1254
  kernelCall,
1260
1255
  kernelCallRaw,
1261
1256
  line,
@@ -1263,7 +1258,7 @@ export {
1263
1258
  a0 as loadFont,
1264
1259
  t3 as localGC,
1265
1260
  loft,
1266
- A2 as makeBaseBox,
1261
+ A3 as makeBaseBox,
1267
1262
  g4 as makePlane,
1268
1263
  a1 as makeProjectedEdges,
1269
1264
  m as map,
@@ -1272,9 +1267,9 @@ export {
1272
1267
  measureArea,
1273
1268
  e8 as measureCurvatureAt,
1274
1269
  f10 as measureCurvatureAtMid,
1275
- g13 as measureDistance,
1276
- h8 as measureLength,
1277
- i11 as measureLinearProps,
1270
+ g12 as measureDistance,
1271
+ h7 as measureLength,
1272
+ i10 as measureLinearProps,
1278
1273
  measureSurfaceProps,
1279
1274
  measureVolume,
1280
1275
  measureVolumeProps,
@@ -1282,7 +1277,7 @@ export {
1282
1277
  meshEdges,
1283
1278
  mirror,
1284
1279
  mirror2D,
1285
- B4 as mirrorDrawing,
1280
+ B5 as mirrorDrawing,
1286
1281
  mirrorJoin,
1287
1282
  q2 as modifyStep,
1288
1283
  k2 as moduleInitError,
@@ -1290,17 +1285,17 @@ export {
1290
1285
  occtError,
1291
1286
  offset,
1292
1287
  offsetFace,
1293
- o3 as offsetWire2D,
1288
+ K as offsetWire2D,
1294
1289
  ok,
1295
- o5 as organiseBlueprints,
1290
+ o4 as organiseBlueprints,
1296
1291
  outerWire,
1297
1292
  pendingCount,
1298
1293
  z as pipeline,
1299
1294
  p4 as pivotPlane,
1300
1295
  pocket,
1301
- p6 as pointOnSurface,
1296
+ p5 as pointOnSurface,
1302
1297
  polygon,
1303
- E2 as polysideInnerRadius,
1298
+ E3 as polysideInnerRadius,
1304
1299
  p2 as polysidesBlueprint,
1305
1300
  a22 as projectEdges,
1306
1301
  e6 as projectPointOnFace,
@@ -1312,7 +1307,7 @@ export {
1312
1307
  rejectAll,
1313
1308
  v4 as removeChild,
1314
1309
  w4 as replayFrom,
1315
- x2 as replayHistory,
1310
+ x3 as replayHistory,
1316
1311
  resolve,
1317
1312
  resolve3D,
1318
1313
  r as resolveDirection,
@@ -1322,11 +1317,11 @@ export {
1322
1317
  revolve,
1323
1318
  rotate,
1324
1319
  rotate2D,
1325
- F2 as rotateDrawing,
1320
+ F3 as rotateDrawing,
1326
1321
  r5 as roundedRectangleBlueprint,
1327
1322
  scale,
1328
1323
  scale2D,
1329
- G as scaleDrawing,
1324
+ G2 as scaleDrawing,
1330
1325
  section,
1331
1326
  sewShells,
1332
1327
  shape,
@@ -1336,10 +1331,10 @@ export {
1336
1331
  simplify,
1337
1332
  sketch2DOnFace,
1338
1333
  sketch2DOnPlane,
1339
- H2 as sketchCircle,
1340
- I as sketchEllipse,
1341
- J as sketchExtrude,
1342
- K as sketchFace,
1334
+ H3 as sketchCircle,
1335
+ I2 as sketchEllipse,
1336
+ J2 as sketchExtrude,
1337
+ K2 as sketchFace,
1343
1338
  L as sketchFaceOffset,
1344
1339
  M as sketchHelix,
1345
1340
  N as sketchLoft,
@@ -1356,11 +1351,11 @@ export {
1356
1351
  solid,
1357
1352
  sphere,
1358
1353
  split,
1359
- y as stepCount,
1360
- z2 as stepsFrom,
1354
+ y2 as stepCount,
1355
+ z3 as stepsFrom,
1361
1356
  stretch2D,
1362
1357
  subFace,
1363
- A as supportExtrude,
1358
+ A2 as supportExtrude,
1364
1359
  sweep,
1365
1360
  tangentArc,
1366
1361
  a42 as textBlueprints,
@@ -1368,8 +1363,8 @@ export {
1368
1363
  threePointArc,
1369
1364
  toBREP,
1370
1365
  t7 as toBufferGeometryData,
1371
- k8 as toGroupedBufferGeometryData,
1372
- l6 as toLineGeometryData,
1366
+ k7 as toGroupedBufferGeometryData,
1367
+ l5 as toLineGeometryData,
1373
1368
  c as toOcVec,
1374
1369
  toSVGPathD,
1375
1370
  t as toVec2,
@@ -1381,16 +1376,16 @@ export {
1381
1376
  t6 as translatePlane,
1382
1377
  t2 as tryCatch,
1383
1378
  n as tryCatchAsync,
1384
- B2 as twistExtrude,
1379
+ B3 as twistExtrude,
1385
1380
  typeCastError,
1386
- C2 as undoLast,
1381
+ C3 as undoLast,
1387
1382
  unwrap,
1388
1383
  r2 as unwrapErr,
1389
1384
  v as unwrapOr,
1390
1385
  w2 as unwrapOrElse,
1391
- D2 as updateNode,
1392
- u5 as uvBounds,
1393
- h7 as uvCoordinates,
1386
+ D3 as updateNode,
1387
+ u4 as uvBounds,
1388
+ h6 as uvCoordinates,
1394
1389
  validationError,
1395
1390
  v3 as vecAdd,
1396
1391
  a3 as vecAngle,
@@ -1412,7 +1407,7 @@ export {
1412
1407
  vertexFinder,
1413
1408
  vertexPosition,
1414
1409
  v6 as verticesOfEdge,
1415
- E as walkAssembly,
1410
+ E2 as walkAssembly,
1416
1411
  wire,
1417
1412
  wireFinder,
1418
1413
  w6 as wiresOfFace,
@@ -1,5 +1,5 @@
1
- import { c as castShape, h as isShape3D$1, m as isWire$1 } from "./shapeTypes-C9sUsmEW.js";
2
- import { g as getKernel } from "./occtBoundary-CqXvDhZY.js";
1
+ import { c as castShape, h as isShape3D$1, m as isWire$1 } from "./shapeTypes-i7VwMRwc.js";
2
+ import { g as getKernel } from "./occtBoundary-DYsksDtE.js";
3
3
  import { e as err, p as typeCastError, l as ok, a as andThen } from "./errors-wGhcJMpB.js";
4
4
  let _topoMap = null;
5
5
  const asTopo = (entity) => {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const shapeTypes = require("./shapeTypes-BJ3Hmskg.cjs");
3
- const occtBoundary = require("./occtBoundary-6kQSl3cF.cjs");
2
+ const shapeTypes = require("./shapeTypes-b_lhwQB7.cjs");
3
+ const occtBoundary = require("./occtBoundary-DHtzU4tz.cjs");
4
4
  const errors = require("./errors-DK1VAdP4.cjs");
5
5
  let _topoMap = null;
6
6
  const asTopo = (entity) => {
package/dist/core.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const occtBoundary = require("./occtBoundary-6kQSl3cF.cjs");
3
+ const occtBoundary = require("./occtBoundary-DHtzU4tz.cjs");
4
4
  const vecOps = require("./vecOps-CjRL1jau.cjs");
5
5
  const errors = require("./errors-DK1VAdP4.cjs");
6
- const vectors = require("./vectors-DK2hEKcI.cjs");
7
- const shapeTypes = require("./shapeTypes-BJ3Hmskg.cjs");
6
+ const vectors = require("./vectors-aQBZK0Sb.cjs");
7
+ const shapeTypes = require("./shapeTypes-b_lhwQB7.cjs");
8
8
  const result = require("./result.cjs");
9
9
  exports.resolveDirection = occtBoundary.resolveDirection;
10
10
  exports.toVec2 = occtBoundary.toVec2;
package/dist/core.js CHANGED
@@ -1,8 +1,8 @@
1
- import { r, t, a } from "./occtBoundary-CqXvDhZY.js";
1
+ import { r, t, a } from "./occtBoundary-DYsksDtE.js";
2
2
  import { D, H, R, v, a as a2, b, c, d, e, f, g, h, i, j, k, l, m, n, o } from "./vecOps-ZDdZWbwT.js";
3
3
  import { O, a as a3, c as c2, b as b2, e as e2, f as f2, i as i2, d as d2, g as g2, m as m2, h as h2, j as j2, k as k2, o as o2, l as l2, q, s, t as t2, n as n2, p, u, r as r2, v as v2, w, x } from "./errors-wGhcJMpB.js";
4
- import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-BVgXsYWl.js";
5
- import { D as D2, c as c4, a as a5, b as b3, g as g3, i as i3, d as d3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, w as w2 } from "./shapeTypes-C9sUsmEW.js";
4
+ import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-DWLjb9-P.js";
5
+ import { D as D2, c as c4, a as a5, b as b3, g as g3, i as i3, d as d3, e as e3, f as f3, h as h3, j as j3, k as k3, l as l3, m as m3, w as w2 } from "./shapeTypes-i7VwMRwc.js";
6
6
  import { BrepBugError, bug } from "./result.js";
7
7
  export {
8
8
  BrepBugError,
@@ -1,4 +1,4 @@
1
- import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-jku2V1DY.js";
1
+ import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-BCWmNSKh.js";
2
2
  import { D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
3
3
  const PI_2 = 2 * Math.PI;
4
4
  function positiveHalfAngle(angle) {
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- const helpers = require("./helpers-Ck8GJ58k.cjs");
2
+ const helpers = require("./helpers-DwmieP38.cjs");
3
3
  const vecOps = require("./vecOps-CjRL1jau.cjs");
4
4
  const PI_2 = 2 * Math.PI;
5
5
  function positiveHalfAngle(angle) {
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const occtBoundary = require("./occtBoundary-6kQSl3cF.cjs");
3
- const shapeTypes = require("./shapeTypes-BJ3Hmskg.cjs");
2
+ const occtBoundary = require("./occtBoundary-DHtzU4tz.cjs");
3
+ const shapeTypes = require("./shapeTypes-b_lhwQB7.cjs");
4
4
  const errors = require("./errors-DK1VAdP4.cjs");
5
5
  function makeLine(v1, v2) {
6
6
  const oc = occtBoundary.getKernel().oc;
@@ -1,5 +1,5 @@
1
- import { g as getKernel, b as toOcPnt, c as toOcVec, m as makeOcAx2, d as makeOcAx3 } from "./occtBoundary-CqXvDhZY.js";
2
- import { d as isEdge, m as isWire, n as createWire, o as createEdge, p as gcWithScope } from "./shapeTypes-C9sUsmEW.js";
1
+ import { g as getKernel, b as toOcPnt, c as toOcVec, m as makeOcAx2, d as makeOcAx3 } from "./occtBoundary-DYsksDtE.js";
2
+ import { d as isEdge, m as isWire, n as createWire, o as createEdge, p as gcWithScope } from "./shapeTypes-i7VwMRwc.js";
3
3
  import { e as err, o as occtError, l as ok, x as validationError } from "./errors-wGhcJMpB.js";
4
4
  function makeLine(v1, v2) {
5
5
  const oc = getKernel().oc;