brepjs 4.23.0 → 4.25.0
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 +4 -4
- package/dist/{Blueprint-aBj_SzkG.js → Blueprint-CBvm7PL1.js} +7 -7
- package/dist/{Blueprint-CPTETO1p.cjs → Blueprint-Cf2bQx9i.cjs} +1 -1
- package/dist/{boolean2D-CEEb_EaQ.cjs → boolean2D-DZz6fNbS.cjs} +3 -3
- package/dist/{boolean2D-DwZHKkok.js → boolean2D-Dsb7_zFc.js} +9 -9
- package/dist/{booleanFns-BLW2yIS1.cjs → booleanFns-DgLLOoeg.cjs} +0 -21
- package/dist/{booleanFns-xeYzk-0K.js → booleanFns-u4DnXrX3.js} +7 -28
- package/dist/brepjs.cjs +7 -12
- package/dist/brepjs.js +55 -60
- package/dist/{cast-r-xrA19S.js → cast-De1fNfOB.js} +1 -1
- package/dist/core.js +8 -8
- package/dist/{curveFns-CC3_hLYf.js → curveFns-DnXGH3Rw.js} +1 -1
- package/dist/{drawFns-3Ss6ikjg.js → drawFns-CQxs0Sz2.js} +12 -12
- package/dist/{drawFns-Bo2Hq0hL.cjs → drawFns-DlNydgox.cjs} +4 -4
- package/dist/{faceFns-CXqZCAt8.js → faceFns-DcvflSoj.js} +2 -2
- package/dist/{finderFns-BetT3Js9.js → finderFns-ti3qUFpJ.js} +8 -8
- package/dist/{helpers-C2aQp3tJ.js → helpers-CYQYjKFu.js} +5 -5
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/io.cjs +1 -1
- package/dist/io.js +2 -2
- package/dist/{loft-WBZLK1nc.js → loft-ByF6QLtd.js} +4 -4
- package/dist/{loft-C00KxCrb.cjs → loft-sFeoEebW.cjs} +1 -1
- package/dist/{measurement-DqDov6cy.js → measurement-CrsEV5Tg.js} +2 -2
- package/dist/measurement.js +1 -1
- package/dist/{occtBoundary-xpNtF79K.js → occtBoundary-DBs4sGzK.js} +6 -6
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +7 -7
- package/dist/{planeOps-DpHV4ZAd.js → planeOps-0MoExrYA.js} +1 -1
- package/dist/query.js +2 -2
- package/dist/quick.d.ts +1 -0
- package/dist/quick.d.ts.map +1 -0
- package/dist/quick.js +5 -0
- package/dist/{shapeFns-BIdGOxAb.js → shapeFns-VyO-9N-6.js} +3 -3
- package/dist/{shapeHelpers-CQBqIrHZ.js → shapeHelpers-CUd1Cw8j.js} +27 -29
- package/dist/{shapeHelpers-CzsZSb_V.cjs → shapeHelpers-OCwPIfRh.cjs} +0 -2
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/topology/booleanFns.d.ts +1 -17
- package/dist/topology/booleanFns.d.ts.map +1 -1
- package/dist/topology/index.d.ts +3 -3
- package/dist/topology/index.d.ts.map +1 -1
- package/dist/topology/shapeHelpers.d.ts +0 -2
- package/dist/topology/shapeHelpers.d.ts.map +1 -1
- package/dist/{topology-2HQ2boks.js → topology-BP9i1Anq.js} +8 -8
- package/dist/{topology-DVJFgF2x.cjs → topology-CH3GPRNk.cjs} +2 -2
- package/dist/topology.cjs +3 -7
- package/dist/topology.d.ts +2 -2
- package/dist/topology.d.ts.map +1 -1
- package/dist/topology.js +47 -51
- package/package.json +8 -2
package/dist/2d.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const Blueprint = require("./Blueprint-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const Blueprint = require("./Blueprint-Cf2bQx9i.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-DZz6fNbS.cjs");
|
|
5
5
|
function reverseCurve(curve) {
|
|
6
6
|
const cloned = curve.clone();
|
|
7
7
|
cloned.reverse();
|
package/dist/2d.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as Blueprint } from "./Blueprint-
|
|
2
|
-
import { a, C, b } from "./Blueprint-
|
|
3
|
-
import { c as cut2D, f as fuse2D, i as intersect2D } from "./boolean2D-
|
|
4
|
-
import { b as b2, C as C2, d, e, g, o, p, r } from "./boolean2D-
|
|
1
|
+
import { B as Blueprint } from "./Blueprint-CBvm7PL1.js";
|
|
2
|
+
import { a, C, b } from "./Blueprint-CBvm7PL1.js";
|
|
3
|
+
import { c as cut2D, f as fuse2D, i as intersect2D } from "./boolean2D-Dsb7_zFc.js";
|
|
4
|
+
import { b as b2, C as C2, d, e, g, o, p, r } from "./boolean2D-Dsb7_zFc.js";
|
|
5
5
|
function reverseCurve(curve) {
|
|
6
6
|
const cloned = curve.clone();
|
|
7
7
|
cloned.reverse();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as resolvePlane, h as vecCross, k as vecLength, v as vecNormalize, f as createPlane, D as DEG2RAD, R as RAD2DEG } from "./planeOps-
|
|
2
|
-
import { g as getKernel, X as localGC, h as toVec3, m as makeOcAx2, d as makeOcAx1, t as toOcPnt, f as toOcVec, ae as registerForCleanup, af as unregisterFromCleanup, a as gcWithScope, u as unwrap, o as ok, e as err,
|
|
3
|
-
import { u as uvBounds, a as faceGeomType, f as faceCenter, h as uvCoordinates } from "./faceFns-
|
|
4
|
-
import { k as findCurveType, m as getOrientation } from "./curveFns-
|
|
5
|
-
import {
|
|
6
|
-
import { d as distance2d, s as samePoint, f as scalarMultiply2d, c as add2d, n as normalize2d, b as subtract2d, g as getSingleFace } from "./helpers-
|
|
7
|
-
import { c as cast } from "./cast-
|
|
1
|
+
import { r as resolvePlane, h as vecCross, k as vecLength, v as vecNormalize, f as createPlane, D as DEG2RAD, R as RAD2DEG } from "./planeOps-0MoExrYA.js";
|
|
2
|
+
import { g as getKernel, X as localGC, h as toVec3, m as makeOcAx2, d as makeOcAx1, t as toOcPnt, f as toOcVec, ae as registerForCleanup, af as unregisterFromCleanup, a as gcWithScope, u as unwrap, o as ok, e as err, w as computationError, y as createEdge, v as validationError, H as createWire } from "./occtBoundary-DBs4sGzK.js";
|
|
3
|
+
import { u as uvBounds, a as faceGeomType, f as faceCenter, h as uvCoordinates } from "./faceFns-DcvflSoj.js";
|
|
4
|
+
import { k as findCurveType, m as getOrientation } from "./curveFns-DnXGH3Rw.js";
|
|
5
|
+
import { A as zip, l as makeFace } from "./shapeHelpers-CUd1Cw8j.js";
|
|
6
|
+
import { d as distance2d, s as samePoint, f as scalarMultiply2d, c as add2d, n as normalize2d, b as subtract2d, g as getSingleFace } from "./helpers-CYQYjKFu.js";
|
|
7
|
+
import { c as cast } from "./cast-De1fNfOB.js";
|
|
8
8
|
import { bug } from "./core.js";
|
|
9
9
|
const makePlaneFromFace = (face, originOnSurface = [0, 0]) => {
|
|
10
10
|
const originPoint = face.pointOnSurface(...originOnSurface);
|
|
@@ -3,7 +3,7 @@ const planeOps = require("./planeOps-B5oUs8oF.cjs");
|
|
|
3
3
|
const occtBoundary = require("./occtBoundary-DRn81X_r.cjs");
|
|
4
4
|
const faceFns = require("./faceFns-BiADk4Ys.cjs");
|
|
5
5
|
const curveFns = require("./curveFns-hiIFupBR.cjs");
|
|
6
|
-
const shapeHelpers = require("./shapeHelpers-
|
|
6
|
+
const shapeHelpers = require("./shapeHelpers-OCwPIfRh.cjs");
|
|
7
7
|
const helpers = require("./helpers-GNF_mnAY.cjs");
|
|
8
8
|
const cast = require("./cast-Au_UYuDI.cjs");
|
|
9
9
|
const core = require("./core.cjs");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const planeOps = require("./planeOps-B5oUs8oF.cjs");
|
|
3
|
-
const shapeHelpers = require("./shapeHelpers-
|
|
3
|
+
const shapeHelpers = require("./shapeHelpers-OCwPIfRh.cjs");
|
|
4
4
|
const occtBoundary = require("./occtBoundary-DRn81X_r.cjs");
|
|
5
5
|
const cast = require("./cast-Au_UYuDI.cjs");
|
|
6
|
-
const loft = require("./loft-
|
|
6
|
+
const loft = require("./loft-sFeoEebW.cjs");
|
|
7
7
|
const curveFns = require("./curveFns-hiIFupBR.cjs");
|
|
8
8
|
const faceFns = require("./faceFns-BiADk4Ys.cjs");
|
|
9
9
|
const core = require("./core.cjs");
|
|
10
10
|
const helpers = require("./helpers-GNF_mnAY.cjs");
|
|
11
|
-
const Blueprint = require("./Blueprint-
|
|
11
|
+
const Blueprint = require("./Blueprint-Cf2bQx9i.cjs");
|
|
12
12
|
function* pointsIteration(intersector) {
|
|
13
13
|
const nPoints = intersector.NbPoints();
|
|
14
14
|
if (!nPoints) return;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { c as vecScale, v as vecNormalize, h as vecCross, f as createPlane, D as DEG2RAD, R as RAD2DEG } from "./planeOps-
|
|
2
|
-
import {
|
|
3
|
-
import { o as ok, g as getKernel, e as err,
|
|
4
|
-
import { d as downcast } from "./cast-
|
|
5
|
-
import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-
|
|
6
|
-
import { i as curveStartPoint, j as curveTangentAt, a as curveIsClosed } from "./curveFns-
|
|
7
|
-
import { u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-
|
|
1
|
+
import { c as vecScale, v as vecNormalize, h as vecCross, f as createPlane, D as DEG2RAD, R as RAD2DEG } from "./planeOps-0MoExrYA.js";
|
|
2
|
+
import { l as makeFace, p as makeNewFaceWithinFace, b as assembleWire, A as zip } from "./shapeHelpers-CUd1Cw8j.js";
|
|
3
|
+
import { o as ok, g as getKernel, e as err, w as computationError, a as gcWithScope, u as unwrap, S as isOk, h as toVec3, z as createFace, H as createWire, X as localGC, y as createEdge } from "./occtBoundary-DBs4sGzK.js";
|
|
4
|
+
import { d as downcast } from "./cast-De1fNfOB.js";
|
|
5
|
+
import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-ByF6QLtd.js";
|
|
6
|
+
import { i as curveStartPoint, j as curveTangentAt, a as curveIsClosed } from "./curveFns-DnXGH3Rw.js";
|
|
7
|
+
import { u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-DcvflSoj.js";
|
|
8
8
|
import { bug } from "./core.js";
|
|
9
|
-
import { s as samePoint$1, n as normalize2d, b as subtract2d, c as add2d, e as crossProduct2d, f as scalarMultiply2d, p as polarToCartesian, d as distance2d, r as rotate2d, h as cartesianToPolar, i as polarAngle2d, P as PRECISION_INTERSECTION } from "./helpers-
|
|
10
|
-
import { C as Curve2D, e as make2dSegmentCurve, f as approximateAsBSpline, i as isPoint2D, g as make2dCircle, h as make2dThreePointArc, j as make2dArcFromCenter, a as BoundingBox2d, v as viewbox, k as asSVG, B as Blueprint, l as make2dTangentArc, n as make2dEllipseArc, o as make2dBezierCurve, b as axis2d, p as removeDuplicatePoints } from "./Blueprint-
|
|
9
|
+
import { s as samePoint$1, n as normalize2d, b as subtract2d, c as add2d, e as crossProduct2d, f as scalarMultiply2d, p as polarToCartesian, d as distance2d, r as rotate2d, h as cartesianToPolar, i as polarAngle2d, P as PRECISION_INTERSECTION } from "./helpers-CYQYjKFu.js";
|
|
10
|
+
import { C as Curve2D, e as make2dSegmentCurve, f as approximateAsBSpline, i as isPoint2D, g as make2dCircle, h as make2dThreePointArc, j as make2dArcFromCenter, a as BoundingBox2d, v as viewbox, k as asSVG, B as Blueprint, l as make2dTangentArc, n as make2dEllipseArc, o as make2dBezierCurve, b as axis2d, p as removeDuplicatePoints } from "./Blueprint-CBvm7PL1.js";
|
|
11
11
|
function* pointsIteration(intersector) {
|
|
12
12
|
const nPoints = intersector.NbPoints();
|
|
13
13
|
if (!nPoints) return;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const occtBoundary = require("./occtBoundary-DRn81X_r.cjs");
|
|
3
3
|
const planeOps = require("./planeOps-B5oUs8oF.cjs");
|
|
4
|
-
function buildCompoundOc(shapes) {
|
|
5
|
-
const oc = occtBoundary.getKernel().oc;
|
|
6
|
-
const builder = new oc.TopoDS_Builder();
|
|
7
|
-
const compound = new oc.TopoDS_Compound();
|
|
8
|
-
builder.MakeCompound(compound);
|
|
9
|
-
for (const s of shapes) {
|
|
10
|
-
builder.Add(compound, s);
|
|
11
|
-
}
|
|
12
|
-
builder.delete();
|
|
13
|
-
return compound;
|
|
14
|
-
}
|
|
15
4
|
function applyGlue(op, optimisation) {
|
|
16
5
|
const oc = occtBoundary.getKernel().oc;
|
|
17
6
|
if (optimisation === "commonFace") {
|
|
@@ -269,22 +258,12 @@ function sliceShape(shape, planes, options = {}) {
|
|
|
269
258
|
}
|
|
270
259
|
return occtBoundary.ok(results);
|
|
271
260
|
}
|
|
272
|
-
function buildCompound(shapes) {
|
|
273
|
-
const compound = buildCompoundOcInternal(shapes.map((s) => s.wrapped));
|
|
274
|
-
return occtBoundary.createCompound(compound);
|
|
275
|
-
}
|
|
276
|
-
const fuseShapes = fuseShape;
|
|
277
|
-
const intersectShapes = intersectShape;
|
|
278
261
|
exports.applyGlue = applyGlue;
|
|
279
|
-
exports.buildCompound = buildCompound;
|
|
280
|
-
exports.buildCompoundOc = buildCompoundOc;
|
|
281
262
|
exports.cutAll = cutAll;
|
|
282
263
|
exports.cutShape = cutShape;
|
|
283
264
|
exports.fuseAll = fuseAll;
|
|
284
265
|
exports.fuseShape = fuseShape;
|
|
285
|
-
exports.fuseShapes = fuseShapes;
|
|
286
266
|
exports.intersectShape = intersectShape;
|
|
287
|
-
exports.intersectShapes = intersectShapes;
|
|
288
267
|
exports.sectionShape = sectionShape;
|
|
289
268
|
exports.sliceShape = sliceShape;
|
|
290
269
|
exports.splitShape = splitShape;
|
|
@@ -1,16 +1,5 @@
|
|
|
1
|
-
import { g as getKernel,
|
|
2
|
-
import { r as resolvePlane, c as vecScale, d as vecAdd } from "./planeOps-
|
|
3
|
-
function buildCompoundOc(shapes) {
|
|
4
|
-
const oc = getKernel().oc;
|
|
5
|
-
const builder = new oc.TopoDS_Builder();
|
|
6
|
-
const compound = new oc.TopoDS_Compound();
|
|
7
|
-
builder.MakeCompound(compound);
|
|
8
|
-
for (const s of shapes) {
|
|
9
|
-
builder.Add(compound, s);
|
|
10
|
-
}
|
|
11
|
-
builder.delete();
|
|
12
|
-
return compound;
|
|
13
|
-
}
|
|
1
|
+
import { g as getKernel, o as ok, n as isErr, e as err, v as validationError, B as BrepErrorCode, c as castShape, p as occtError, a as gcWithScope, k as isShape3D, i as typeCastError } from "./occtBoundary-DBs4sGzK.js";
|
|
2
|
+
import { r as resolvePlane, c as vecScale, d as vecAdd } from "./planeOps-0MoExrYA.js";
|
|
14
3
|
function applyGlue(op, optimisation) {
|
|
15
4
|
const oc = getKernel().oc;
|
|
16
5
|
if (optimisation === "commonFace") {
|
|
@@ -268,24 +257,14 @@ function sliceShape(shape, planes, options = {}) {
|
|
|
268
257
|
}
|
|
269
258
|
return ok(results);
|
|
270
259
|
}
|
|
271
|
-
function buildCompound(shapes) {
|
|
272
|
-
const compound = buildCompoundOcInternal(shapes.map((s) => s.wrapped));
|
|
273
|
-
return createCompound(compound);
|
|
274
|
-
}
|
|
275
|
-
const fuseShapes = fuseShape;
|
|
276
|
-
const intersectShapes = intersectShape;
|
|
277
260
|
export {
|
|
278
261
|
applyGlue as a,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
262
|
+
cutShape as b,
|
|
263
|
+
cutAll as c,
|
|
264
|
+
fuseShape as d,
|
|
265
|
+
sliceShape as e,
|
|
283
266
|
fuseAll as f,
|
|
284
|
-
|
|
285
|
-
fuseShapes as h,
|
|
267
|
+
splitShape as g,
|
|
286
268
|
intersectShape as i,
|
|
287
|
-
intersectShapes as j,
|
|
288
|
-
sliceShape as k,
|
|
289
|
-
splitShape as l,
|
|
290
269
|
sectionShape as s
|
|
291
270
|
};
|
package/dist/brepjs.cjs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const occtBoundary = require("./occtBoundary-DRn81X_r.cjs");
|
|
4
|
-
const topology = require("./topology-
|
|
4
|
+
const topology = require("./topology-CH3GPRNk.cjs");
|
|
5
5
|
const planeOps = require("./planeOps-B5oUs8oF.cjs");
|
|
6
|
-
const Blueprint = require("./Blueprint-
|
|
6
|
+
const Blueprint = require("./Blueprint-Cf2bQx9i.cjs");
|
|
7
7
|
const curveFns = require("./curveFns-hiIFupBR.cjs");
|
|
8
|
-
const loft = require("./loft-
|
|
8
|
+
const loft = require("./loft-sFeoEebW.cjs");
|
|
9
9
|
const operations = require("./operations.cjs");
|
|
10
|
-
const boolean2D = require("./boolean2D-
|
|
10
|
+
const boolean2D = require("./boolean2D-DZz6fNbS.cjs");
|
|
11
11
|
const _2d = require("./2d.cjs");
|
|
12
12
|
const helpers = require("./helpers-GNF_mnAY.cjs");
|
|
13
13
|
const query = require("./query.cjs");
|
|
14
14
|
const io = require("./io.cjs");
|
|
15
|
-
const drawFns = require("./drawFns-
|
|
15
|
+
const drawFns = require("./drawFns-DlNydgox.cjs");
|
|
16
16
|
const shapeFns = require("./shapeFns-4yZh4lqz.cjs");
|
|
17
17
|
const faceFns = require("./faceFns-BiADk4Ys.cjs");
|
|
18
|
-
const booleanFns = require("./booleanFns-
|
|
18
|
+
const booleanFns = require("./booleanFns-DgLLOoeg.cjs");
|
|
19
19
|
const measurement = require("./measurement-NbK46U6B.cjs");
|
|
20
20
|
const finderFns = require("./finderFns-DptGRbGA.cjs");
|
|
21
21
|
const core = require("./core.cjs");
|
|
22
|
-
const shapeHelpers = require("./shapeHelpers-
|
|
22
|
+
const shapeHelpers = require("./shapeHelpers-OCwPIfRh.cjs");
|
|
23
23
|
const cast = require("./cast-Au_UYuDI.cjs");
|
|
24
24
|
const worker = require("./worker.cjs");
|
|
25
25
|
function isPoint(p) {
|
|
@@ -409,15 +409,11 @@ exports.projectPointOnFace = faceFns.projectPointOnFace;
|
|
|
409
409
|
exports.uvBounds = faceFns.uvBounds;
|
|
410
410
|
exports.uvCoordinates = faceFns.uvCoordinates;
|
|
411
411
|
exports.applyGlue = booleanFns.applyGlue;
|
|
412
|
-
exports.buildCompound = booleanFns.buildCompound;
|
|
413
|
-
exports.buildCompoundOc = booleanFns.buildCompoundOc;
|
|
414
412
|
exports.cutAll = booleanFns.cutAll;
|
|
415
413
|
exports.cutShape = booleanFns.cutShape;
|
|
416
414
|
exports.fuseAll = booleanFns.fuseAll;
|
|
417
415
|
exports.fuseShape = booleanFns.fuseShape;
|
|
418
|
-
exports.fuseShapes = booleanFns.fuseShapes;
|
|
419
416
|
exports.intersectShape = booleanFns.intersectShape;
|
|
420
|
-
exports.intersectShapes = booleanFns.intersectShapes;
|
|
421
417
|
exports.sectionShape = booleanFns.sectionShape;
|
|
422
418
|
exports.sliceShape = booleanFns.sliceShape;
|
|
423
419
|
exports.splitShape = booleanFns.splitShape;
|
|
@@ -440,7 +436,6 @@ exports.BrepBugError = core.BrepBugError;
|
|
|
440
436
|
exports.bug = core.bug;
|
|
441
437
|
exports.addHolesInFace = shapeHelpers.addHolesInFace;
|
|
442
438
|
exports.assembleWire = shapeHelpers.assembleWire;
|
|
443
|
-
exports.compoundShapes = shapeHelpers.compoundShapes;
|
|
444
439
|
exports.makeBSplineApproximation = shapeHelpers.makeBSplineApproximation;
|
|
445
440
|
exports.makeBezierCurve = shapeHelpers.makeBezierCurve;
|
|
446
441
|
exports.makeBox = shapeHelpers.makeBox;
|
package/dist/brepjs.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { u as unwrap, e as err, v as validationError, B as BrepErrorCode, g as getKernel, o as ok } from "./occtBoundary-
|
|
2
|
-
import { D, O, j, c, w, x,
|
|
3
|
-
import { a as a10, b as b2, c as c2, d, e, f as f2, g, h as h2, i as i2, j as j2, k as k2, l as l2, m, n as n2, o, p as p2, q as q2, r as r2, s as s2, t, u, v, w as w2, x as x2, y as y2, z as z2, A as A2, B, C as C2, D as D2, E as E2 } from "./topology-
|
|
4
|
-
import { D as D3, H as H2, R as R2, e as e2, f as f3, p as p3, r as r3, t as t2, d as d2, g as g2, h as h3, a as a11, b as b3, i as i3, j as j3, k as k3, l as l3, m as m2, v as v2, n as n3, o as o2, q as q3, c as c3, s as s3 } from "./planeOps-
|
|
5
|
-
import { B as B2, a as a12, C as C3, b as b4, m as m3, c as c4, d as d3, r as r4, s as s4, t as t3 } from "./Blueprint-
|
|
6
|
-
import { b as b5, d as d4, a as a13, e as e3, c as c5, f as f4, h as h4, i as i4, j as j4, k as k4, l as l4, g as g3, m as m4, n as n4, o as o3 } from "./curveFns-
|
|
7
|
-
import { b as b6, g as g4, l as l5, r as r5 } from "./loft-
|
|
1
|
+
import { u as unwrap, e as err, v as validationError, B as BrepErrorCode, g as getKernel, o as ok } from "./occtBoundary-DBs4sGzK.js";
|
|
2
|
+
import { D, O, j, c, s, w, x, y, z, A, C, E, F, G, H, I, J, K, L, M, a, b, N, P, Q, r, n, R, S, T, k, U, V, W, l, X, Y, Z, _, $, p, a0, q, a1, a2, f, a3, h, a4, a5, i, a6, a7, a8, a9, aa, ab, ac } from "./occtBoundary-DBs4sGzK.js";
|
|
3
|
+
import { a as a10, b as b2, c as c2, d, e, f as f2, g, h as h2, i as i2, j as j2, k as k2, l as l2, m, n as n2, o, p as p2, q as q2, r as r2, s as s2, t, u, v, w as w2, x as x2, y as y2, z as z2, A as A2, B, C as C2, D as D2, E as E2 } from "./topology-BP9i1Anq.js";
|
|
4
|
+
import { D as D3, H as H2, R as R2, e as e2, f as f3, p as p3, r as r3, t as t2, d as d2, g as g2, h as h3, a as a11, b as b3, i as i3, j as j3, k as k3, l as l3, m as m2, v as v2, n as n3, o as o2, q as q3, c as c3, s as s3 } from "./planeOps-0MoExrYA.js";
|
|
5
|
+
import { B as B2, a as a12, C as C3, b as b4, m as m3, c as c4, d as d3, r as r4, s as s4, t as t3 } from "./Blueprint-CBvm7PL1.js";
|
|
6
|
+
import { b as b5, d as d4, a as a13, e as e3, c as c5, f as f4, h as h4, i as i4, j as j4, k as k4, l as l4, g as g3, m as m4, n as n4, o as o3 } from "./curveFns-DnXGH3Rw.js";
|
|
7
|
+
import { b as b6, g as g4, l as l5, r as r5 } from "./loft-ByF6QLtd.js";
|
|
8
8
|
import { addChild, addStep, circularPattern, collectShapes, complexExtrude, countNodes, createAssembly, createAssemblyNode, createHistory, createRegistry, exportAssemblySTEP, extrudeFace, findNode, findStep, getHistoryShape, linearPattern, loftWires, modifyStep, registerOperation, registerShape, removeChild, replayFrom, replayHistory, revolveFace, stepCount, stepsFrom, supportExtrude, sweep, twistExtrude, undoLast, updateNode, walkAssembly } from "./operations.js";
|
|
9
|
-
import { B as B3, a as a14, b as b7, C as C4, F as F2, S as S2, c as c6, d as d5, f as f5, e as e4, i as i5, g as g5, o as o4, p as p4, r as r6 } from "./boolean2D-
|
|
9
|
+
import { B as B3, a as a14, b as b7, C as C4, F as F2, S as S2, c as c6, d as d5, f as f5, e as e4, i as i5, g as g5, o as o4, p as p4, r as r6 } from "./boolean2D-Dsb7_zFc.js";
|
|
10
10
|
import { blueprintBoundingBox, blueprintIsInside, blueprintOrientation, blueprintToSVGPathD, createBlueprint, curve2dBoundingBox, curve2dDistanceFrom, curve2dFirstPoint, curve2dIsOnCurve, curve2dLastPoint, curve2dParameter, curve2dSplitAt, curve2dTangentAt, cutBlueprint2D, fuseBlueprint2D, intersectBlueprint2D, mirrorBlueprint, reverseCurve, rotateBlueprint, scaleBlueprint, sketchBlueprintOnFace, sketchBlueprintOnPlane, stretchBlueprint, translateBlueprint } from "./2d.js";
|
|
11
|
-
import { g as g6 } from "./helpers-
|
|
11
|
+
import { g as g6 } from "./helpers-CYQYjKFu.js";
|
|
12
12
|
import { combineFinderFilters } from "./query.js";
|
|
13
13
|
import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
|
|
14
|
-
import { C as C5, D as D4, a as a15, S as S3, b as b8, X as X2, Y as Y2, c as c7, d as d6, e as e5, f as f6, Z as Z2, g as g7, h as h5, i as i6, j as j5, k as k5, l as l6, m as m5, n as n5, o as o5, p as p5, q as q4, r as r7, s as s5, t as t4, u as u2, v as v3, w as w3, x as x3, y as y3, z as z3, _ as _2, $ as $2, a0 as a02, A as A3, a1 as a16, B as B4, 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 as L2, M as M2, N as N2, O as O2, P as P2, Q as Q2, R as R3, T as T2, U as U2, a3 as a32, V as V2, a4 as a42, W as W2 } from "./drawFns-
|
|
15
|
-
import { c as c8, d as d7, a as a17, b as b9, e as e6, g as g8, f as f7, h as h6, j as j6, i as i7, k as k6, l as l7, m as m6, n as n6, o as o6, p as p6, r as r8, s as s6, q as q5, t as t5, u as u3, v as v4 } from "./shapeFns-
|
|
16
|
-
import { c as c9, f as f8, a as a18, b as b10, d as d8, g as g9, i as i8, n as n7, o as o7, p as p7, e as e7, u as u4, h as h7 } from "./faceFns-
|
|
17
|
-
import { a as a19,
|
|
18
|
-
import { c as c11, m as m7, a as a20, b as b12, d as d10, e as e9, f as f10, g as g11, h as
|
|
19
|
-
import { c as c12, e as e10, f as f11, v as v5, w as w4 } from "./finderFns-
|
|
14
|
+
import { C as C5, D as D4, a as a15, S as S3, b as b8, X as X2, Y as Y2, c as c7, d as d6, e as e5, f as f6, Z as Z2, g as g7, h as h5, i as i6, j as j5, k as k5, l as l6, m as m5, n as n5, o as o5, p as p5, q as q4, r as r7, s as s5, t as t4, u as u2, v as v3, w as w3, x as x3, y as y3, z as z3, _ as _2, $ as $2, a0 as a02, A as A3, a1 as a16, B as B4, 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 as L2, M as M2, N as N2, O as O2, P as P2, Q as Q2, R as R3, T as T2, U as U2, a3 as a32, V as V2, a4 as a42, W as W2 } from "./drawFns-CQxs0Sz2.js";
|
|
15
|
+
import { c as c8, d as d7, a as a17, b as b9, e as e6, g as g8, f as f7, h as h6, j as j6, i as i7, k as k6, l as l7, m as m6, n as n6, o as o6, p as p6, r as r8, s as s6, q as q5, t as t5, u as u3, v as v4 } from "./shapeFns-VyO-9N-6.js";
|
|
16
|
+
import { c as c9, f as f8, a as a18, b as b10, d as d8, g as g9, i as i8, n as n7, o as o7, p as p7, e as e7, u as u4, h as h7 } from "./faceFns-DcvflSoj.js";
|
|
17
|
+
import { a as a19, c as c10, b as b11, f as f9, d as d9, i as i9, s as s7, e as e8, g as g10 } from "./booleanFns-u4DnXrX3.js";
|
|
18
|
+
import { c as c11, m as m7, a as a20, b as b12, d as d10, e as e9, f as f10, g as g11, h as h8, i as i10 } from "./measurement-CrsEV5Tg.js";
|
|
19
|
+
import { c as c12, e as e10, f as f11, v as v5, w as w4 } from "./finderFns-ti3qUFpJ.js";
|
|
20
20
|
import { BrepBugError, bug } from "./core.js";
|
|
21
|
-
import { a as a21, b as b13,
|
|
22
|
-
import { a as a23, c as c14, b as b14, d as d12, e as e12, i as i12, s as s9 } from "./cast-
|
|
21
|
+
import { a as a21, b as b13, m as m8, c as c13, d as d11, e as e11, f as f12, g as g12, h as h9, i as i11, j as j7, k as k7, l as l8, n as n8, o as o8, p as p8, q as q6, r as r9, s as s8, t as t6, u as u5, v as v6, w as w5, x as x4, y as y4, z as z4 } from "./shapeHelpers-CUd1Cw8j.js";
|
|
22
|
+
import { a as a23, c as c14, b as b14, d as d12, e as e12, i as i12, s as s9 } from "./cast-De1fNfOB.js";
|
|
23
23
|
import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
|
|
24
24
|
function isPoint(p9) {
|
|
25
25
|
if (Array.isArray(p9)) return p9.length === 3 || p9.length === 2;
|
|
@@ -72,10 +72,10 @@ function checkInterference(shape1, shape2, tolerance = 1e-6) {
|
|
|
72
72
|
function checkAllInterferences(shapes, tolerance = 1e-6) {
|
|
73
73
|
const pairs = [];
|
|
74
74
|
shapes.forEach((si, i13) => {
|
|
75
|
-
for (let
|
|
76
|
-
const result = unwrap(checkInterference(si, shapes[
|
|
75
|
+
for (let j8 = i13 + 1; j8 < shapes.length; j8++) {
|
|
76
|
+
const result = unwrap(checkInterference(si, shapes[j8], tolerance));
|
|
77
77
|
if (result.hasInterference) {
|
|
78
|
-
pairs.push({ i: i13, j:
|
|
78
|
+
pairs.push({ i: i13, j: j8, result });
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
});
|
|
@@ -121,8 +121,6 @@ export {
|
|
|
121
121
|
blueprintToDXF,
|
|
122
122
|
blueprintToSVGPathD,
|
|
123
123
|
bug,
|
|
124
|
-
b11 as buildCompound,
|
|
125
|
-
c10 as buildCompoundOc,
|
|
126
124
|
X2 as cameraFromPlane,
|
|
127
125
|
Y2 as cameraLookAt,
|
|
128
126
|
c14 as cast,
|
|
@@ -135,23 +133,22 @@ export {
|
|
|
135
133
|
c9 as classifyPointOnFace,
|
|
136
134
|
e as clearMeshCache,
|
|
137
135
|
c8 as cloneShape,
|
|
138
|
-
|
|
136
|
+
s as collect,
|
|
139
137
|
collectShapes,
|
|
140
138
|
combineFinderFilters,
|
|
141
139
|
complexExtrude,
|
|
142
|
-
c13 as compoundShapes,
|
|
143
140
|
c7 as compoundSketchExtrude,
|
|
144
141
|
d6 as compoundSketchFace,
|
|
145
142
|
e5 as compoundSketchLoft,
|
|
146
143
|
f6 as compoundSketchRevolve,
|
|
147
|
-
|
|
144
|
+
w as computationError,
|
|
148
145
|
c12 as cornerFinder,
|
|
149
146
|
countNodes,
|
|
150
147
|
createAssembly,
|
|
151
148
|
createAssemblyNode,
|
|
152
149
|
createBlueprint,
|
|
153
150
|
Z2 as createCamera,
|
|
154
|
-
|
|
151
|
+
x as createCompound,
|
|
155
152
|
c11 as createDistanceQuery,
|
|
156
153
|
y as createEdge,
|
|
157
154
|
z as createFace,
|
|
@@ -187,10 +184,10 @@ export {
|
|
|
187
184
|
i4 as curveStartPoint,
|
|
188
185
|
j4 as curveTangentAt,
|
|
189
186
|
c6 as cut2D,
|
|
190
|
-
|
|
187
|
+
c10 as cutAll,
|
|
191
188
|
cutBlueprint2D,
|
|
192
189
|
d5 as cutBlueprints,
|
|
193
|
-
|
|
190
|
+
b11 as cutShape,
|
|
194
191
|
dequeueTask,
|
|
195
192
|
d7 as describeShape,
|
|
196
193
|
g7 as deserializeDrawing,
|
|
@@ -248,8 +245,7 @@ export {
|
|
|
248
245
|
f9 as fuseAll,
|
|
249
246
|
fuseBlueprint2D,
|
|
250
247
|
e4 as fuseBlueprints,
|
|
251
|
-
|
|
252
|
-
h8 as fuseShapes,
|
|
248
|
+
d9 as fuseShape,
|
|
253
249
|
M as gcWithObject,
|
|
254
250
|
a as gcWithScope,
|
|
255
251
|
g4 as genericSweep,
|
|
@@ -283,15 +279,14 @@ export {
|
|
|
283
279
|
intersectBlueprint2D,
|
|
284
280
|
g5 as intersectBlueprints,
|
|
285
281
|
i9 as intersectShape,
|
|
286
|
-
j7 as intersectShapes,
|
|
287
282
|
P as ioError,
|
|
288
283
|
isChamferRadius,
|
|
289
284
|
e12 as isCompSolid,
|
|
290
285
|
Q as isCompound,
|
|
291
286
|
isDisposeRequest,
|
|
292
|
-
|
|
287
|
+
r as isEdge,
|
|
293
288
|
j6 as isEqualShape,
|
|
294
|
-
|
|
289
|
+
n as isErr,
|
|
295
290
|
isErrorResponse,
|
|
296
291
|
R as isFace,
|
|
297
292
|
isFilletRadius,
|
|
@@ -326,31 +321,31 @@ export {
|
|
|
326
321
|
loftWires,
|
|
327
322
|
m8 as makeBSplineApproximation,
|
|
328
323
|
A3 as makeBaseBox,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
324
|
+
c13 as makeBezierCurve,
|
|
325
|
+
d11 as makeBox,
|
|
326
|
+
e11 as makeCircle,
|
|
327
|
+
f12 as makeCompound,
|
|
328
|
+
g12 as makeCone,
|
|
329
|
+
h9 as makeCylinder,
|
|
330
|
+
i11 as makeEllipse,
|
|
331
|
+
j7 as makeEllipseArc,
|
|
332
|
+
k7 as makeEllipsoid,
|
|
333
|
+
l8 as makeFace,
|
|
334
|
+
n8 as makeHelix,
|
|
335
|
+
o8 as makeLine,
|
|
336
|
+
p8 as makeNewFaceWithinFace,
|
|
337
|
+
q6 as makeNonPlanarFace,
|
|
338
|
+
r9 as makeOffset,
|
|
344
339
|
m3 as makePlane,
|
|
345
340
|
c4 as makePlaneFromFace,
|
|
346
|
-
|
|
341
|
+
s8 as makePolygon,
|
|
347
342
|
a16 as makeProjectedEdges,
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
343
|
+
t6 as makeSolid,
|
|
344
|
+
u5 as makeSphere,
|
|
345
|
+
v6 as makeTangentArc,
|
|
346
|
+
w5 as makeThreePointArc,
|
|
347
|
+
x4 as makeTorus,
|
|
348
|
+
y4 as makeVertex,
|
|
354
349
|
Y as map,
|
|
355
350
|
Z as mapErr,
|
|
356
351
|
_ as match,
|
|
@@ -361,7 +356,7 @@ export {
|
|
|
361
356
|
e9 as measureLength,
|
|
362
357
|
f10 as measureLinearProps,
|
|
363
358
|
g11 as measureSurfaceProps,
|
|
364
|
-
|
|
359
|
+
h8 as measureVolume,
|
|
365
360
|
i10 as measureVolumeProps,
|
|
366
361
|
t as meshShape,
|
|
367
362
|
u as meshShapeEdges,
|
|
@@ -372,7 +367,7 @@ export {
|
|
|
372
367
|
modifyStep,
|
|
373
368
|
$ as moduleInitError,
|
|
374
369
|
n7 as normalAt,
|
|
375
|
-
|
|
370
|
+
p as occtError,
|
|
376
371
|
v as offsetShape,
|
|
377
372
|
o3 as offsetWire2D,
|
|
378
373
|
ok,
|
|
@@ -433,8 +428,8 @@ export {
|
|
|
433
428
|
a32 as sketchText,
|
|
434
429
|
V2 as sketchWires,
|
|
435
430
|
a2 as sketcherStateError,
|
|
436
|
-
|
|
437
|
-
|
|
431
|
+
e8 as sliceShape,
|
|
432
|
+
g10 as splitShape,
|
|
438
433
|
stepCount,
|
|
439
434
|
stepsFrom,
|
|
440
435
|
stretchBlueprint,
|
|
@@ -486,7 +481,7 @@ export {
|
|
|
486
481
|
v4 as vertexPosition,
|
|
487
482
|
D2 as verticesOfEdge,
|
|
488
483
|
walkAssembly,
|
|
489
|
-
|
|
484
|
+
z4 as weldShellsAndFaces,
|
|
490
485
|
w4 as wireFinder,
|
|
491
486
|
E2 as wiresOfFace,
|
|
492
487
|
a9 as withOcDir,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as err, i as typeCastError, o as ok, c as castShape, j as andThen, g as getKernel, k as isShape3D$1, l as isWire$1 } from "./occtBoundary-
|
|
1
|
+
import { e as err, i as typeCastError, o as ok, c as castShape, j as andThen, g as getKernel, k as isShape3D$1, l as isWire$1 } from "./occtBoundary-DBs4sGzK.js";
|
|
2
2
|
let _topoMap = null;
|
|
3
3
|
const asTopo = (entity) => {
|
|
4
4
|
if (!_topoMap) {
|
package/dist/core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D, O, j, c,
|
|
2
|
-
import { D as D2, H, R as R2, e as e2, f, p as p2, r as r2, t, d, g, h as h2, a, b as b2, i as i2, j as j2, k as k2, l as l2, m, v as v2, n, o as o2, q as q2, c as c2, s as s2 } from "./planeOps-
|
|
1
|
+
import { D, O, j, c, s, w, A, C, e, I, b, P, Q, r, n, R, S, T, k, U, V, W, l, Y, Z, _, $, p, o, q, a1, a2, a3, h, a4, a5, i, u, a6, a7, a8, v, ac } from "./occtBoundary-DBs4sGzK.js";
|
|
2
|
+
import { D as D2, H, R as R2, e as e2, f, p as p2, r as r2, t, d, g, h as h2, a, b as b2, i as i2, j as j2, k as k2, l as l2, m, v as v2, n as n2, o as o2, q as q2, c as c2, s as s2 } from "./planeOps-0MoExrYA.js";
|
|
3
3
|
class BrepBugError extends Error {
|
|
4
4
|
location;
|
|
5
5
|
constructor(location, message) {
|
|
@@ -21,8 +21,8 @@ export {
|
|
|
21
21
|
j as andThen,
|
|
22
22
|
bug,
|
|
23
23
|
c as castShape,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
s as collect,
|
|
25
|
+
w as computationError,
|
|
26
26
|
A as createHandle,
|
|
27
27
|
e2 as createNamedPlane,
|
|
28
28
|
C as createOcHandle,
|
|
@@ -32,8 +32,8 @@ export {
|
|
|
32
32
|
b as getShapeKind,
|
|
33
33
|
P as ioError,
|
|
34
34
|
Q as isCompound,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
r as isEdge,
|
|
36
|
+
n as isErr,
|
|
37
37
|
R as isFace,
|
|
38
38
|
S as isOk,
|
|
39
39
|
T as isShape1D,
|
|
@@ -46,7 +46,7 @@ export {
|
|
|
46
46
|
Z as mapErr,
|
|
47
47
|
_ as match,
|
|
48
48
|
$ as moduleInitError,
|
|
49
|
-
|
|
49
|
+
p as occtError,
|
|
50
50
|
o as ok,
|
|
51
51
|
p2 as pivotPlane,
|
|
52
52
|
q as queryError,
|
|
@@ -75,7 +75,7 @@ export {
|
|
|
75
75
|
l2 as vecLengthSq,
|
|
76
76
|
m as vecNegate,
|
|
77
77
|
v2 as vecNormalize,
|
|
78
|
-
|
|
78
|
+
n2 as vecProjectToPlane,
|
|
79
79
|
o2 as vecRepr,
|
|
80
80
|
q2 as vecRotate,
|
|
81
81
|
c2 as vecScale,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as err, i as typeCastError, o as ok, g as getKernel, u as unwrap, c as castShape,
|
|
1
|
+
import { e as err, i as typeCastError, o as ok, g as getKernel, u as unwrap, c as castShape, r as isEdge, l as isWire } from "./occtBoundary-DBs4sGzK.js";
|
|
2
2
|
let CURVE_TYPES_MAP = null;
|
|
3
3
|
const getCurveTypesMap = (refresh) => {
|
|
4
4
|
if (CURVE_TYPES_MAP && !refresh) return CURVE_TYPES_MAP;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { u as unwrap, g as getKernel, h as toVec3, H as createWire, X as localGC, z as createFace, S as isOk, R as isFace, m as makeOcAx2, a as gcWithScope, c as castShape, e as err, v as validationError, o as ok } from "./occtBoundary-
|
|
2
|
-
import {
|
|
3
|
-
import { r as resolvePlane, u as planeToWorld, w as planeToLocal, c as vecScale, v as vecNormalize, d as vecAdd, s as vecSub, h as vecCross, q as vecRotate, R as RAD2DEG, k as vecLength, i as vecEquals, D as DEG2RAD } from "./planeOps-
|
|
4
|
-
import { h as Flatbush, j as convertSvgEllipseParams, k as defaultsSplineConfig, S as Sketch, r as roundedRectangleBlueprint, b as Blueprints, C as CompoundBlueprint, c as cut2D, l as intersectCurves, f as fuse2D, m as make2dOffset, n as filletCurves, q as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, i as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-
|
|
5
|
-
import { f as faceCenter, n as normalAt, o as outerWire } from "./faceFns-
|
|
6
|
-
import { j as curveTangentAt, d as curveEndPoint, g as getCurveType, o as offsetWire2D } from "./curveFns-
|
|
7
|
-
import { d as downcast, c as cast } from "./cast-
|
|
8
|
-
import { d as mirror, B as Blueprint, C as Curve2D, e as make2dSegmentCurve, j as make2dArcFromCenter, q as approximateAsSvgCompatibleCurve, a as BoundingBox2d, u as edgeToCurve, w as make2dInerpolatedBSplineCurve, g as make2dCircle, x as make2dEllipse, y as deserializeCurve2D } from "./Blueprint-
|
|
1
|
+
import { u as unwrap, g as getKernel, h as toVec3, H as createWire, X as localGC, z as createFace, S as isOk, R as isFace, m as makeOcAx2, a as gcWithScope, c as castShape, e as err, v as validationError, o as ok } from "./occtBoundary-DBs4sGzK.js";
|
|
2
|
+
import { o as makeLine, w as makeThreePointArc, v as makeTangentArc, j as makeEllipseArc, c as makeBezierCurve, b as assembleWire, f as makeCompound, a as addHolesInFace, t as makeSolid, l as makeFace, e as makeCircle, i as makeEllipse, n as makeHelix, m as makeBSplineApproximation } from "./shapeHelpers-CUd1Cw8j.js";
|
|
3
|
+
import { r as resolvePlane, u as planeToWorld, w as planeToLocal, c as vecScale, v as vecNormalize, d as vecAdd, s as vecSub, h as vecCross, q as vecRotate, R as RAD2DEG, k as vecLength, i as vecEquals, D as DEG2RAD } from "./planeOps-0MoExrYA.js";
|
|
4
|
+
import { h as Flatbush, j as convertSvgEllipseParams, k as defaultsSplineConfig, S as Sketch, r as roundedRectangleBlueprint, b as Blueprints, C as CompoundBlueprint, c as cut2D, l as intersectCurves, f as fuse2D, m as make2dOffset, n as filletCurves, q as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, i as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-Dsb7_zFc.js";
|
|
5
|
+
import { f as faceCenter, n as normalAt, o as outerWire } from "./faceFns-DcvflSoj.js";
|
|
6
|
+
import { j as curveTangentAt, d as curveEndPoint, g as getCurveType, o as offsetWire2D } from "./curveFns-DnXGH3Rw.js";
|
|
7
|
+
import { d as downcast, c as cast } from "./cast-De1fNfOB.js";
|
|
8
|
+
import { d as mirror, B as Blueprint, C as Curve2D, e as make2dSegmentCurve, j as make2dArcFromCenter, q as approximateAsSvgCompatibleCurve, a as BoundingBox2d, u as edgeToCurve, w as make2dInerpolatedBSplineCurve, g as make2dCircle, x as make2dEllipse, y as deserializeCurve2D } from "./Blueprint-CBvm7PL1.js";
|
|
9
9
|
import { bug } from "./core.js";
|
|
10
|
-
import { d as distance2d, i as polarAngle2d, p as polarToCartesian, j as PRECISION_OFFSET, k as squareDistance2d, s as samePoint$1, b as subtract2d, c as add2d } from "./helpers-
|
|
11
|
-
import { b as getEdges } from "./shapeFns-
|
|
12
|
-
import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-
|
|
10
|
+
import { d as distance2d, i as polarAngle2d, p as polarToCartesian, j as PRECISION_OFFSET, k as squareDistance2d, s as samePoint$1, b as subtract2d, c as add2d } from "./helpers-CYQYjKFu.js";
|
|
11
|
+
import { b as getEdges } from "./shapeFns-VyO-9N-6.js";
|
|
12
|
+
import { b as basicFaceExtrusion, r as revolution, c as complexExtrude, t as twistExtrude } from "./loft-ByF6QLtd.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
|
-
import { c as cornerFinder } from "./finderFns-
|
|
14
|
+
import { c as cornerFinder } from "./finderFns-ti3qUFpJ.js";
|
|
15
15
|
const stitchCurves = (curves, precision = 1e-7) => {
|
|
16
16
|
const startPoints = new Flatbush(curves.length);
|
|
17
17
|
curves.forEach((c) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const occtBoundary = require("./occtBoundary-DRn81X_r.cjs");
|
|
3
|
-
const shapeHelpers = require("./shapeHelpers-
|
|
3
|
+
const shapeHelpers = require("./shapeHelpers-OCwPIfRh.cjs");
|
|
4
4
|
const planeOps = require("./planeOps-B5oUs8oF.cjs");
|
|
5
|
-
const boolean2D = require("./boolean2D-
|
|
5
|
+
const boolean2D = require("./boolean2D-DZz6fNbS.cjs");
|
|
6
6
|
const faceFns = require("./faceFns-BiADk4Ys.cjs");
|
|
7
7
|
const curveFns = require("./curveFns-hiIFupBR.cjs");
|
|
8
8
|
const cast = require("./cast-Au_UYuDI.cjs");
|
|
9
|
-
const Blueprint = require("./Blueprint-
|
|
9
|
+
const Blueprint = require("./Blueprint-Cf2bQx9i.cjs");
|
|
10
10
|
const core = require("./core.cjs");
|
|
11
11
|
const helpers = require("./helpers-GNF_mnAY.cjs");
|
|
12
12
|
const shapeFns = require("./shapeFns-4yZh4lqz.cjs");
|
|
13
|
-
const loft = require("./loft-
|
|
13
|
+
const loft = require("./loft-sFeoEebW.cjs");
|
|
14
14
|
const opentype = require("opentype.js");
|
|
15
15
|
const finderFns = require("./finderFns-DptGRbGA.cjs");
|
|
16
16
|
const stitchCurves = (curves, precision = 1e-7) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getKernel, h as toVec3, t as toOcPnt, u as unwrap, c as castShape, e as err, i as typeCastError, o as ok, a as gcWithScope } from "./occtBoundary-
|
|
2
|
-
import { i as iterTopo, d as downcast } from "./cast-
|
|
1
|
+
import { g as getKernel, h as toVec3, t as toOcPnt, u as unwrap, c as castShape, e as err, i as typeCastError, o as ok, a as gcWithScope } from "./occtBoundary-DBs4sGzK.js";
|
|
2
|
+
import { i as iterTopo, d as downcast } from "./cast-De1fNfOB.js";
|
|
3
3
|
function getSurfaceType(face) {
|
|
4
4
|
const oc = getKernel().oc;
|
|
5
5
|
const r = gcWithScope();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { e as err, q as queryError, o as ok, c as castShape, u as unwrap, g as getKernel, t as toOcPnt, a as gcWithScope } from "./occtBoundary-
|
|
2
|
-
import { v as vecNormalize, a as vecDistance, b as vecDot, D as DEG2RAD } from "./planeOps-
|
|
3
|
-
import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-
|
|
4
|
-
import { i as iterTopo, d as downcast } from "./cast-
|
|
5
|
-
import { v as vertexPosition, g as getHashCode, i as isSameShape } from "./shapeFns-
|
|
6
|
-
import { g as getSurfaceType, n as normalAt } from "./faceFns-
|
|
7
|
-
import { m as measureArea } from "./measurement-
|
|
8
|
-
import { g as getCurveType, c as curveLength, a as curveIsClosed } from "./curveFns-
|
|
1
|
+
import { e as err, q as queryError, o as ok, c as castShape, u as unwrap, g as getKernel, t as toOcPnt, a as gcWithScope } from "./occtBoundary-DBs4sGzK.js";
|
|
2
|
+
import { v as vecNormalize, a as vecDistance, b as vecDot, D as DEG2RAD } from "./planeOps-0MoExrYA.js";
|
|
3
|
+
import { a as angle2d, s as samePoint, d as distance2d } from "./helpers-CYQYjKFu.js";
|
|
4
|
+
import { i as iterTopo, d as downcast } from "./cast-De1fNfOB.js";
|
|
5
|
+
import { v as vertexPosition, g as getHashCode, i as isSameShape } from "./shapeFns-VyO-9N-6.js";
|
|
6
|
+
import { g as getSurfaceType, n as normalAt } from "./faceFns-DcvflSoj.js";
|
|
7
|
+
import { m as measureArea } from "./measurement-CrsEV5Tg.js";
|
|
8
|
+
import { g as getCurveType, c as curveLength, a as curveIsClosed } from "./curveFns-DnXGH3Rw.js";
|
|
9
9
|
function createFinder(topoKind, filters, getNormal) {
|
|
10
10
|
const withFilter = (pred) => createFinder(topoKind, [...filters, pred]);
|
|
11
11
|
const shouldKeep = (element) => filters.every((f) => f(element));
|