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.
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +3 -3
- package/dist/{Blueprint-B9fhnpFp.js → Blueprint-2_aAKNQR.js} +8 -9
- package/dist/{Blueprint-VGbo3izk.cjs → Blueprint-DLrTLXzX.cjs} +9 -10
- package/dist/{boolean2D-B1XrGVgx.cjs → boolean2D-DeFQSg1m.cjs} +10 -10
- package/dist/{boolean2D-_WiqPxWZ.js → boolean2D-XbuOXTHG.js} +10 -10
- package/dist/{booleanFns-CkccZ7UL.js → booleanFns-DGMIgJl_.js} +5 -5
- package/dist/{booleanFns-BxW-N3rP.cjs → booleanFns-ND7sZvhu.cjs} +3 -3
- package/dist/brepjs.cjs +65 -69
- package/dist/brepjs.js +114 -119
- 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-D52Bk6bt.js} +1 -1
- package/dist/{cornerFinder-BndBNtJE.cjs → cornerFinder-DhbwiYQK.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-Btmlh_Oz.js → drawFns-CqfB685D.js} +12 -13
- package/dist/{drawFns-D2eDcf4k.cjs → drawFns-DJIg_iZh.cjs} +15 -16
- package/dist/{faceFns-DDzCECn3.js → faceFns-CyokaCDr.js} +3 -3
- package/dist/{faceFns-NDRFeekj.cjs → faceFns-DcSCjDG0.cjs} +3 -3
- package/dist/{helpers-jku2V1DY.js → helpers-BCWmNSKh.js} +14 -14
- package/dist/{helpers-Ck8GJ58k.cjs → helpers-DwmieP38.cjs} +17 -17
- 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-BtwU1X9p.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/shapeDistanceFilter.d.ts.map +1 -1
- 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/adjacencyFns.d.ts.map +1 -1
- package/dist/topology/compoundOpsFns.d.ts.map +1 -1
- package/dist/topology/meshFns.d.ts.map +1 -1
- package/dist/{topology-CtfUZwLR.js → topology-DXDdiKaF.js} +39 -18
- package/dist/{topology-DXq8dLsi.cjs → topology-uexRi0i6.cjs} +44 -23
- package/dist/topology.cjs +33 -34
- package/dist/topology.js +52 -53
- 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-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-
|
|
20
|
-
import { g as g8 } from "./helpers-
|
|
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
|
|
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-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-
|
|
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
|
|
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;
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
1028
|
-
|
|
1022
|
+
C4 as CompoundBlueprint,
|
|
1023
|
+
C5 as CompoundSketch,
|
|
1029
1024
|
C as Curve2D,
|
|
1030
1025
|
DEG2RAD,
|
|
1031
1026
|
D as DisposalScope,
|
|
1032
|
-
|
|
1027
|
+
D4 as Drawing,
|
|
1033
1028
|
a6 as DrawingPen,
|
|
1034
|
-
|
|
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
|
-
|
|
1047
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1111
|
+
y as curveIsPeriodic,
|
|
1117
1112
|
curveLength,
|
|
1118
|
-
|
|
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
|
-
|
|
1127
|
+
h5 as draw,
|
|
1133
1128
|
i9 as drawCircle,
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
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
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1172
|
+
A as findCurveType,
|
|
1173
|
+
n3 as findNode,
|
|
1174
|
+
o3 as findStep,
|
|
1180
1175
|
f2 as flatMap,
|
|
1181
1176
|
d6 as flipFaceOrientation,
|
|
1182
|
-
|
|
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
|
-
|
|
1188
|
+
j4 as genericSweep,
|
|
1194
1189
|
getBounds,
|
|
1195
1190
|
getBounds2D,
|
|
1196
|
-
|
|
1191
|
+
C2 as getCurveType,
|
|
1197
1192
|
getEdges,
|
|
1198
1193
|
getFaces,
|
|
1199
1194
|
_ as getFont,
|
|
1200
|
-
|
|
1195
|
+
g5 as getHashCode,
|
|
1201
1196
|
p as getHistoryShape,
|
|
1202
1197
|
getKernel,
|
|
1203
|
-
|
|
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
|
-
|
|
1213
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1223
|
+
g13 as isCompSolid,
|
|
1229
1224
|
i3 as isCompound,
|
|
1230
1225
|
isDisposeRequest,
|
|
1231
1226
|
isEdge,
|
|
1232
1227
|
isEmpty,
|
|
1233
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1255
|
-
|
|
1249
|
+
G as iterEdges,
|
|
1250
|
+
H2 as iterFaces,
|
|
1256
1251
|
iterTopo,
|
|
1257
|
-
|
|
1258
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1288
|
+
K as offsetWire2D,
|
|
1294
1289
|
ok,
|
|
1295
|
-
|
|
1290
|
+
o4 as organiseBlueprints,
|
|
1296
1291
|
outerWire,
|
|
1297
1292
|
pendingCount,
|
|
1298
1293
|
z as pipeline,
|
|
1299
1294
|
p4 as pivotPlane,
|
|
1300
1295
|
pocket,
|
|
1301
|
-
|
|
1296
|
+
p5 as pointOnSurface,
|
|
1302
1297
|
polygon,
|
|
1303
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1320
|
+
F3 as rotateDrawing,
|
|
1326
1321
|
r5 as roundedRectangleBlueprint,
|
|
1327
1322
|
scale,
|
|
1328
1323
|
scale2D,
|
|
1329
|
-
|
|
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
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
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
|
-
|
|
1360
|
-
|
|
1354
|
+
y2 as stepCount,
|
|
1355
|
+
z3 as stepsFrom,
|
|
1361
1356
|
stretch2D,
|
|
1362
1357
|
subFace,
|
|
1363
|
-
|
|
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
|
-
|
|
1372
|
-
|
|
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
|
-
|
|
1379
|
+
B3 as twistExtrude,
|
|
1385
1380
|
typeCastError,
|
|
1386
|
-
|
|
1381
|
+
C3 as undoLast,
|
|
1387
1382
|
unwrap,
|
|
1388
1383
|
r2 as unwrapErr,
|
|
1389
1384
|
v as unwrapOr,
|
|
1390
1385
|
w2 as unwrapOrElse,
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
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
|
-
|
|
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-
|
|
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-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,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;
|