brepjs 8.0.2 → 8.0.3

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 (66) hide show
  1. package/dist/2d.cjs +2 -2
  2. package/dist/2d.js +3 -3
  3. package/dist/{Blueprint-B9fhnpFp.js → Blueprint-DnAO3gr5.js} +8 -9
  4. package/dist/{Blueprint-VGbo3izk.cjs → Blueprint-FxmMji4s.cjs} +9 -10
  5. package/dist/{boolean2D-_WiqPxWZ.js → boolean2D-BnZKKBWU.js} +10 -10
  6. package/dist/{boolean2D-B1XrGVgx.cjs → boolean2D-BrjHZfWn.cjs} +10 -10
  7. package/dist/{booleanFns-CkccZ7UL.js → booleanFns-Ct3wDnhc.js} +3 -3
  8. package/dist/{booleanFns-BxW-N3rP.cjs → booleanFns-ND7sZvhu.cjs} +3 -3
  9. package/dist/brepjs.cjs +63 -64
  10. package/dist/brepjs.js +111 -113
  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-89obDwGi.js} +1 -1
  16. package/dist/{cornerFinder-BndBNtJE.cjs → cornerFinder-BKsCkrXd.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-D2eDcf4k.cjs → drawFns-C-MCkYj6.cjs} +15 -16
  22. package/dist/{drawFns-Btmlh_Oz.js → drawFns-DJV-nOox.js} +12 -13
  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-Ck8GJ58k.cjs → helpers--iZxPeJg.cjs} +9 -9
  26. package/dist/{helpers-jku2V1DY.js → helpers-CRx_ks-u.js} +6 -6
  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-B8FHVC22.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.cjs +5 -5
  48. package/dist/query.js +6 -6
  49. package/dist/{shapeTypes-BJ3Hmskg.cjs → shapeTypes-b_lhwQB7.cjs} +1 -1
  50. package/dist/{shapeTypes-C9sUsmEW.js → shapeTypes-i7VwMRwc.js} +1 -1
  51. package/dist/sketching.cjs +2 -2
  52. package/dist/sketching.js +2 -2
  53. package/dist/topology/meshFns.d.ts.map +1 -1
  54. package/dist/{topology-CtfUZwLR.js → topology-Bh-aPIxA.js} +7 -8
  55. package/dist/{topology-DXq8dLsi.cjs → topology-ByOn_z3E.cjs} +12 -13
  56. package/dist/topology.cjs +33 -34
  57. package/dist/topology.js +50 -51
  58. package/dist/{vectors-BVgXsYWl.js → vectors-DWLjb9-P.js} +1 -1
  59. package/dist/{vectors-DK2hEKcI.cjs → vectors-aQBZK0Sb.cjs} +1 -1
  60. package/dist/vectors.cjs +2 -2
  61. package/dist/vectors.js +2 -2
  62. package/package.json +1 -1
  63. package/dist/curveFns-BrJDkaWi.cjs +0 -177
  64. package/dist/curveFns-BshHA9Ys.js +0 -178
  65. package/dist/shapeFns-DQtpzndX.js +0 -203
  66. 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-DnAO3gr5.js";
10
+ import { B, e as e2, C, f as f4, g as g4 } from "./Blueprint-DnAO3gr5.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-B8FHVC22.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-B8FHVC22.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-BnZKKBWU.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-CRx_ks-u.js";
20
+ import { g as g8 } from "./helpers-CRx_ks-u.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-DJV-nOox.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-Bh-aPIxA.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-Bh-aPIxA.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 cutAll, e as fuseAll } from "./booleanFns-Ct3wDnhc.js";
31
+ import { g as g11 } from "./booleanFns-Ct3wDnhc.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-89obDwGi.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;
@@ -1016,7 +1014,7 @@ function shape(s5) {
1016
1014
  throw new Error("shape() requires a Sketch or branded shape type");
1017
1015
  }
1018
1016
  export {
1019
- B3 as BaseSketcher2d,
1017
+ B4 as BaseSketcher2d,
1020
1018
  B as Blueprint,
1021
1019
  a5 as BlueprintSketcher,
1022
1020
  b5 as Blueprints,
@@ -1024,14 +1022,14 @@ export {
1024
1022
  BrepBugError,
1025
1023
  BrepErrorCode,
1026
1024
  BrepWrapperError,
1027
- C3 as CompoundBlueprint,
1028
- C4 as CompoundSketch,
1025
+ C4 as CompoundBlueprint,
1026
+ C5 as CompoundSketch,
1029
1027
  C as Curve2D,
1030
1028
  DEG2RAD,
1031
1029
  D as DisposalScope,
1032
- D3 as Drawing,
1030
+ D4 as Drawing,
1033
1031
  a6 as DrawingPen,
1034
- F as FaceSketcher,
1032
+ F2 as FaceSketcher,
1035
1033
  H as HASH_CODE_MAX,
1036
1034
  O as OK,
1037
1035
  R as RAD2DEG,
@@ -1043,8 +1041,8 @@ export {
1043
1041
  b4 as addStep,
1044
1042
  a8 as adjacentFaces,
1045
1043
  a as andThen,
1046
- g12 as applyGlue,
1047
- g5 as approximateCurve,
1044
+ g11 as applyGlue,
1045
+ x2 as approximateCurve,
1048
1046
  e9 as asTopo,
1049
1047
  b7 as autoHeal,
1050
1048
  f4 as axis2d,
@@ -1080,7 +1078,7 @@ export {
1080
1078
  cone,
1081
1079
  c9 as cornerFinder,
1082
1080
  g6 as countNodes,
1083
- h5 as createAssembly,
1081
+ h4 as createAssembly,
1084
1082
  i7 as createAssemblyNode,
1085
1083
  createBlueprint,
1086
1084
  Z as createCamera,
@@ -1089,13 +1087,13 @@ export {
1089
1087
  o as createEdge,
1090
1088
  u as createFace,
1091
1089
  a2 as createHandle,
1092
- j6 as createHistory,
1090
+ j5 as createHistory,
1093
1091
  b9 as createMeshCache,
1094
1092
  c5 as createNamedPlane,
1095
1093
  b2 as createOcHandle,
1096
1094
  createOperationRegistry,
1097
1095
  a7 as createPlane,
1098
- k6 as createRegistry,
1096
+ k5 as createRegistry,
1099
1097
  v2 as createShell,
1100
1098
  createSolid,
1101
1099
  createTaskQueue,
@@ -1113,9 +1111,9 @@ export {
1113
1111
  curve2dTangentAt,
1114
1112
  curveEndPoint,
1115
1113
  curveIsClosed,
1116
- h4 as curveIsPeriodic,
1114
+ y as curveIsPeriodic,
1117
1115
  curveLength,
1118
- i5 as curvePeriod,
1116
+ z2 as curvePeriod,
1119
1117
  curvePointAt,
1120
1118
  curveStartPoint,
1121
1119
  curveTangentAt,
@@ -1129,14 +1127,14 @@ export {
1129
1127
  g9 as deserializeDrawing,
1130
1128
  fromBREP$1 as deserializeShape,
1131
1129
  d9 as downcast,
1132
- h6 as draw,
1130
+ h5 as draw,
1133
1131
  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,
1132
+ j6 as drawEllipse,
1133
+ k6 as drawFaceOutline,
1134
+ l4 as drawParametricFunction,
1135
+ m4 as drawPointsInterpolation,
1136
+ n4 as drawPolysides,
1137
+ o5 as drawProjection,
1140
1138
  p3 as drawRectangle,
1141
1139
  q3 as drawRoundedRectangle,
1142
1140
  r6 as drawSingleCircle,
@@ -1145,9 +1143,9 @@ export {
1145
1143
  u3 as drawingChamfer,
1146
1144
  v5 as drawingCut,
1147
1145
  w5 as drawingFillet,
1148
- x3 as drawingFuse,
1149
- y2 as drawingIntersect,
1150
- z3 as drawingToSketchOnPlane,
1146
+ x4 as drawingFuse,
1147
+ y3 as drawingIntersect,
1148
+ z4 as drawingToSketchOnPlane,
1151
1149
  drill,
1152
1150
  edgeFinder,
1153
1151
  e5 as edgesOfFace,
@@ -1156,7 +1154,7 @@ export {
1156
1154
  ellipsoid,
1157
1155
  enqueueTask,
1158
1156
  err,
1159
- m4 as exportAssemblySTEP,
1157
+ m3 as exportAssemblySTEP,
1160
1158
  exportDXF,
1161
1159
  exportGlb,
1162
1160
  exportGltf,
@@ -1174,12 +1172,12 @@ export {
1174
1172
  f8 as facesOfEdge,
1175
1173
  filledFace,
1176
1174
  fillet,
1177
- j4 as findCurveType,
1178
- n4 as findNode,
1179
- o4 as findStep,
1175
+ A as findCurveType,
1176
+ n3 as findNode,
1177
+ o3 as findStep,
1180
1178
  f2 as flatMap,
1181
1179
  d6 as flipFaceOrientation,
1182
- k5 as flipOrientation,
1180
+ B2 as flipOrientation,
1183
1181
  fromBREP,
1184
1182
  f as fromOcDir,
1185
1183
  h as fromOcPnt,
@@ -1190,17 +1188,17 @@ export {
1190
1188
  e3 as fuseBlueprints,
1191
1189
  x as gcWithObject,
1192
1190
  gcWithScope,
1193
- j5 as genericSweep,
1191
+ j4 as genericSweep,
1194
1192
  getBounds,
1195
1193
  getBounds2D,
1196
- l4 as getCurveType,
1194
+ C2 as getCurveType,
1197
1195
  getEdges,
1198
1196
  getFaces,
1199
1197
  _ as getFont,
1200
- g10 as getHashCode,
1198
+ g5 as getHashCode,
1201
1199
  p as getHistoryShape,
1202
1200
  getKernel,
1203
- m3 as getOrientation,
1201
+ D2 as getOrientation,
1204
1202
  getOrientation2D,
1205
1203
  g2 as getShapeKind,
1206
1204
  g8 as getSingleFace,
@@ -1209,8 +1207,8 @@ export {
1209
1207
  getWires,
1210
1208
  heal,
1211
1209
  d5 as healFace,
1212
- g11 as healSolid,
1213
- j8 as healWire,
1210
+ g10 as healSolid,
1211
+ j7 as healWire,
1214
1212
  helix,
1215
1213
  importIGES,
1216
1214
  importSTEP,
@@ -1219,18 +1217,18 @@ export {
1219
1217
  importSVGPathD,
1220
1218
  j as initFromOC,
1221
1219
  innerWires,
1222
- n3 as interpolateCurve,
1220
+ E as interpolateCurve,
1223
1221
  intersect,
1224
1222
  i8 as intersect2D,
1225
1223
  g7 as intersectBlueprints,
1226
1224
  i2 as ioError,
1227
1225
  isChamferRadius,
1228
- g14 as isCompSolid,
1226
+ g13 as isCompSolid,
1229
1227
  i3 as isCompound,
1230
1228
  isDisposeRequest,
1231
1229
  isEdge,
1232
1230
  isEmpty,
1233
- n6 as isEqualShape,
1231
+ F as isEqualShape,
1234
1232
  isErr,
1235
1233
  isErrorResponse,
1236
1234
  isFace,
@@ -1242,7 +1240,7 @@ export {
1242
1240
  isOperationRequest,
1243
1241
  $ as isProjectionPlane,
1244
1242
  isQueueEmpty,
1245
- i10 as isSameShape,
1243
+ i5 as isSameShape,
1246
1244
  f3 as isShape1D,
1247
1245
  isShape3D,
1248
1246
  j3 as isShell,
@@ -1251,11 +1249,11 @@ export {
1251
1249
  isValid,
1252
1250
  l2 as isVertex,
1253
1251
  isWire,
1254
- o7 as iterEdges,
1255
- p5 as iterFaces,
1252
+ G as iterEdges,
1253
+ H2 as iterFaces,
1256
1254
  iterTopo,
1257
- q4 as iterVertices,
1258
- u4 as iterWires,
1255
+ I as iterVertices,
1256
+ J as iterWires,
1259
1257
  kernelCall,
1260
1258
  kernelCallRaw,
1261
1259
  line,
@@ -1263,7 +1261,7 @@ export {
1263
1261
  a0 as loadFont,
1264
1262
  t3 as localGC,
1265
1263
  loft,
1266
- A2 as makeBaseBox,
1264
+ A3 as makeBaseBox,
1267
1265
  g4 as makePlane,
1268
1266
  a1 as makeProjectedEdges,
1269
1267
  m as map,
@@ -1272,9 +1270,9 @@ export {
1272
1270
  measureArea,
1273
1271
  e8 as measureCurvatureAt,
1274
1272
  f10 as measureCurvatureAtMid,
1275
- g13 as measureDistance,
1276
- h8 as measureLength,
1277
- i11 as measureLinearProps,
1273
+ g12 as measureDistance,
1274
+ h7 as measureLength,
1275
+ i10 as measureLinearProps,
1278
1276
  measureSurfaceProps,
1279
1277
  measureVolume,
1280
1278
  measureVolumeProps,
@@ -1282,7 +1280,7 @@ export {
1282
1280
  meshEdges,
1283
1281
  mirror,
1284
1282
  mirror2D,
1285
- B4 as mirrorDrawing,
1283
+ B5 as mirrorDrawing,
1286
1284
  mirrorJoin,
1287
1285
  q2 as modifyStep,
1288
1286
  k2 as moduleInitError,
@@ -1290,17 +1288,17 @@ export {
1290
1288
  occtError,
1291
1289
  offset,
1292
1290
  offsetFace,
1293
- o3 as offsetWire2D,
1291
+ K as offsetWire2D,
1294
1292
  ok,
1295
- o5 as organiseBlueprints,
1293
+ o4 as organiseBlueprints,
1296
1294
  outerWire,
1297
1295
  pendingCount,
1298
1296
  z as pipeline,
1299
1297
  p4 as pivotPlane,
1300
1298
  pocket,
1301
- p6 as pointOnSurface,
1299
+ p5 as pointOnSurface,
1302
1300
  polygon,
1303
- E2 as polysideInnerRadius,
1301
+ E3 as polysideInnerRadius,
1304
1302
  p2 as polysidesBlueprint,
1305
1303
  a22 as projectEdges,
1306
1304
  e6 as projectPointOnFace,
@@ -1312,7 +1310,7 @@ export {
1312
1310
  rejectAll,
1313
1311
  v4 as removeChild,
1314
1312
  w4 as replayFrom,
1315
- x2 as replayHistory,
1313
+ x3 as replayHistory,
1316
1314
  resolve,
1317
1315
  resolve3D,
1318
1316
  r as resolveDirection,
@@ -1322,11 +1320,11 @@ export {
1322
1320
  revolve,
1323
1321
  rotate,
1324
1322
  rotate2D,
1325
- F2 as rotateDrawing,
1323
+ F3 as rotateDrawing,
1326
1324
  r5 as roundedRectangleBlueprint,
1327
1325
  scale,
1328
1326
  scale2D,
1329
- G as scaleDrawing,
1327
+ G2 as scaleDrawing,
1330
1328
  section,
1331
1329
  sewShells,
1332
1330
  shape,
@@ -1336,10 +1334,10 @@ export {
1336
1334
  simplify,
1337
1335
  sketch2DOnFace,
1338
1336
  sketch2DOnPlane,
1339
- H2 as sketchCircle,
1340
- I as sketchEllipse,
1341
- J as sketchExtrude,
1342
- K as sketchFace,
1337
+ H3 as sketchCircle,
1338
+ I2 as sketchEllipse,
1339
+ J2 as sketchExtrude,
1340
+ K2 as sketchFace,
1343
1341
  L as sketchFaceOffset,
1344
1342
  M as sketchHelix,
1345
1343
  N as sketchLoft,
@@ -1356,11 +1354,11 @@ export {
1356
1354
  solid,
1357
1355
  sphere,
1358
1356
  split,
1359
- y as stepCount,
1360
- z2 as stepsFrom,
1357
+ y2 as stepCount,
1358
+ z3 as stepsFrom,
1361
1359
  stretch2D,
1362
1360
  subFace,
1363
- A as supportExtrude,
1361
+ A2 as supportExtrude,
1364
1362
  sweep,
1365
1363
  tangentArc,
1366
1364
  a42 as textBlueprints,
@@ -1368,8 +1366,8 @@ export {
1368
1366
  threePointArc,
1369
1367
  toBREP,
1370
1368
  t7 as toBufferGeometryData,
1371
- k8 as toGroupedBufferGeometryData,
1372
- l6 as toLineGeometryData,
1369
+ k7 as toGroupedBufferGeometryData,
1370
+ l5 as toLineGeometryData,
1373
1371
  c as toOcVec,
1374
1372
  toSVGPathD,
1375
1373
  t as toVec2,
@@ -1381,16 +1379,16 @@ export {
1381
1379
  t6 as translatePlane,
1382
1380
  t2 as tryCatch,
1383
1381
  n as tryCatchAsync,
1384
- B2 as twistExtrude,
1382
+ B3 as twistExtrude,
1385
1383
  typeCastError,
1386
- C2 as undoLast,
1384
+ C3 as undoLast,
1387
1385
  unwrap,
1388
1386
  r2 as unwrapErr,
1389
1387
  v as unwrapOr,
1390
1388
  w2 as unwrapOrElse,
1391
- D2 as updateNode,
1392
- u5 as uvBounds,
1393
- h7 as uvCoordinates,
1389
+ D3 as updateNode,
1390
+ u4 as uvBounds,
1391
+ h6 as uvCoordinates,
1394
1392
  validationError,
1395
1393
  v3 as vecAdd,
1396
1394
  a3 as vecAngle,
@@ -1412,7 +1410,7 @@ export {
1412
1410
  vertexFinder,
1413
1411
  vertexPosition,
1414
1412
  v6 as verticesOfEdge,
1415
- E as walkAssembly,
1413
+ E2 as walkAssembly,
1416
1414
  wire,
1417
1415
  wireFinder,
1418
1416
  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-CRx_ks-u.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--iZxPeJg.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;