brepjs 8.0.1 → 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/blueprints/booleanHelpers.d.ts +32 -0
- package/dist/2d/blueprints/booleanHelpers.d.ts.map +1 -0
- package/dist/2d/blueprints/booleanOperations.d.ts +5 -3
- package/dist/2d/blueprints/booleanOperations.d.ts.map +1 -1
- package/dist/2d/blueprints/intersectionSegments.d.ts +12 -0
- package/dist/2d/blueprints/intersectionSegments.d.ts.map +1 -0
- package/dist/2d/blueprints/segmentAssembly.d.ts +31 -0
- package/dist/2d/blueprints/segmentAssembly.d.ts.map +1 -0
- package/dist/2d.cjs +2 -2
- package/dist/2d.js +8 -8
- package/dist/{Blueprint-D3JfGJTz.js → Blueprint-DnAO3gr5.js} +116 -30
- package/dist/{Blueprint-CVctc41Z.cjs → Blueprint-FxmMji4s.cjs} +110 -24
- package/dist/{boolean2D-hOw5Qay5.js → boolean2D-BnZKKBWU.js} +391 -310
- package/dist/{boolean2D-BdZATaHs.cjs → boolean2D-BrjHZfWn.cjs} +426 -345
- package/dist/{booleanFns-CqehfzcK.js → booleanFns-Ct3wDnhc.js} +14 -18
- package/dist/{booleanFns-BBSVKhL2.cjs → booleanFns-ND7sZvhu.cjs} +12 -16
- package/dist/brepjs.cjs +171 -101
- package/dist/brepjs.js +315 -244
- package/dist/{cast-DQaUibmm.js → cast-BEg1mN7n.js} +2 -2
- package/dist/{cast-DkB0GKmQ.cjs → cast-CqDc8oFW.cjs} +2 -2
- package/dist/core/disposal.d.ts +1 -1
- package/dist/core/disposal.d.ts.map +1 -1
- package/dist/core.cjs +3 -3
- package/dist/core.js +3 -3
- package/dist/cornerFinder-89obDwGi.js +59 -0
- package/dist/cornerFinder-BKsCkrXd.cjs +58 -0
- package/dist/curveBuilders-BjtdNw1B.cjs +196 -0
- package/dist/curveBuilders-U26XDfxg.js +197 -0
- package/dist/curveFns-BoG_iA07.cjs +375 -0
- package/dist/curveFns-Cg99XKe2.js +376 -0
- package/dist/{drawFns-CUyx50gi.cjs → drawFns-C-MCkYj6.cjs} +60 -62
- package/dist/{drawFns-921SkhDL.js → drawFns-DJV-nOox.js} +12 -14
- package/dist/{faceFns-DHu-2JpA.js → faceFns-CyokaCDr.js} +3 -3
- package/dist/{faceFns-BwK7FP7N.cjs → faceFns-DcSCjDG0.cjs} +3 -3
- package/dist/helpers--iZxPeJg.cjs +203 -0
- package/dist/helpers-CRx_ks-u.js +204 -0
- 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/kernel/occtAdapter.d.ts +1 -0
- package/dist/kernel/occtAdapter.d.ts.map +1 -1
- package/dist/kernel/sweepOps.d.ts +8 -0
- package/dist/kernel/sweepOps.d.ts.map +1 -1
- package/dist/kernel/types.d.ts +1 -0
- package/dist/kernel/types.d.ts.map +1 -1
- package/dist/loft-8asn63t4.cjs +372 -0
- package/dist/loft-jIkZRqHm.js +373 -0
- package/dist/{measurement-C5JGCuUP.js → measurement-DWv8kK6J.js} +3 -3
- package/dist/{measurement-fxm_pW7x.cjs → measurement-lRLwaoqD.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-BhrZGi6w.cjs → meshFns-DWuLC3fk.cjs} +29 -9
- package/dist/{meshFns-AqAjTTVl.js → meshFns-DgAIL1B-.js} +29 -9
- package/dist/{occtBoundary-du8_ex-p.cjs → occtBoundary-DHtzU4tz.cjs} +93 -61
- package/dist/{occtBoundary-CwegMzqc.js → occtBoundary-DYsksDtE.js} +98 -66
- package/dist/operations/extrude.d.ts.map +1 -1
- package/dist/operations/extrudeFns.d.ts.map +1 -1
- package/dist/operations/extrudeUtils.d.ts +17 -0
- package/dist/operations/extrudeUtils.d.ts.map +1 -1
- package/dist/operations/patternFns.d.ts.map +1 -1
- package/dist/{operations-C1rWoba2.js → operations-B8FHVC22.js} +54 -9
- package/dist/{operations-BP1wVDw0.cjs → operations-CCFPvtd-.cjs} +54 -9
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +4 -4
- package/dist/query/cornerFinder.d.ts +48 -0
- package/dist/query/cornerFinder.d.ts.map +1 -0
- package/dist/query/directionUtils.d.ts +6 -0
- package/dist/query/directionUtils.d.ts.map +1 -0
- package/dist/query/edgeFinder.d.ts +15 -0
- package/dist/query/edgeFinder.d.ts.map +1 -0
- package/dist/query/faceFinder.d.ts +15 -0
- package/dist/query/faceFinder.d.ts.map +1 -0
- package/dist/query/finderCore.d.ts +35 -0
- package/dist/query/finderCore.d.ts.map +1 -0
- package/dist/query/finderFns.d.ts +21 -106
- package/dist/query/finderFns.d.ts.map +1 -1
- package/dist/query/shapeDistanceFilter.d.ts +11 -0
- package/dist/query/shapeDistanceFilter.d.ts.map +1 -0
- package/dist/query/vertexFinder.d.ts +16 -0
- package/dist/query/vertexFinder.d.ts.map +1 -0
- package/dist/query/wireFinder.d.ts +10 -0
- package/dist/query/wireFinder.d.ts.map +1 -0
- package/dist/query.cjs +42 -5
- package/dist/query.js +40 -2
- package/dist/{shapeTypes-DKhwEnUM.cjs → shapeTypes-b_lhwQB7.cjs} +24 -20
- package/dist/{shapeTypes-BlSElW8z.js → shapeTypes-i7VwMRwc.js} +32 -28
- package/dist/sketching/Sketcher.d.ts.map +1 -1
- package/dist/sketching/Sketcher2d.d.ts +12 -4
- package/dist/sketching/Sketcher2d.d.ts.map +1 -1
- package/dist/sketching/ellipseUtils.d.ts +29 -0
- package/dist/sketching/ellipseUtils.d.ts.map +1 -0
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/topology/booleanFns.d.ts.map +1 -1
- package/dist/topology/curveBuilders.d.ts +75 -0
- package/dist/topology/curveBuilders.d.ts.map +1 -0
- package/dist/topology/curveFns.d.ts.map +1 -1
- package/dist/topology/meshFns.d.ts.map +1 -1
- package/dist/topology/primitiveFns.d.ts.map +1 -1
- package/dist/topology/shapeFns.d.ts.map +1 -1
- package/dist/topology/shapeHelpers.d.ts +6 -173
- package/dist/topology/shapeHelpers.d.ts.map +1 -1
- package/dist/topology/shapeUtils.d.ts +13 -0
- package/dist/topology/shapeUtils.d.ts.map +1 -0
- package/dist/topology/solidBuilders.d.ts +70 -0
- package/dist/topology/solidBuilders.d.ts.map +1 -0
- package/dist/topology/surfaceBuilders.d.ts +35 -0
- package/dist/topology/surfaceBuilders.d.ts.map +1 -0
- package/dist/topology/wrapperFns.d.ts +1 -0
- package/dist/topology/wrapperFns.d.ts.map +1 -1
- package/dist/{topology-tFzqSrGH.js → topology-Bh-aPIxA.js} +7 -8
- package/dist/{topology-CIooytHH.cjs → topology-ByOn_z3E.cjs} +12 -13
- package/dist/topology.cjs +33 -34
- package/dist/topology.js +54 -55
- package/dist/{vectors-CBuaMeZv.js → vectors-DWLjb9-P.js} +1 -1
- package/dist/{vectors-ChWEZPwy.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-BilyYL_s.cjs +0 -190
- package/dist/curveFns-CdVE4da7.js +0 -191
- package/dist/loft-BzWFokmC.cjs +0 -178
- package/dist/loft-CtG5nMq5.js +0 -179
- package/dist/query-V6nV-VfL.js +0 -396
- package/dist/query-hMSmOWJP.cjs +0 -395
- package/dist/shapeFns-BrF97sKt.js +0 -204
- package/dist/shapeFns-BvOndshS.cjs +0 -203
- package/dist/shapeHelpers-B2SXz1p4.cjs +0 -488
- package/dist/shapeHelpers-BcoZf2N9.js +0 -489
package/dist/brepjs.js
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { g as getKernel,
|
|
2
|
-
import { f, h, i, j, r,
|
|
3
|
-
import { l as ok, y as translateOcctError, e as err, u as unwrap, x as validationError, B as BrepErrorCode, d as isErr, o as occtError, p as typeCastError } from "./errors-wGhcJMpB.js";
|
|
4
|
-
import { O, a, c
|
|
5
|
-
import { c as castShape,
|
|
6
|
-
import { D,
|
|
7
|
-
import { D as DEG2RAD, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
|
|
8
|
-
import { H, R, v as v3, a as a3, b as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
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
|
+
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
|
+
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-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
|
+
import { c as vecDistance, D as DEG2RAD, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
|
|
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-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";
|
|
16
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";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
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";
|
|
19
21
|
import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
|
|
20
|
-
import { C as
|
|
21
|
-
import { c as
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { c as c7,
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { e as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { e as e9, c as c9, d as d9, g as g13, i as i10, s as s5 } from "./cast-DQaUibmm.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";
|
|
37
|
+
import { edgeFinder } from "./query.js";
|
|
37
38
|
import { BrepBugError, bug } from "./result.js";
|
|
39
|
+
import { c as c9 } from "./cornerFinder-89obDwGi.js";
|
|
38
40
|
import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
|
|
39
41
|
const errorFactories = {
|
|
40
42
|
OCCT_OPERATION: (code, message, cause) => ({ kind: "OCCT_OPERATION", code, message, cause }),
|
|
@@ -82,6 +84,79 @@ function isFilletRadius(r8) {
|
|
|
82
84
|
}
|
|
83
85
|
return false;
|
|
84
86
|
}
|
|
87
|
+
function buildWireFinder(filters) {
|
|
88
|
+
return createTypedFinder(
|
|
89
|
+
"wire",
|
|
90
|
+
filters,
|
|
91
|
+
buildWireFinder,
|
|
92
|
+
(_base, withFilter) => ({
|
|
93
|
+
isClosed: () => withFilter((wire2) => curveIsClosed(wire2)),
|
|
94
|
+
isOpen: () => withFilter((wire2) => !curveIsClosed(wire2)),
|
|
95
|
+
ofEdgeCount: (count) => withFilter((wire2) => {
|
|
96
|
+
let edgeCount = 0;
|
|
97
|
+
for (const _raw of iterTopo(wire2.wrapped, "edge")) {
|
|
98
|
+
edgeCount++;
|
|
99
|
+
}
|
|
100
|
+
return edgeCount === count;
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
function wireFinder() {
|
|
106
|
+
return buildWireFinder([]);
|
|
107
|
+
}
|
|
108
|
+
function withNearestPostFilter(baseFinder, nearestPoint) {
|
|
109
|
+
const findAllNearest = (shape2) => {
|
|
110
|
+
const candidates = baseFinder.findAll(shape2);
|
|
111
|
+
if (candidates.length === 0) return [];
|
|
112
|
+
let bestIdx = 0;
|
|
113
|
+
let bestDist = vecDistance(vertexPosition(candidates[0]), nearestPoint);
|
|
114
|
+
for (let i11 = 1; i11 < candidates.length; i11++) {
|
|
115
|
+
const d10 = vecDistance(vertexPosition(candidates[i11]), nearestPoint);
|
|
116
|
+
if (d10 < bestDist) {
|
|
117
|
+
bestDist = d10;
|
|
118
|
+
bestIdx = i11;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
return [candidates[bestIdx]];
|
|
122
|
+
};
|
|
123
|
+
const findUniqueNearest = (shape2) => {
|
|
124
|
+
const nearest = findAllNearest(shape2);
|
|
125
|
+
if (nearest.length === 0) {
|
|
126
|
+
return err(
|
|
127
|
+
queryError("FINDER_NOT_UNIQUE", "Finder expected a unique match but found 0 element(s)")
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
return ok(nearest[0]);
|
|
131
|
+
};
|
|
132
|
+
return {
|
|
133
|
+
...baseFinder,
|
|
134
|
+
findAll: findAllNearest,
|
|
135
|
+
findUnique: findUniqueNearest
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function buildVertexFinder(filters) {
|
|
139
|
+
return createTypedFinder(
|
|
140
|
+
"vertex",
|
|
141
|
+
filters,
|
|
142
|
+
buildVertexFinder,
|
|
143
|
+
(_base, withFilter) => ({
|
|
144
|
+
nearestTo: (point) => withNearestPostFilter(buildVertexFinder(filters), point),
|
|
145
|
+
atPosition: (point, tolerance = 1e-4) => withFilter((vertex2) => vecDistance(vertexPosition(vertex2), point) < tolerance),
|
|
146
|
+
withinBox: (min, max) => withFilter((vertex2) => {
|
|
147
|
+
const pos = vertexPosition(vertex2);
|
|
148
|
+
return pos[0] >= min[0] - 1e-6 && pos[0] <= max[0] + 1e-6 && pos[1] >= min[1] - 1e-6 && pos[1] <= max[1] + 1e-6 && pos[2] >= min[2] - 1e-6 && pos[2] <= max[2] + 1e-6;
|
|
149
|
+
}),
|
|
150
|
+
atDistance: (distance, point = [0, 0, 0], tolerance = 1e-4) => withFilter((vertex2) => {
|
|
151
|
+
const pos = vertexPosition(vertex2);
|
|
152
|
+
return Math.abs(vecDistance(pos, point) - distance) < tolerance;
|
|
153
|
+
})
|
|
154
|
+
})
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
function vertexFinder() {
|
|
158
|
+
return buildVertexFinder([]);
|
|
159
|
+
}
|
|
85
160
|
function checkInterference(shape1, shape2, tolerance = 1e-6) {
|
|
86
161
|
if (shape1.wrapped.IsNull()) {
|
|
87
162
|
return err(
|
|
@@ -119,28 +194,23 @@ function checkAllInterferences(shapes, tolerance = 1e-6) {
|
|
|
119
194
|
});
|
|
120
195
|
return pairs;
|
|
121
196
|
}
|
|
122
|
-
function resolve(
|
|
123
|
-
if ("__wrapped" in
|
|
124
|
-
return
|
|
197
|
+
function resolve(s5) {
|
|
198
|
+
if ("__wrapped" in s5) {
|
|
199
|
+
return s5.val;
|
|
125
200
|
}
|
|
126
|
-
return
|
|
201
|
+
return s5;
|
|
127
202
|
}
|
|
128
|
-
function resolve3D(
|
|
129
|
-
return resolve(
|
|
203
|
+
function resolve3D(s5) {
|
|
204
|
+
return resolve(s5);
|
|
130
205
|
}
|
|
131
206
|
function box(width, depth, height, options) {
|
|
132
207
|
const oc = getKernel().oc;
|
|
133
|
-
const
|
|
208
|
+
const r8 = gcWithScope();
|
|
134
209
|
const maker = r8(new oc.BRepPrimAPI_MakeBox_2(width, depth, height));
|
|
135
|
-
|
|
136
|
-
gc();
|
|
210
|
+
const solid2 = createSolid(maker.Solid());
|
|
137
211
|
const center = options?.at ?? (options?.centered ? [0, 0, 0] : void 0);
|
|
138
212
|
if (center) {
|
|
139
|
-
|
|
140
|
-
center[0] - width / 2,
|
|
141
|
-
center[1] - depth / 2,
|
|
142
|
-
center[2] - height / 2
|
|
143
|
-
]);
|
|
213
|
+
return translate$1(solid2, [center[0] - width / 2, center[1] - depth / 2, center[2] - height / 2]);
|
|
144
214
|
}
|
|
145
215
|
return solid2;
|
|
146
216
|
}
|
|
@@ -237,14 +307,14 @@ function tangentArc(startPoint, startTgt, endPoint) {
|
|
|
237
307
|
function wire(listOfEdges) {
|
|
238
308
|
return assembleWire(listOfEdges);
|
|
239
309
|
}
|
|
240
|
-
function face(
|
|
241
|
-
return makeFace(
|
|
310
|
+
function face(w7, holes) {
|
|
311
|
+
return makeFace(w7, holes);
|
|
242
312
|
}
|
|
243
|
-
function filledFace(
|
|
244
|
-
return makeNonPlanarFace(
|
|
313
|
+
function filledFace(w7) {
|
|
314
|
+
return makeNonPlanarFace(w7);
|
|
245
315
|
}
|
|
246
|
-
function subFace(originFace,
|
|
247
|
-
return makeNewFaceWithinFace(originFace,
|
|
316
|
+
function subFace(originFace, w7) {
|
|
317
|
+
return makeNewFaceWithinFace(originFace, w7);
|
|
248
318
|
}
|
|
249
319
|
function polygon(points) {
|
|
250
320
|
return makePolygon(points);
|
|
@@ -258,14 +328,14 @@ function compound(shapeArray) {
|
|
|
258
328
|
function solid(facesOrShells) {
|
|
259
329
|
return makeSolid(facesOrShells);
|
|
260
330
|
}
|
|
261
|
-
function offsetFace(
|
|
262
|
-
return makeOffset(
|
|
331
|
+
function offsetFace(f11, distance, tolerance) {
|
|
332
|
+
return makeOffset(f11, distance, tolerance);
|
|
263
333
|
}
|
|
264
334
|
function sewShells(facesOrShells, ignoreType) {
|
|
265
335
|
return weldShellsAndFaces(facesOrShells, ignoreType);
|
|
266
336
|
}
|
|
267
|
-
function addHoles(
|
|
268
|
-
return addHolesInFace(
|
|
337
|
+
function addHoles(f11, holes) {
|
|
338
|
+
return addHolesInFace(f11, holes);
|
|
269
339
|
}
|
|
270
340
|
function validateNotNull(shape2, label) {
|
|
271
341
|
if (shape2.wrapped.IsNull()) {
|
|
@@ -420,7 +490,7 @@ function shell$1(shape2, faces, thickness, tolerance = 1e-3) {
|
|
|
420
490
|
try {
|
|
421
491
|
const result = getKernel().shell(
|
|
422
492
|
shape2.wrapped,
|
|
423
|
-
faces.map((
|
|
493
|
+
faces.map((f11) => f11.wrapped),
|
|
424
494
|
thickness,
|
|
425
495
|
tolerance
|
|
426
496
|
);
|
|
@@ -452,8 +522,8 @@ function offset$1(shape2, distance, tolerance = 1e-6) {
|
|
|
452
522
|
"Offset operation failed"
|
|
453
523
|
);
|
|
454
524
|
}
|
|
455
|
-
function translate(shape2,
|
|
456
|
-
return translate$1(resolve(shape2),
|
|
525
|
+
function translate(shape2, v7) {
|
|
526
|
+
return translate$1(resolve(shape2), v7);
|
|
457
527
|
}
|
|
458
528
|
function rotate(shape2, angle, options) {
|
|
459
529
|
const pivotPoint = options?.at;
|
|
@@ -469,14 +539,14 @@ function scale(shape2, factor, options) {
|
|
|
469
539
|
function clone(shape2) {
|
|
470
540
|
return clone$1(resolve(shape2));
|
|
471
541
|
}
|
|
472
|
-
function fuse(
|
|
473
|
-
return fuse$1(resolve(
|
|
542
|
+
function fuse(a10, b10, options) {
|
|
543
|
+
return fuse$1(resolve(a10), resolve(b10), options);
|
|
474
544
|
}
|
|
475
545
|
function cut(base, tool, options) {
|
|
476
546
|
return cut$1(resolve(base), resolve(tool), options);
|
|
477
547
|
}
|
|
478
|
-
function intersect(
|
|
479
|
-
return intersect$1(resolve(
|
|
548
|
+
function intersect(a10, b10, options) {
|
|
549
|
+
return intersect$1(resolve(a10), resolve(b10), options);
|
|
480
550
|
}
|
|
481
551
|
function section(shape2, plane, options) {
|
|
482
552
|
return section$1(resolve(shape2), plane, options);
|
|
@@ -525,24 +595,24 @@ function normalizeChamferDistance(distance) {
|
|
|
525
595
|
return { mode: "standard", distance };
|
|
526
596
|
}
|
|
527
597
|
function fillet(shape2, edgesOrRadius, maybeRadius) {
|
|
528
|
-
const
|
|
598
|
+
const s5 = resolve(shape2);
|
|
529
599
|
let edges;
|
|
530
600
|
let radius;
|
|
531
601
|
if (maybeRadius !== void 0) {
|
|
532
|
-
edges = resolveEdges(edgesOrRadius,
|
|
602
|
+
edges = resolveEdges(edgesOrRadius, s5);
|
|
533
603
|
radius = maybeRadius;
|
|
534
604
|
} else {
|
|
535
605
|
edges = void 0;
|
|
536
606
|
radius = edgesOrRadius;
|
|
537
607
|
}
|
|
538
|
-
return fillet$1(
|
|
608
|
+
return fillet$1(s5, edges, normalizeFilletRadius(radius));
|
|
539
609
|
}
|
|
540
610
|
function chamfer(shape2, edgesOrDistance, maybeDistance) {
|
|
541
|
-
const
|
|
611
|
+
const s5 = resolve(shape2);
|
|
542
612
|
let edges;
|
|
543
613
|
let distance;
|
|
544
614
|
if (maybeDistance !== void 0) {
|
|
545
|
-
edges = resolveEdges(edgesOrDistance,
|
|
615
|
+
edges = resolveEdges(edgesOrDistance, s5);
|
|
546
616
|
distance = maybeDistance;
|
|
547
617
|
} else {
|
|
548
618
|
edges = void 0;
|
|
@@ -550,20 +620,20 @@ function chamfer(shape2, edgesOrDistance, maybeDistance) {
|
|
|
550
620
|
}
|
|
551
621
|
const normalized = normalizeChamferDistance(distance);
|
|
552
622
|
if (normalized.mode === "distAngle") {
|
|
553
|
-
const selectedEdges = edges ?? getEdges(
|
|
623
|
+
const selectedEdges = edges ?? getEdges(s5);
|
|
554
624
|
return chamferDistAngle(
|
|
555
|
-
|
|
625
|
+
s5,
|
|
556
626
|
[...selectedEdges],
|
|
557
627
|
normalized.distance,
|
|
558
628
|
normalized.angle
|
|
559
629
|
);
|
|
560
630
|
}
|
|
561
|
-
return chamfer$1(
|
|
631
|
+
return chamfer$1(s5, edges, normalized.distance);
|
|
562
632
|
}
|
|
563
633
|
function shell(shape2, faces, thickness, options) {
|
|
564
|
-
const
|
|
565
|
-
const resolvedFaces = resolveFaces(faces,
|
|
566
|
-
return shell$1(
|
|
634
|
+
const s5 = resolve(shape2);
|
|
635
|
+
const resolvedFaces = resolveFaces(faces, s5);
|
|
636
|
+
return shell$1(s5, resolvedFaces, thickness, options?.tolerance);
|
|
567
637
|
}
|
|
568
638
|
function offset(shape2, distance, options) {
|
|
569
639
|
return offset$1(resolve(shape2), distance, options?.tolerance);
|
|
@@ -610,8 +680,8 @@ function loft$1(wires, { ruled = true, startPoint, endPoint } = {}, returnShell
|
|
|
610
680
|
const vMaker = r8(new oc.BRepBuilderAPI_MakeVertex(pnt));
|
|
611
681
|
builder.AddVertex(vMaker.Vertex());
|
|
612
682
|
}
|
|
613
|
-
for (const
|
|
614
|
-
builder.AddWire(
|
|
683
|
+
for (const w7 of wires) {
|
|
684
|
+
builder.AddWire(w7.wrapped);
|
|
615
685
|
}
|
|
616
686
|
if (endPoint) {
|
|
617
687
|
const pnt = r8(toOcPnt(toVec3(endPoint)));
|
|
@@ -630,9 +700,9 @@ function loft$1(wires, { ruled = true, startPoint, endPoint } = {}, returnShell
|
|
|
630
700
|
return ok(result);
|
|
631
701
|
}
|
|
632
702
|
function extrude(face2, height) {
|
|
633
|
-
const
|
|
703
|
+
const f11 = resolve(face2);
|
|
634
704
|
const vec = typeof height === "number" ? [0, 0, height] : height;
|
|
635
|
-
return extrude$1(
|
|
705
|
+
return extrude$1(f11, vec);
|
|
636
706
|
}
|
|
637
707
|
function revolve(face2, options) {
|
|
638
708
|
const pivotPoint = options?.at ?? [0, 0, 0];
|
|
@@ -644,7 +714,7 @@ function revolve(face2, options) {
|
|
|
644
714
|
);
|
|
645
715
|
}
|
|
646
716
|
function loft(wires, options) {
|
|
647
|
-
const resolvedWires = wires.map((
|
|
717
|
+
const resolvedWires = wires.map((w7) => resolve(w7));
|
|
648
718
|
return loft$1(resolvedWires, options);
|
|
649
719
|
}
|
|
650
720
|
function resolveTargetFace(shape2, faceSpec) {
|
|
@@ -656,11 +726,11 @@ function resolveTargetFace(shape2, faceSpec) {
|
|
|
656
726
|
let best = faces[0];
|
|
657
727
|
let bestZ = faceCenter(best)[2];
|
|
658
728
|
for (let i11 = 1; i11 < faces.length; i11++) {
|
|
659
|
-
const
|
|
660
|
-
const
|
|
661
|
-
if (
|
|
662
|
-
best =
|
|
663
|
-
bestZ =
|
|
729
|
+
const f11 = faces[i11];
|
|
730
|
+
const z5 = faceCenter(f11)[2];
|
|
731
|
+
if (z5 > bestZ) {
|
|
732
|
+
best = f11;
|
|
733
|
+
bestZ = z5;
|
|
664
734
|
}
|
|
665
735
|
}
|
|
666
736
|
return best;
|
|
@@ -682,7 +752,7 @@ function toWire(profile) {
|
|
|
682
752
|
return profile;
|
|
683
753
|
}
|
|
684
754
|
function drill(shape2, options) {
|
|
685
|
-
const
|
|
755
|
+
const s5 = resolve(shape2);
|
|
686
756
|
const { at, radius, axis: rawAxis } = options;
|
|
687
757
|
const axis = rawAxis ?? [0, 0, 1];
|
|
688
758
|
if (radius <= 0) {
|
|
@@ -695,58 +765,58 @@ function drill(shape2, options) {
|
|
|
695
765
|
const pos = at.length === 2 ? [at[0], at[1], 0] : [at[0], at[1], at[2]];
|
|
696
766
|
let depth = options.depth;
|
|
697
767
|
if (depth === void 0) {
|
|
698
|
-
const
|
|
699
|
-
const dx =
|
|
700
|
-
const dy =
|
|
701
|
-
const dz =
|
|
768
|
+
const b10 = getBounds(s5);
|
|
769
|
+
const dx = b10.xMax - b10.xMin;
|
|
770
|
+
const dy = b10.yMax - b10.yMin;
|
|
771
|
+
const dz = b10.zMax - b10.zMin;
|
|
702
772
|
depth = Math.sqrt(dx * dx + dy * dy + dz * dz) + 1;
|
|
703
773
|
}
|
|
704
774
|
const cyl = makeCylinder(radius, depth, pos, dir);
|
|
705
775
|
const startOffset = options.depth === void 0 ? vecScale(dir, -depth / 2) : [0, 0, 0];
|
|
706
776
|
const tool = startOffset[0] !== 0 || startOffset[1] !== 0 || startOffset[2] !== 0 ? translate$1(cyl, startOffset) : cyl;
|
|
707
|
-
return cut$1(
|
|
777
|
+
return cut$1(s5, tool);
|
|
708
778
|
}
|
|
709
779
|
function pocket(shape2, options) {
|
|
710
|
-
const
|
|
780
|
+
const s5 = resolve(shape2);
|
|
711
781
|
const { profile, depth } = options;
|
|
712
782
|
if (depth <= 0) {
|
|
713
783
|
return err(validationError("POCKET_INVALID_DEPTH", "Pocket depth must be positive"));
|
|
714
784
|
}
|
|
715
|
-
const targetFace = resolveTargetFace(
|
|
785
|
+
const targetFace = resolveTargetFace(s5, options.face);
|
|
716
786
|
const normal = normalAt(targetFace);
|
|
717
|
-
const
|
|
718
|
-
const faceResult = makeFace(
|
|
787
|
+
const w7 = toWire(profile);
|
|
788
|
+
const faceResult = makeFace(w7);
|
|
719
789
|
if (isErr(faceResult)) return faceResult;
|
|
720
790
|
const extDir = vecScale(vecNormalize(normal), -depth);
|
|
721
791
|
const toolResult = extrude$1(faceResult.value, extDir);
|
|
722
792
|
if (isErr(toolResult)) return toolResult;
|
|
723
|
-
return cut$1(
|
|
793
|
+
return cut$1(s5, toolResult.value);
|
|
724
794
|
}
|
|
725
795
|
function boss(shape2, options) {
|
|
726
|
-
const
|
|
796
|
+
const s5 = resolve(shape2);
|
|
727
797
|
const { profile, height } = options;
|
|
728
798
|
if (height <= 0) {
|
|
729
799
|
return err(validationError("BOSS_INVALID_HEIGHT", "Boss height must be positive"));
|
|
730
800
|
}
|
|
731
|
-
const targetFace = resolveTargetFace(
|
|
801
|
+
const targetFace = resolveTargetFace(s5, options.face);
|
|
732
802
|
const normal = normalAt(targetFace);
|
|
733
|
-
const
|
|
734
|
-
const faceResult = makeFace(
|
|
803
|
+
const w7 = toWire(profile);
|
|
804
|
+
const faceResult = makeFace(w7);
|
|
735
805
|
if (isErr(faceResult)) return faceResult;
|
|
736
806
|
const extDir = vecScale(vecNormalize(normal), height);
|
|
737
807
|
const toolResult = extrude$1(faceResult.value, extDir);
|
|
738
808
|
if (isErr(toolResult)) return toolResult;
|
|
739
|
-
return fuse$1(
|
|
809
|
+
return fuse$1(s5, toolResult.value);
|
|
740
810
|
}
|
|
741
811
|
function mirrorJoin(shape2, options) {
|
|
742
|
-
const
|
|
812
|
+
const s5 = resolve(shape2);
|
|
743
813
|
const normal = options?.normal ?? [1, 0, 0];
|
|
744
814
|
const planeOrigin = options?.at;
|
|
745
|
-
const mirrored = mirror$1(
|
|
746
|
-
return fuse$1(
|
|
815
|
+
const mirrored = mirror$1(s5, normal, planeOrigin);
|
|
816
|
+
return fuse$1(s5, mirrored);
|
|
747
817
|
}
|
|
748
818
|
function rectangularPattern(shape2, options) {
|
|
749
|
-
const
|
|
819
|
+
const s5 = resolve(shape2);
|
|
750
820
|
const { xDir, xCount, xSpacing, yDir, yCount, ySpacing } = options;
|
|
751
821
|
if (xCount < 1 || yCount < 1) {
|
|
752
822
|
return err(validationError("PATTERN_INVALID_COUNT", "Pattern counts must be at least 1"));
|
|
@@ -757,10 +827,10 @@ function rectangularPattern(shape2, options) {
|
|
|
757
827
|
if (vecIsZero(yDir)) {
|
|
758
828
|
return err(validationError("PATTERN_ZERO_DIRECTION", "Y direction cannot be zero"));
|
|
759
829
|
}
|
|
760
|
-
if (xCount === 1 && yCount === 1) return ok(
|
|
830
|
+
if (xCount === 1 && yCount === 1) return ok(s5);
|
|
761
831
|
const xNorm = vecNormalize(xDir);
|
|
762
832
|
const yNorm = vecNormalize(yDir);
|
|
763
|
-
let result =
|
|
833
|
+
let result = s5;
|
|
764
834
|
for (let xi = 0; xi < xCount; xi++) {
|
|
765
835
|
for (let yi = 0; yi < yCount; yi++) {
|
|
766
836
|
if (xi === 0 && yi === 0) continue;
|
|
@@ -769,7 +839,7 @@ function rectangularPattern(shape2, options) {
|
|
|
769
839
|
xNorm[1] * xSpacing * xi + yNorm[1] * ySpacing * yi,
|
|
770
840
|
xNorm[2] * xSpacing * xi + yNorm[2] * ySpacing * yi
|
|
771
841
|
];
|
|
772
|
-
const copy = translate$1(
|
|
842
|
+
const copy = translate$1(s5, offset2);
|
|
773
843
|
const fuseResult = fuse$1(result, copy);
|
|
774
844
|
if (isErr(fuseResult)) return fuseResult;
|
|
775
845
|
result = fuseResult.value;
|
|
@@ -808,16 +878,16 @@ function createWrappedBase(val) {
|
|
|
808
878
|
const self = {
|
|
809
879
|
val,
|
|
810
880
|
__wrapped: true,
|
|
811
|
-
translate: (
|
|
881
|
+
translate: (v7) => wrapAny(translate(val, v7)),
|
|
812
882
|
rotate: (angle, opts) => wrapAny(rotate(val, angle, opts)),
|
|
813
883
|
mirror: (opts) => wrapAny(mirror(val, opts)),
|
|
814
884
|
scale: (factor, opts) => wrapAny(scale(val, factor, opts)),
|
|
815
885
|
moveX: (d10) => wrapAny(translate(val, [d10, 0, 0])),
|
|
816
886
|
moveY: (d10) => wrapAny(translate(val, [0, d10, 0])),
|
|
817
887
|
moveZ: (d10) => wrapAny(translate(val, [0, 0, d10])),
|
|
818
|
-
rotateX: (
|
|
819
|
-
rotateY: (
|
|
820
|
-
rotateZ: (
|
|
888
|
+
rotateX: (a10) => wrapAny(rotate(val, a10, { axis: [1, 0, 0] })),
|
|
889
|
+
rotateY: (a10) => wrapAny(rotate(val, a10, { axis: [0, 1, 0] })),
|
|
890
|
+
rotateZ: (a10) => wrapAny(rotate(val, a10, { axis: [0, 0, 1] })),
|
|
821
891
|
bounds: () => getBounds(val),
|
|
822
892
|
describe: () => describe(val),
|
|
823
893
|
clone: () => wrapAny(clone(val)),
|
|
@@ -846,6 +916,7 @@ function createWrapped3D(val) {
|
|
|
846
916
|
cut: (tool, opts) => wrap3D(unwrapOrThrow(cut(val, resolve(tool), opts))),
|
|
847
917
|
intersect: (tool, opts) => wrap3D(unwrapOrThrow(intersect(val, resolve(tool), opts))),
|
|
848
918
|
// Batch booleans
|
|
919
|
+
fuseAll: (tools, opts) => wrap3D(unwrapOrThrow(fuseAll([val, ...tools.map(resolve)], opts))),
|
|
849
920
|
cutAll: (tools, opts) => wrap3D(unwrapOrThrow(cutAll(val, tools, opts))),
|
|
850
921
|
// Boolean variants
|
|
851
922
|
section: (plane, opts) => wrapAny(unwrapOrThrow(section(val, plane, opts))),
|
|
@@ -900,8 +971,8 @@ function createWrappedCurve(val) {
|
|
|
900
971
|
isClosed: () => curveIsClosed(val),
|
|
901
972
|
sweep(spine, opts) {
|
|
902
973
|
if (!isWire(val)) throw new Error("sweep requires a Wire");
|
|
903
|
-
const
|
|
904
|
-
const result = unwrapOrThrow(sweep(
|
|
974
|
+
const w7 = val;
|
|
975
|
+
const result = unwrapOrThrow(sweep(w7, resolve(spine), opts));
|
|
905
976
|
const shape3D = Array.isArray(result) ? result[0] : result;
|
|
906
977
|
return wrap3D(shape3D);
|
|
907
978
|
}
|
|
@@ -930,52 +1001,52 @@ function wrapAny(val) {
|
|
|
930
1001
|
function wrap3D(val) {
|
|
931
1002
|
return createWrapped3D(val);
|
|
932
1003
|
}
|
|
933
|
-
function shape(
|
|
934
|
-
if (
|
|
935
|
-
return createWrappedFace(
|
|
1004
|
+
function shape(s5) {
|
|
1005
|
+
if (s5 && typeof s5 === "object" && "face" in s5 && typeof s5.face === "function" && "_defaultOrigin" in s5) {
|
|
1006
|
+
return createWrappedFace(s5.face());
|
|
936
1007
|
}
|
|
937
|
-
if (
|
|
938
|
-
if (isFace(
|
|
939
|
-
if (isShape3D(
|
|
940
|
-
if (isEdge(
|
|
941
|
-
return createWrappedBase(
|
|
1008
|
+
if (s5 && typeof s5 === "object" && "wrapped" in s5) {
|
|
1009
|
+
if (isFace(s5)) return createWrappedFace(s5);
|
|
1010
|
+
if (isShape3D(s5)) return createWrapped3D(s5);
|
|
1011
|
+
if (isEdge(s5) || isWire(s5)) return createWrappedCurve(s5);
|
|
1012
|
+
return createWrappedBase(s5);
|
|
942
1013
|
}
|
|
943
1014
|
throw new Error("shape() requires a Sketch or branded shape type");
|
|
944
1015
|
}
|
|
945
1016
|
export {
|
|
946
|
-
|
|
1017
|
+
B4 as BaseSketcher2d,
|
|
947
1018
|
B as Blueprint,
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1019
|
+
a5 as BlueprintSketcher,
|
|
1020
|
+
b5 as Blueprints,
|
|
1021
|
+
e2 as BoundingBox2d,
|
|
951
1022
|
BrepBugError,
|
|
952
1023
|
BrepErrorCode,
|
|
953
1024
|
BrepWrapperError,
|
|
954
|
-
|
|
955
|
-
|
|
1025
|
+
C4 as CompoundBlueprint,
|
|
1026
|
+
C5 as CompoundSketch,
|
|
956
1027
|
C as Curve2D,
|
|
957
1028
|
DEG2RAD,
|
|
958
1029
|
D as DisposalScope,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1030
|
+
D4 as Drawing,
|
|
1031
|
+
a6 as DrawingPen,
|
|
1032
|
+
F2 as FaceSketcher,
|
|
962
1033
|
H as HASH_CODE_MAX,
|
|
963
1034
|
O as OK,
|
|
964
1035
|
R as RAD2DEG,
|
|
965
1036
|
S as Sketch,
|
|
966
1037
|
S2 as Sketcher,
|
|
967
|
-
|
|
968
|
-
|
|
1038
|
+
b6 as Sketches,
|
|
1039
|
+
a4 as addChild,
|
|
969
1040
|
addHoles,
|
|
970
|
-
|
|
971
|
-
|
|
1041
|
+
b4 as addStep,
|
|
1042
|
+
a8 as adjacentFaces,
|
|
972
1043
|
a as andThen,
|
|
973
|
-
|
|
974
|
-
|
|
1044
|
+
g11 as applyGlue,
|
|
1045
|
+
x2 as approximateCurve,
|
|
975
1046
|
e9 as asTopo,
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
1047
|
+
b7 as autoHeal,
|
|
1048
|
+
f4 as axis2d,
|
|
1049
|
+
i6 as basicFaceExtrusion,
|
|
979
1050
|
bezier,
|
|
980
1051
|
blueprintToDXF,
|
|
981
1052
|
boss,
|
|
@@ -984,7 +1055,7 @@ export {
|
|
|
984
1055
|
bug,
|
|
985
1056
|
X as cameraFromPlane,
|
|
986
1057
|
Y as cameraLookAt,
|
|
987
|
-
|
|
1058
|
+
c8 as cast,
|
|
988
1059
|
castShape,
|
|
989
1060
|
chamfer,
|
|
990
1061
|
chamferDistAngle as chamferDistAngleShape,
|
|
@@ -992,42 +1063,42 @@ export {
|
|
|
992
1063
|
checkInterference,
|
|
993
1064
|
circle,
|
|
994
1065
|
circularPattern,
|
|
995
|
-
|
|
996
|
-
|
|
1066
|
+
c6 as classifyPointOnFace,
|
|
1067
|
+
c7 as clearMeshCache,
|
|
997
1068
|
clone,
|
|
998
|
-
|
|
1069
|
+
c2 as collect,
|
|
999
1070
|
d2 as collectShapes,
|
|
1000
|
-
|
|
1071
|
+
f5 as complexExtrude,
|
|
1001
1072
|
compound,
|
|
1002
|
-
|
|
1073
|
+
c4 as compoundSketchExtrude,
|
|
1003
1074
|
d4 as compoundSketchFace,
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1075
|
+
e4 as compoundSketchLoft,
|
|
1076
|
+
f7 as compoundSketchRevolve,
|
|
1077
|
+
b as computationError,
|
|
1007
1078
|
cone,
|
|
1008
|
-
|
|
1079
|
+
c9 as cornerFinder,
|
|
1009
1080
|
g6 as countNodes,
|
|
1010
|
-
|
|
1011
|
-
|
|
1081
|
+
h4 as createAssembly,
|
|
1082
|
+
i7 as createAssemblyNode,
|
|
1012
1083
|
createBlueprint,
|
|
1013
1084
|
Z as createCamera,
|
|
1014
|
-
|
|
1085
|
+
q as createCompound,
|
|
1015
1086
|
d8 as createDistanceQuery,
|
|
1016
|
-
|
|
1017
|
-
|
|
1087
|
+
o as createEdge,
|
|
1088
|
+
u as createFace,
|
|
1018
1089
|
a2 as createHandle,
|
|
1019
1090
|
j5 as createHistory,
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1091
|
+
b9 as createMeshCache,
|
|
1092
|
+
c5 as createNamedPlane,
|
|
1093
|
+
b2 as createOcHandle,
|
|
1023
1094
|
createOperationRegistry,
|
|
1024
|
-
|
|
1025
|
-
|
|
1095
|
+
a7 as createPlane,
|
|
1096
|
+
k5 as createRegistry,
|
|
1026
1097
|
v2 as createShell,
|
|
1027
1098
|
createSolid,
|
|
1028
1099
|
createTaskQueue,
|
|
1029
|
-
|
|
1030
|
-
|
|
1100
|
+
r3 as createVertex,
|
|
1101
|
+
n2 as createWire,
|
|
1031
1102
|
createWorkerClient,
|
|
1032
1103
|
createWorkerHandler,
|
|
1033
1104
|
curve2dBoundingBox,
|
|
@@ -1040,9 +1111,9 @@ export {
|
|
|
1040
1111
|
curve2dTangentAt,
|
|
1041
1112
|
curveEndPoint,
|
|
1042
1113
|
curveIsClosed,
|
|
1043
|
-
|
|
1114
|
+
y as curveIsPeriodic,
|
|
1044
1115
|
curveLength,
|
|
1045
|
-
|
|
1116
|
+
z2 as curvePeriod,
|
|
1046
1117
|
curvePointAt,
|
|
1047
1118
|
curveStartPoint,
|
|
1048
1119
|
curveTangentAt,
|
|
@@ -1056,78 +1127,78 @@ export {
|
|
|
1056
1127
|
g9 as deserializeDrawing,
|
|
1057
1128
|
fromBREP$1 as deserializeShape,
|
|
1058
1129
|
d9 as downcast,
|
|
1059
|
-
|
|
1060
|
-
|
|
1130
|
+
h5 as draw,
|
|
1131
|
+
i9 as drawCircle,
|
|
1061
1132
|
j6 as drawEllipse,
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1133
|
+
k6 as drawFaceOutline,
|
|
1134
|
+
l4 as drawParametricFunction,
|
|
1135
|
+
m4 as drawPointsInterpolation,
|
|
1065
1136
|
n4 as drawPolysides,
|
|
1066
1137
|
o5 as drawProjection,
|
|
1067
1138
|
p3 as drawRectangle,
|
|
1068
|
-
|
|
1139
|
+
q3 as drawRoundedRectangle,
|
|
1069
1140
|
r6 as drawSingleCircle,
|
|
1070
|
-
|
|
1141
|
+
s2 as drawSingleEllipse,
|
|
1071
1142
|
t5 as drawText,
|
|
1072
1143
|
u3 as drawingChamfer,
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1144
|
+
v5 as drawingCut,
|
|
1145
|
+
w5 as drawingFillet,
|
|
1146
|
+
x4 as drawingFuse,
|
|
1147
|
+
y3 as drawingIntersect,
|
|
1148
|
+
z4 as drawingToSketchOnPlane,
|
|
1078
1149
|
drill,
|
|
1079
1150
|
edgeFinder,
|
|
1080
|
-
|
|
1151
|
+
e5 as edgesOfFace,
|
|
1081
1152
|
ellipse,
|
|
1082
1153
|
ellipseArc,
|
|
1083
1154
|
ellipsoid,
|
|
1084
1155
|
enqueueTask,
|
|
1085
1156
|
err,
|
|
1086
|
-
|
|
1157
|
+
m3 as exportAssemblySTEP,
|
|
1087
1158
|
exportDXF,
|
|
1088
1159
|
exportGlb,
|
|
1089
1160
|
exportGltf,
|
|
1090
|
-
|
|
1161
|
+
e7 as exportIGES,
|
|
1091
1162
|
exportOBJ,
|
|
1092
1163
|
d7 as exportSTEP,
|
|
1093
|
-
|
|
1164
|
+
f9 as exportSTL,
|
|
1094
1165
|
exportThreeMF,
|
|
1095
1166
|
extrude,
|
|
1096
1167
|
face,
|
|
1097
1168
|
faceCenter,
|
|
1098
1169
|
faceFinder,
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1170
|
+
a9 as faceGeomType,
|
|
1171
|
+
b8 as faceOrientation,
|
|
1172
|
+
f8 as facesOfEdge,
|
|
1102
1173
|
filledFace,
|
|
1103
1174
|
fillet,
|
|
1104
|
-
|
|
1175
|
+
A as findCurveType,
|
|
1105
1176
|
n3 as findNode,
|
|
1106
1177
|
o3 as findStep,
|
|
1107
1178
|
f2 as flatMap,
|
|
1108
1179
|
d6 as flipFaceOrientation,
|
|
1109
|
-
|
|
1180
|
+
B2 as flipOrientation,
|
|
1110
1181
|
fromBREP,
|
|
1111
1182
|
f as fromOcDir,
|
|
1112
1183
|
h as fromOcPnt,
|
|
1113
1184
|
i as fromOcVec,
|
|
1114
1185
|
fuse,
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1186
|
+
f6 as fuse2D,
|
|
1187
|
+
fuseAll,
|
|
1188
|
+
e3 as fuseBlueprints,
|
|
1118
1189
|
x as gcWithObject,
|
|
1119
1190
|
gcWithScope,
|
|
1120
|
-
|
|
1191
|
+
j4 as genericSweep,
|
|
1121
1192
|
getBounds,
|
|
1122
1193
|
getBounds2D,
|
|
1123
|
-
|
|
1194
|
+
C2 as getCurveType,
|
|
1124
1195
|
getEdges,
|
|
1125
1196
|
getFaces,
|
|
1126
1197
|
_ as getFont,
|
|
1127
|
-
|
|
1198
|
+
g5 as getHashCode,
|
|
1128
1199
|
p as getHistoryShape,
|
|
1129
1200
|
getKernel,
|
|
1130
|
-
|
|
1201
|
+
D2 as getOrientation,
|
|
1131
1202
|
getOrientation2D,
|
|
1132
1203
|
g2 as getShapeKind,
|
|
1133
1204
|
g8 as getSingleFace,
|
|
@@ -1146,9 +1217,9 @@ export {
|
|
|
1146
1217
|
importSVGPathD,
|
|
1147
1218
|
j as initFromOC,
|
|
1148
1219
|
innerWires,
|
|
1149
|
-
|
|
1220
|
+
E as interpolateCurve,
|
|
1150
1221
|
intersect,
|
|
1151
|
-
|
|
1222
|
+
i8 as intersect2D,
|
|
1152
1223
|
g7 as intersectBlueprints,
|
|
1153
1224
|
i2 as ioError,
|
|
1154
1225
|
isChamferRadius,
|
|
@@ -1157,7 +1228,7 @@ export {
|
|
|
1157
1228
|
isDisposeRequest,
|
|
1158
1229
|
isEdge,
|
|
1159
1230
|
isEmpty,
|
|
1160
|
-
|
|
1231
|
+
F as isEqualShape,
|
|
1161
1232
|
isErr,
|
|
1162
1233
|
isErrorResponse,
|
|
1163
1234
|
isFace,
|
|
@@ -1169,7 +1240,7 @@ export {
|
|
|
1169
1240
|
isOperationRequest,
|
|
1170
1241
|
$ as isProjectionPlane,
|
|
1171
1242
|
isQueueEmpty,
|
|
1172
|
-
|
|
1243
|
+
i5 as isSameShape,
|
|
1173
1244
|
f3 as isShape1D,
|
|
1174
1245
|
isShape3D,
|
|
1175
1246
|
j3 as isShell,
|
|
@@ -1178,30 +1249,30 @@ export {
|
|
|
1178
1249
|
isValid,
|
|
1179
1250
|
l2 as isVertex,
|
|
1180
1251
|
isWire,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1252
|
+
G as iterEdges,
|
|
1253
|
+
H2 as iterFaces,
|
|
1254
|
+
iterTopo,
|
|
1255
|
+
I as iterVertices,
|
|
1256
|
+
J as iterWires,
|
|
1186
1257
|
kernelCall,
|
|
1187
1258
|
kernelCallRaw,
|
|
1188
1259
|
line,
|
|
1189
1260
|
linearPattern,
|
|
1190
1261
|
a0 as loadFont,
|
|
1191
|
-
localGC,
|
|
1262
|
+
t3 as localGC,
|
|
1192
1263
|
loft,
|
|
1193
|
-
|
|
1194
|
-
|
|
1264
|
+
A3 as makeBaseBox,
|
|
1265
|
+
g4 as makePlane,
|
|
1195
1266
|
a1 as makeProjectedEdges,
|
|
1196
1267
|
m as map,
|
|
1197
1268
|
h2 as mapErr,
|
|
1198
1269
|
j2 as match,
|
|
1199
1270
|
measureArea,
|
|
1200
1271
|
e8 as measureCurvatureAt,
|
|
1201
|
-
|
|
1272
|
+
f10 as measureCurvatureAtMid,
|
|
1202
1273
|
g12 as measureDistance,
|
|
1203
|
-
|
|
1204
|
-
|
|
1274
|
+
h7 as measureLength,
|
|
1275
|
+
i10 as measureLinearProps,
|
|
1205
1276
|
measureSurfaceProps,
|
|
1206
1277
|
measureVolume,
|
|
1207
1278
|
measureVolumeProps,
|
|
@@ -1209,15 +1280,15 @@ export {
|
|
|
1209
1280
|
meshEdges,
|
|
1210
1281
|
mirror,
|
|
1211
1282
|
mirror2D,
|
|
1212
|
-
|
|
1283
|
+
B5 as mirrorDrawing,
|
|
1213
1284
|
mirrorJoin,
|
|
1214
|
-
|
|
1285
|
+
q2 as modifyStep,
|
|
1215
1286
|
k2 as moduleInitError,
|
|
1216
1287
|
normalAt,
|
|
1217
1288
|
occtError,
|
|
1218
1289
|
offset,
|
|
1219
1290
|
offsetFace,
|
|
1220
|
-
|
|
1291
|
+
K as offsetWire2D,
|
|
1221
1292
|
ok,
|
|
1222
1293
|
o4 as organiseBlueprints,
|
|
1223
1294
|
outerWire,
|
|
@@ -1225,13 +1296,13 @@ export {
|
|
|
1225
1296
|
z as pipeline,
|
|
1226
1297
|
p4 as pivotPlane,
|
|
1227
1298
|
pocket,
|
|
1228
|
-
|
|
1299
|
+
p5 as pointOnSurface,
|
|
1229
1300
|
polygon,
|
|
1230
|
-
|
|
1301
|
+
E3 as polysideInnerRadius,
|
|
1231
1302
|
p2 as polysidesBlueprint,
|
|
1232
1303
|
a22 as projectEdges,
|
|
1233
|
-
|
|
1234
|
-
|
|
1304
|
+
e6 as projectPointOnFace,
|
|
1305
|
+
queryError,
|
|
1235
1306
|
rectangularPattern,
|
|
1236
1307
|
registerHandler,
|
|
1237
1308
|
t4 as registerOperation,
|
|
@@ -1239,7 +1310,7 @@ export {
|
|
|
1239
1310
|
rejectAll,
|
|
1240
1311
|
v4 as removeChild,
|
|
1241
1312
|
w4 as replayFrom,
|
|
1242
|
-
|
|
1313
|
+
x3 as replayHistory,
|
|
1243
1314
|
resolve,
|
|
1244
1315
|
resolve3D,
|
|
1245
1316
|
r as resolveDirection,
|
|
@@ -1249,24 +1320,24 @@ export {
|
|
|
1249
1320
|
revolve,
|
|
1250
1321
|
rotate,
|
|
1251
1322
|
rotate2D,
|
|
1252
|
-
|
|
1323
|
+
F3 as rotateDrawing,
|
|
1253
1324
|
r5 as roundedRectangleBlueprint,
|
|
1254
1325
|
scale,
|
|
1255
1326
|
scale2D,
|
|
1256
|
-
|
|
1327
|
+
G2 as scaleDrawing,
|
|
1257
1328
|
section,
|
|
1258
1329
|
sewShells,
|
|
1259
1330
|
shape,
|
|
1260
|
-
|
|
1261
|
-
|
|
1331
|
+
s4 as shapeType,
|
|
1332
|
+
s3 as sharedEdges,
|
|
1262
1333
|
shell,
|
|
1263
1334
|
simplify,
|
|
1264
1335
|
sketch2DOnFace,
|
|
1265
1336
|
sketch2DOnPlane,
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1337
|
+
H3 as sketchCircle,
|
|
1338
|
+
I2 as sketchEllipse,
|
|
1339
|
+
J2 as sketchExtrude,
|
|
1340
|
+
K2 as sketchFace,
|
|
1270
1341
|
L as sketchFaceOffset,
|
|
1271
1342
|
M as sketchHelix,
|
|
1272
1343
|
N as sketchLoft,
|
|
@@ -1283,11 +1354,11 @@ export {
|
|
|
1283
1354
|
solid,
|
|
1284
1355
|
sphere,
|
|
1285
1356
|
split,
|
|
1286
|
-
|
|
1287
|
-
|
|
1357
|
+
y2 as stepCount,
|
|
1358
|
+
z3 as stepsFrom,
|
|
1288
1359
|
stretch2D,
|
|
1289
1360
|
subFace,
|
|
1290
|
-
|
|
1361
|
+
A2 as supportExtrude,
|
|
1291
1362
|
sweep,
|
|
1292
1363
|
tangentArc,
|
|
1293
1364
|
a42 as textBlueprints,
|
|
@@ -1295,9 +1366,9 @@ export {
|
|
|
1295
1366
|
threePointArc,
|
|
1296
1367
|
toBREP,
|
|
1297
1368
|
t7 as toBufferGeometryData,
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1369
|
+
k7 as toGroupedBufferGeometryData,
|
|
1370
|
+
l5 as toLineGeometryData,
|
|
1371
|
+
c as toOcVec,
|
|
1301
1372
|
toSVGPathD,
|
|
1302
1373
|
t as toVec2,
|
|
1303
1374
|
toVec3,
|
|
@@ -1308,21 +1379,21 @@ export {
|
|
|
1308
1379
|
t6 as translatePlane,
|
|
1309
1380
|
t2 as tryCatch,
|
|
1310
1381
|
n as tryCatchAsync,
|
|
1311
|
-
|
|
1382
|
+
B3 as twistExtrude,
|
|
1312
1383
|
typeCastError,
|
|
1313
|
-
|
|
1384
|
+
C3 as undoLast,
|
|
1314
1385
|
unwrap,
|
|
1315
1386
|
r2 as unwrapErr,
|
|
1316
1387
|
v as unwrapOr,
|
|
1317
1388
|
w2 as unwrapOrElse,
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1389
|
+
D3 as updateNode,
|
|
1390
|
+
u4 as uvBounds,
|
|
1391
|
+
h6 as uvCoordinates,
|
|
1321
1392
|
validationError,
|
|
1322
1393
|
v3 as vecAdd,
|
|
1323
1394
|
a3 as vecAngle,
|
|
1324
|
-
|
|
1325
|
-
|
|
1395
|
+
b3 as vecCross,
|
|
1396
|
+
vecDistance,
|
|
1326
1397
|
d as vecDot,
|
|
1327
1398
|
e as vecEquals,
|
|
1328
1399
|
vecIsZero,
|
|
@@ -1334,15 +1405,15 @@ export {
|
|
|
1334
1405
|
l3 as vecRepr,
|
|
1335
1406
|
m2 as vecRotate,
|
|
1336
1407
|
vecScale,
|
|
1337
|
-
|
|
1408
|
+
o2 as vecSub,
|
|
1338
1409
|
vertex,
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1410
|
+
vertexFinder,
|
|
1411
|
+
vertexPosition,
|
|
1412
|
+
v6 as verticesOfEdge,
|
|
1413
|
+
E2 as walkAssembly,
|
|
1343
1414
|
wire,
|
|
1344
|
-
|
|
1345
|
-
|
|
1415
|
+
wireFinder,
|
|
1416
|
+
w6 as wiresOfFace,
|
|
1346
1417
|
w as withOcDir,
|
|
1347
1418
|
k as withOcPnt,
|
|
1348
1419
|
l as withOcVec,
|