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.
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-B9fhnpFp.js → Blueprint-DnAO3gr5.js} +8 -9
- package/dist/{Blueprint-VGbo3izk.cjs → Blueprint-FxmMji4s.cjs} +9 -10
- package/dist/{boolean2D-_WiqPxWZ.js → boolean2D-BnZKKBWU.js} +10 -10
- package/dist/{boolean2D-B1XrGVgx.cjs → boolean2D-BrjHZfWn.cjs} +10 -10
- package/dist/{booleanFns-CkccZ7UL.js → booleanFns-Ct3wDnhc.js} +3 -3
- package/dist/{booleanFns-BxW-N3rP.cjs → booleanFns-ND7sZvhu.cjs} +3 -3
- package/dist/brepjs.cjs +63 -64
- package/dist/brepjs.js +111 -113
- package/dist/{cast-C4Ff_1Qe.js → cast-BEg1mN7n.js} +2 -2
- package/dist/{cast-DIiyxDLo.cjs → cast-CqDc8oFW.cjs} +2 -2
- package/dist/core.cjs +3 -3
- package/dist/core.js +3 -3
- package/dist/{cornerFinder-DzGzfiqb.js → cornerFinder-89obDwGi.js} +1 -1
- package/dist/{cornerFinder-BndBNtJE.cjs → cornerFinder-BKsCkrXd.cjs} +1 -1
- package/dist/{curveBuilders-BUoFO1UG.cjs → curveBuilders-BjtdNw1B.cjs} +2 -2
- package/dist/{curveBuilders-CBlIWlbU.js → curveBuilders-U26XDfxg.js} +2 -2
- package/dist/curveFns-BoG_iA07.cjs +375 -0
- package/dist/curveFns-Cg99XKe2.js +376 -0
- package/dist/{drawFns-D2eDcf4k.cjs → drawFns-C-MCkYj6.cjs} +15 -16
- package/dist/{drawFns-Btmlh_Oz.js → drawFns-DJV-nOox.js} +12 -13
- package/dist/{faceFns-DDzCECn3.js → faceFns-CyokaCDr.js} +3 -3
- package/dist/{faceFns-NDRFeekj.cjs → faceFns-DcSCjDG0.cjs} +3 -3
- package/dist/{helpers-Ck8GJ58k.cjs → helpers--iZxPeJg.cjs} +9 -9
- package/dist/{helpers-jku2V1DY.js → helpers-CRx_ks-u.js} +6 -6
- package/dist/io.cjs +4 -4
- package/dist/io.js +4 -4
- package/dist/kernel/curveOps.d.ts.map +1 -1
- package/dist/kernel/meshOps.d.ts.map +1 -1
- package/dist/kernel/modifierOps.d.ts.map +1 -1
- package/dist/{loft-DJXwxV_L.cjs → loft-8asn63t4.cjs} +4 -4
- package/dist/{loft-Bk9EM0gZ.js → loft-jIkZRqHm.js} +4 -4
- package/dist/{measurement-DlXaTzKc.js → measurement-DWv8kK6J.js} +3 -3
- package/dist/{measurement-LcGh4wV0.cjs → measurement-lRLwaoqD.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-c8lDKfYy.cjs → meshFns-DWuLC3fk.cjs} +29 -9
- package/dist/{meshFns-Djzdn-CS.js → meshFns-DgAIL1B-.js} +29 -9
- package/dist/{occtBoundary-6kQSl3cF.cjs → occtBoundary-DHtzU4tz.cjs} +72 -61
- package/dist/{occtBoundary-CqXvDhZY.js → occtBoundary-DYsksDtE.js} +72 -61
- package/dist/operations/patternFns.d.ts.map +1 -1
- package/dist/{operations-CrQlFDHc.js → operations-B8FHVC22.js} +32 -10
- package/dist/{operations-Do-WZGXc.cjs → operations-CCFPvtd-.cjs} +32 -10
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query.cjs +5 -5
- package/dist/query.js +6 -6
- package/dist/{shapeTypes-BJ3Hmskg.cjs → shapeTypes-b_lhwQB7.cjs} +1 -1
- package/dist/{shapeTypes-C9sUsmEW.js → shapeTypes-i7VwMRwc.js} +1 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/topology/meshFns.d.ts.map +1 -1
- package/dist/{topology-CtfUZwLR.js → topology-Bh-aPIxA.js} +7 -8
- package/dist/{topology-DXq8dLsi.cjs → topology-ByOn_z3E.cjs} +12 -13
- package/dist/topology.cjs +33 -34
- package/dist/topology.js +50 -51
- package/dist/{vectors-BVgXsYWl.js → vectors-DWLjb9-P.js} +1 -1
- package/dist/{vectors-DK2hEKcI.cjs → vectors-aQBZK0Sb.cjs} +1 -1
- package/dist/vectors.cjs +2 -2
- package/dist/vectors.js +2 -2
- package/package.json +1 -1
- package/dist/curveFns-BrJDkaWi.cjs +0 -177
- package/dist/curveFns-BshHA9Ys.js +0 -178
- package/dist/shapeFns-DQtpzndX.js +0 -203
- 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-
|
|
2
|
-
import { f, h, i, j, r, c, t, w, k, l } from "./occtBoundary-
|
|
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-
|
|
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-
|
|
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-
|
|
10
|
-
import { B, e as e2, C, f as f4, g as g4 } from "./Blueprint-
|
|
11
|
-
import { c as curveIsClosed, a as
|
|
12
|
-
import {
|
|
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-
|
|
14
|
-
import { i as i6, j as
|
|
15
|
-
import { e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-
|
|
16
|
-
import { a as a4, b as b4, d as d2, f as f5, g as g6, h as
|
|
17
|
-
import { B as
|
|
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-
|
|
20
|
-
import { g as g8 } from "./helpers-
|
|
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
|
|
23
|
-
import { c as c5, a as a7, p as p4, r as r7, t as t6 } from "./vectors-
|
|
24
|
-
import {
|
|
25
|
-
import { g as g10,
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { c as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { g as g12 } from "./
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
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-
|
|
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
|
|
117
|
-
const d10 = vecDistance(vertexPosition(candidates[
|
|
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 =
|
|
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,
|
|
190
|
-
for (let
|
|
191
|
-
const result = unwrap(checkInterference(si, shapes[
|
|
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:
|
|
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
|
|
731
|
-
const f11 = faces[
|
|
732
|
-
const
|
|
733
|
-
if (
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
1028
|
-
|
|
1025
|
+
C4 as CompoundBlueprint,
|
|
1026
|
+
C5 as CompoundSketch,
|
|
1029
1027
|
C as Curve2D,
|
|
1030
1028
|
DEG2RAD,
|
|
1031
1029
|
D as DisposalScope,
|
|
1032
|
-
|
|
1030
|
+
D4 as Drawing,
|
|
1033
1031
|
a6 as DrawingPen,
|
|
1034
|
-
|
|
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
|
-
|
|
1047
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1114
|
+
y as curveIsPeriodic,
|
|
1117
1115
|
curveLength,
|
|
1118
|
-
|
|
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
|
-
|
|
1130
|
+
h5 as draw,
|
|
1133
1131
|
i9 as drawCircle,
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
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
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1175
|
+
A as findCurveType,
|
|
1176
|
+
n3 as findNode,
|
|
1177
|
+
o3 as findStep,
|
|
1180
1178
|
f2 as flatMap,
|
|
1181
1179
|
d6 as flipFaceOrientation,
|
|
1182
|
-
|
|
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
|
-
|
|
1191
|
+
j4 as genericSweep,
|
|
1194
1192
|
getBounds,
|
|
1195
1193
|
getBounds2D,
|
|
1196
|
-
|
|
1194
|
+
C2 as getCurveType,
|
|
1197
1195
|
getEdges,
|
|
1198
1196
|
getFaces,
|
|
1199
1197
|
_ as getFont,
|
|
1200
|
-
|
|
1198
|
+
g5 as getHashCode,
|
|
1201
1199
|
p as getHistoryShape,
|
|
1202
1200
|
getKernel,
|
|
1203
|
-
|
|
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
|
-
|
|
1213
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1226
|
+
g13 as isCompSolid,
|
|
1229
1227
|
i3 as isCompound,
|
|
1230
1228
|
isDisposeRequest,
|
|
1231
1229
|
isEdge,
|
|
1232
1230
|
isEmpty,
|
|
1233
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1255
|
-
|
|
1252
|
+
G as iterEdges,
|
|
1253
|
+
H2 as iterFaces,
|
|
1256
1254
|
iterTopo,
|
|
1257
|
-
|
|
1258
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1291
|
+
K as offsetWire2D,
|
|
1294
1292
|
ok,
|
|
1295
|
-
|
|
1293
|
+
o4 as organiseBlueprints,
|
|
1296
1294
|
outerWire,
|
|
1297
1295
|
pendingCount,
|
|
1298
1296
|
z as pipeline,
|
|
1299
1297
|
p4 as pivotPlane,
|
|
1300
1298
|
pocket,
|
|
1301
|
-
|
|
1299
|
+
p5 as pointOnSurface,
|
|
1302
1300
|
polygon,
|
|
1303
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1323
|
+
F3 as rotateDrawing,
|
|
1326
1324
|
r5 as roundedRectangleBlueprint,
|
|
1327
1325
|
scale,
|
|
1328
1326
|
scale2D,
|
|
1329
|
-
|
|
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
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
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
|
-
|
|
1360
|
-
|
|
1357
|
+
y2 as stepCount,
|
|
1358
|
+
z3 as stepsFrom,
|
|
1361
1359
|
stretch2D,
|
|
1362
1360
|
subFace,
|
|
1363
|
-
|
|
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
|
-
|
|
1372
|
-
|
|
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
|
-
|
|
1382
|
+
B3 as twistExtrude,
|
|
1385
1383
|
typeCastError,
|
|
1386
|
-
|
|
1384
|
+
C3 as undoLast,
|
|
1387
1385
|
unwrap,
|
|
1388
1386
|
r2 as unwrapErr,
|
|
1389
1387
|
v as unwrapOr,
|
|
1390
1388
|
w2 as unwrapOrElse,
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
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
|
-
|
|
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-
|
|
2
|
-
import { g as getKernel } from "./occtBoundary-
|
|
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-
|
|
3
|
-
const occtBoundary = require("./occtBoundary-
|
|
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-
|
|
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-
|
|
7
|
-
const shapeTypes = require("./shapeTypes-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const occtBoundary = require("./occtBoundary-
|
|
3
|
-
const shapeTypes = require("./shapeTypes-
|
|
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-
|
|
2
|
-
import { d as isEdge, m as isWire, n as createWire, o as createEdge, p as gcWithScope } from "./shapeTypes-
|
|
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;
|