brepjs 9.6.3 → 9.6.5
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-d2_LvY6B.cjs → Blueprint-D73qryz7.cjs} +5 -5
- package/dist/{Blueprint-CYKndb-m.js → Blueprint-DebTNazC.js} +5 -5
- package/dist/{boolean2D-2FNq91d9.js → boolean2D-Dg9wSxP6.js} +7 -7
- package/dist/{boolean2D-Dka3g5RV.cjs → boolean2D-Die5sMjA.cjs} +7 -7
- package/dist/{booleanFns-B__TbZBW.js → booleanFns-D3QHXA3L.js} +3 -3
- package/dist/{booleanFns-DMOlWkJ4.cjs → booleanFns-uwsn5G2P.cjs} +3 -3
- package/dist/brepjs.cjs +16 -16
- package/dist/brepjs.js +28 -28
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-uYAUlaFe.cjs → cornerFinder-BcA7Chiv.cjs} +1 -1
- package/dist/{cornerFinder-DZdlj4v7.js → cornerFinder-DvYYBvKj.js} +1 -1
- package/dist/{curveFns-B8Zm1uv0.cjs → curveFns-BAXBhYiR.cjs} +1 -1
- package/dist/{curveFns-B_7hQI3U.js → curveFns-DY55OAr3.js} +1 -1
- package/dist/{drawFns-BVD_r8O4.js → drawFns-Diysw_m4.js} +10 -10
- package/dist/{drawFns-SmZiCMU3.cjs → drawFns-a74YTSws.cjs} +10 -10
- package/dist/{faceFns-B5KtZFi8.js → faceFns-BQ26A_zd.js} +1 -1
- package/dist/{faceFns-Cp8i0qjK.cjs → faceFns-CjRZGka6.cjs} +1 -1
- package/dist/{helpers-Bfimxlr6.cjs → helpers-D2N1HNiK.cjs} +4 -4
- package/dist/{helpers-DGIpFOYd.js → helpers-TF7WTmKB.js} +4 -4
- package/dist/io.cjs +3 -3
- package/dist/io.js +3 -3
- package/dist/kernel/modifierOps.d.ts.map +1 -1
- package/dist/{loft-McBRhzdH.cjs → loft-C55d1XrF.cjs} +3 -3
- package/dist/{loft-D25P77sU.js → loft-DK0_xi5M.js} +3 -3
- package/dist/{measurement-DdSojTK6.cjs → measurement-BF_JvjuA.cjs} +2 -2
- package/dist/{measurement-7O8eLipW.js → measurement-DQWf2-IP.js} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-DX-bZd8k.js → meshFns-CmZM1bAd.js} +2 -2
- package/dist/{meshFns-DqLUDMak.cjs → meshFns-DYdC0ztK.cjs} +2 -2
- package/dist/{operations-DLWCiLUN.cjs → operations-CMcb2KJ3.cjs} +5 -5
- package/dist/{operations-B1Gn17ka.js → operations-DhgY338f.js} +5 -5
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/query.cjs +4 -4
- package/dist/query.js +5 -5
- package/dist/{shapeFns-CUnLafcA.cjs → shapeFns-D6qzq_Cu.cjs} +2 -2
- package/dist/{shapeFns-BvtCYjbY.js → shapeFns-DBSqO7QJ.js} +2 -2
- package/dist/{shapeTypes-Jr-99unm.js → shapeTypes-1WVcBBn_.js} +6 -4
- package/dist/{shapeTypes-C6zr8Dee.cjs → shapeTypes-BHy5rqqk.cjs} +6 -4
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{surfaceBuilders-CfaDW_DV.js → surfaceBuilders-C_UpU97c.js} +2 -2
- package/dist/{surfaceBuilders-CpaT0CKS.cjs → surfaceBuilders-DU6Pq2ju.cjs} +2 -2
- package/dist/{topology-DK_tE2Go.js → topology-B-UCQkll.js} +6 -6
- package/dist/{topology-GWbwgkGe.cjs → topology-BrCU7nI6.cjs} +6 -6
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +5 -4
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-D73qryz7.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-Die5sMjA.cjs");
|
|
5
5
|
function reverseCurve(curve) {
|
|
6
6
|
const cloned = curve.clone();
|
|
7
7
|
cloned.reverse();
|
package/dist/2d.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as Blueprint } from "./Blueprint-
|
|
2
|
-
import { d, C } from "./Blueprint-
|
|
3
|
-
import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-
|
|
1
|
+
import { B as Blueprint } from "./Blueprint-DebTNazC.js";
|
|
2
|
+
import { d, C } from "./Blueprint-DebTNazC.js";
|
|
3
|
+
import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-Dg9wSxP6.js";
|
|
4
4
|
function reverseCurve(curve) {
|
|
5
5
|
const cloned = curve.clone();
|
|
6
6
|
cloned.reverse();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
3
3
|
const types = require("./types-CA_xrgDq.cjs");
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const faceFns = require("./faceFns-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
4
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-BAXBhYiR.cjs");
|
|
7
7
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
8
|
-
const helpers = require("./helpers-
|
|
8
|
+
const helpers = require("./helpers-D2N1HNiK.cjs");
|
|
9
9
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
10
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const surfaceBuilders = require("./surfaceBuilders-DU6Pq2ju.cjs");
|
|
11
11
|
const result = require("./result.cjs");
|
|
12
12
|
function makePlane(plane, origin) {
|
|
13
13
|
if (plane && typeof plane !== "string") {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as resolvePlane } from "./vectors-B8RRTytu.js";
|
|
2
2
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
3
|
-
import { q as getKernel, y as getKernel2D, z as registerForCleanup, A as unregisterFromCleanup, s as createEdge, r as createWire } from "./shapeTypes-
|
|
4
|
-
import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-
|
|
5
|
-
import { g as getOrientation } from "./curveFns-
|
|
3
|
+
import { q as getKernel, y as getKernel2D, z as registerForCleanup, A as unregisterFromCleanup, s as createEdge, r as createWire } from "./shapeTypes-1WVcBBn_.js";
|
|
4
|
+
import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-BQ26A_zd.js";
|
|
5
|
+
import { g as getOrientation } from "./curveFns-DY55OAr3.js";
|
|
6
6
|
import { o as ok, e as err, b as computationError, u as unwrap, x as validationError } from "./errors-lBwyc8YG.js";
|
|
7
|
-
import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, n as normalize2d, e as subtract2d, g as getSingleFace } from "./helpers-
|
|
7
|
+
import { d as distance2d, s as samePoint, b as scalarMultiply2d, c as add2d, n as normalize2d, e as subtract2d, g as getSingleFace } from "./helpers-TF7WTmKB.js";
|
|
8
8
|
import { R as RAD2DEG, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
9
|
-
import { m as makeFace } from "./surfaceBuilders-
|
|
9
|
+
import { m as makeFace } from "./surfaceBuilders-C_UpU97c.js";
|
|
10
10
|
import { bug } from "./result.js";
|
|
11
11
|
function makePlane(plane, origin) {
|
|
12
12
|
if (plane && typeof plane !== "string") {
|
|
@@ -45,16 +45,16 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
45
45
|
};
|
|
46
46
|
import { a as createPlane } from "./vectors-B8RRTytu.js";
|
|
47
47
|
import { o as ok, e as err, b as computationError, u as unwrap, g as isOk } from "./errors-lBwyc8YG.js";
|
|
48
|
-
import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-
|
|
48
|
+
import { d as downcast, u as uvBounds, p as pointOnSurface, n as normalAt } from "./faceFns-BQ26A_zd.js";
|
|
49
49
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
50
50
|
import { n as vecScale, j as vecNormalize, b as vecCross, D as DEG2RAD, R as RAD2DEG } from "./vecOps-ZDdZWbwT.js";
|
|
51
|
-
import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-
|
|
52
|
-
import { y as getKernel2D, t as createFace, r as createWire, q as getKernel, s as createEdge, D as DisposalScope } from "./shapeTypes-
|
|
53
|
-
import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-
|
|
54
|
-
import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-
|
|
51
|
+
import { r as revolution, c as complexExtrude, t as twistExtrude, b as basicFaceExtrusion, g as genericSweep, l as loft } from "./loft-DK0_xi5M.js";
|
|
52
|
+
import { y as getKernel2D, t as createFace, r as createWire, q as getKernel, s as createEdge, D as DisposalScope } from "./shapeTypes-1WVcBBn_.js";
|
|
53
|
+
import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-DY55OAr3.js";
|
|
54
|
+
import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-C_UpU97c.js";
|
|
55
55
|
import { bug } from "./result.js";
|
|
56
|
-
import { s as samePoint$1, n as normalize2d, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-
|
|
57
|
-
import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as removeDuplicatePoints } from "./Blueprint-
|
|
56
|
+
import { s as samePoint$1, n as normalize2d, e as subtract2d, c as add2d, i as crossProduct2d, b as scalarMultiply2d, f as polarToCartesian, r as rotate2d, j as cartesianToPolar, d as distance2d, p as polarAngle2d, k as PRECISION_INTERSECTION } from "./helpers-TF7WTmKB.js";
|
|
57
|
+
import { C as Curve2D, a as make2dSegmentCurve, j as approximateAsBSpline, b as make2dArcFromCenter, k as isPoint2D, g as make2dCircle, l as make2dThreePointArc, d as BoundingBox2d, v as viewbox, n as asSVG, B as Blueprint, o as make2dEllipseArc, p as make2dTangentArc, q as make2dBezierCurve, r as removeDuplicatePoints } from "./Blueprint-DebTNazC.js";
|
|
58
58
|
const intersectCurves = (first, second, precision = 1e-9) => {
|
|
59
59
|
if (first.boundingBox.isOut(second.boundingBox))
|
|
60
60
|
return ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
|
|
@@ -46,16 +46,16 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
46
46
|
};
|
|
47
47
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
48
48
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
49
|
-
const faceFns = require("./faceFns-
|
|
49
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
50
50
|
const types = require("./types-CA_xrgDq.cjs");
|
|
51
51
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
52
|
-
const loft = require("./loft-
|
|
53
|
-
const shapeTypes = require("./shapeTypes-
|
|
54
|
-
const curveFns = require("./curveFns-
|
|
55
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
52
|
+
const loft = require("./loft-C55d1XrF.cjs");
|
|
53
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
54
|
+
const curveFns = require("./curveFns-BAXBhYiR.cjs");
|
|
55
|
+
const surfaceBuilders = require("./surfaceBuilders-DU6Pq2ju.cjs");
|
|
56
56
|
const result = require("./result.cjs");
|
|
57
|
-
const helpers = require("./helpers-
|
|
58
|
-
const Blueprint = require("./Blueprint-
|
|
57
|
+
const helpers = require("./helpers-D2N1HNiK.cjs");
|
|
58
|
+
const Blueprint = require("./Blueprint-D73qryz7.cjs");
|
|
59
59
|
const intersectCurves = (first, second, precision = 1e-9) => {
|
|
60
60
|
if (first.boundingBox.isOut(second.boundingBox))
|
|
61
61
|
return errors.ok({ intersections: [], commonSegments: [], commonSegmentsPoints: [] });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { q as getKernel, c as castShape, j as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, c as castShape, j as isShape3D } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { o as ok, d as isErr, e as err, x as validationError, B as BrepErrorCode, p as typeCastError, k as kernelError } from "./errors-lBwyc8YG.js";
|
|
3
3
|
import { r as resolvePlane } from "./vectors-B8RRTytu.js";
|
|
4
4
|
import { H as HASH_CODE_MAX, n as vecScale, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
|
|
5
|
-
import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-
|
|
6
|
-
import { m as makeFace } from "./surfaceBuilders-
|
|
5
|
+
import { a as getFaces, p as propagateOriginsFromEvolution, b as propagateOriginsByHash, g as getFaceOrigins, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-DBSqO7QJ.js";
|
|
6
|
+
import { m as makeFace } from "./surfaceBuilders-C_UpU97c.js";
|
|
7
7
|
const shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
const tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
function hasFaceTags(shape) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
3
3
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
4
4
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
5
5
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
6
|
-
const shapeFns = require("./shapeFns-
|
|
7
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
7
|
+
const surfaceBuilders = require("./surfaceBuilders-DU6Pq2ju.cjs");
|
|
8
8
|
const shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
const tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function hasFaceTags(shape) {
|
package/dist/brepjs.cjs
CHANGED
|
@@ -45,30 +45,30 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
45
45
|
return next();
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
48
|
-
const shapeTypes = require("./shapeTypes-
|
|
48
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
49
49
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
50
50
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
51
|
-
const Blueprint = require("./Blueprint-
|
|
52
|
-
const loft$2 = require("./loft-
|
|
53
|
-
const operations = require("./operations-
|
|
54
|
-
const boolean2D = require("./boolean2D-
|
|
51
|
+
const Blueprint = require("./Blueprint-D73qryz7.cjs");
|
|
52
|
+
const loft$2 = require("./loft-C55d1XrF.cjs");
|
|
53
|
+
const operations = require("./operations-CMcb2KJ3.cjs");
|
|
54
|
+
const boolean2D = require("./boolean2D-Die5sMjA.cjs");
|
|
55
55
|
const _2d = require("./2d.cjs");
|
|
56
|
-
const helpers = require("./helpers-
|
|
56
|
+
const helpers = require("./helpers-D2N1HNiK.cjs");
|
|
57
57
|
const io = require("./io.cjs");
|
|
58
|
-
const drawFns = require("./drawFns-
|
|
58
|
+
const drawFns = require("./drawFns-a74YTSws.cjs");
|
|
59
59
|
const types = require("./types-CA_xrgDq.cjs");
|
|
60
60
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
61
|
-
const shapeFns = require("./shapeFns-
|
|
62
|
-
const booleanFns = require("./booleanFns-
|
|
63
|
-
const topology = require("./topology-
|
|
64
|
-
const curveFns = require("./curveFns-
|
|
65
|
-
const faceFns = require("./faceFns-
|
|
66
|
-
const meshFns = require("./meshFns-
|
|
67
|
-
const measurement = require("./measurement-
|
|
68
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
61
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
62
|
+
const booleanFns = require("./booleanFns-uwsn5G2P.cjs");
|
|
63
|
+
const topology = require("./topology-BrCU7nI6.cjs");
|
|
64
|
+
const curveFns = require("./curveFns-BAXBhYiR.cjs");
|
|
65
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
66
|
+
const meshFns = require("./meshFns-DYdC0ztK.cjs");
|
|
67
|
+
const measurement = require("./measurement-BF_JvjuA.cjs");
|
|
68
|
+
const surfaceBuilders = require("./surfaceBuilders-DU6Pq2ju.cjs");
|
|
69
69
|
const query = require("./query.cjs");
|
|
70
70
|
const result = require("./result.cjs");
|
|
71
|
-
const cornerFinder = require("./cornerFinder-
|
|
71
|
+
const cornerFinder = require("./cornerFinder-BcA7Chiv.cjs");
|
|
72
72
|
const worker = require("./worker.cjs");
|
|
73
73
|
function supportsProjection(kernel) {
|
|
74
74
|
return "projectShape" in kernel;
|
package/dist/brepjs.js
CHANGED
|
@@ -43,45 +43,45 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
43
43
|
};
|
|
44
44
|
return next();
|
|
45
45
|
};
|
|
46
|
-
import { c as castShape, D as DisposalScope, q as getKernel, e as isFace, k as isShell, l as isSolid, j as isShape3D, x as createSolid, r as createWire, d as isEdge, n as isWire } from "./shapeTypes-
|
|
47
|
-
import { u, s, t, a, b, B, v, g, C, i, f, h, m, E, F, w, o, p } from "./shapeTypes-
|
|
46
|
+
import { c as castShape, D as DisposalScope, q as getKernel, e as isFace, k as isShell, l as isSolid, j as isShape3D, x as createSolid, r as createWire, d as isEdge, n as isWire } from "./shapeTypes-1WVcBBn_.js";
|
|
47
|
+
import { u, s, t, a, b, B, v, g, C, i, f, h, m, E, F, w, o, p } from "./shapeTypes-1WVcBBn_.js";
|
|
48
48
|
import { o as ok, y as translateKernelError, e as err, p as typeCastError, q as queryError, x as validationError, B as BrepErrorCode, k as kernelError, i as ioError, d as isErr, u as unwrap } from "./errors-lBwyc8YG.js";
|
|
49
49
|
import { O, z, a as a2, c, b as b2, f as f2, A, g as g2, m as m2, h as h2, j, l, C as C2, D, E as E2, s as s2, F as F2, G, t as t2, n, r, v as v2, w as w2, H } from "./errors-lBwyc8YG.js";
|
|
50
50
|
import { c as vecDistance, D as DEG2RAD, H as HASH_CODE_MAX, n as vecScale, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
|
|
51
51
|
import { R, v as v3, a as a3, b as b3, d, e, g as g3, h as h3, i as i2, k, l as l2, m as m3, o as o2 } from "./vecOps-ZDdZWbwT.js";
|
|
52
|
-
import { B as B2, d as d2, C as C3, s as s3 } from "./Blueprint-
|
|
53
|
-
import { m as makeCompound, d as makeCone, e as makeCylinder, f as makeEllipsoid, h as makeOffset, w as weldShellsAndFaces, a as makeSolid, i as makeSphere, j as makeTorus, k as makeVertex } from "./loft-
|
|
54
|
-
import { b as b4, g as g4, r as r2 } from "./loft-
|
|
55
|
-
import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-
|
|
56
|
-
import { a as a4, b as b5, d as d3, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n2, o as o3, p as p2, q, t as t3, u as u2, v as v4, x, y, z as z2, A as A2, B as B3, C as C4, D as D2, E as E3, F as F3, G as G2 } from "./operations-
|
|
57
|
-
import { B as B4, a as a5, e as e2, C as C5, F as F4, S, f as f4, l as l3, g as g6, n as n3, k as k3, q as q2, o as o4, p as p3, r as r3 } from "./boolean2D-
|
|
52
|
+
import { B as B2, d as d2, C as C3, s as s3 } from "./Blueprint-DebTNazC.js";
|
|
53
|
+
import { m as makeCompound, d as makeCone, e as makeCylinder, f as makeEllipsoid, h as makeOffset, w as weldShellsAndFaces, a as makeSolid, i as makeSphere, j as makeTorus, k as makeVertex } from "./loft-DK0_xi5M.js";
|
|
54
|
+
import { b as b4, g as g4, r as r2 } from "./loft-DK0_xi5M.js";
|
|
55
|
+
import { w as walkAssembly, e as extrude$1, r as revolve$1, s as sweep, c as circularPattern, l as linearPattern } from "./operations-DhgY338f.js";
|
|
56
|
+
import { a as a4, b as b5, d as d3, f as f3, g as g5, h as h4, i as i3, j as j2, k as k2, m as m4, n as n2, o as o3, p as p2, q, t as t3, u as u2, v as v4, x, y, z as z2, A as A2, B as B3, C as C4, D as D2, E as E3, F as F3, G as G2 } from "./operations-DhgY338f.js";
|
|
57
|
+
import { B as B4, a as a5, e as e2, C as C5, F as F4, S, f as f4, l as l3, g as g6, n as n3, k as k3, q as q2, o as o4, p as p3, r as r3 } from "./boolean2D-Dg9wSxP6.js";
|
|
58
58
|
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";
|
|
59
|
-
import { l as createTypedFinder, m as faceFinder } from "./helpers-
|
|
60
|
-
import { g as g7 } from "./helpers-
|
|
59
|
+
import { l as createTypedFinder, m as faceFinder } from "./helpers-TF7WTmKB.js";
|
|
60
|
+
import { g as g7 } from "./helpers-TF7WTmKB.js";
|
|
61
61
|
import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
|
|
62
|
-
import { C as C6, D as D3, a as a6, S as S2, b as b6, X, Y, c as c2, d as d4, e as e3, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l4, m as m5, n as n4, o as o5, p as p4, q as q3, r as r4, s as s4, t as t4, u as u3, v as v5, w as w3, x as x2, y as y2, z as z3, _, $, a0, a1, A as A3, a2 as a22, B as B5, E as E4, a3 as a32, F as F5, G as G3, H as H2, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-
|
|
62
|
+
import { C as C6, D as D3, a as a6, S as S2, b as b6, X, Y, c as c2, d as d4, e as e3, f as f5, Z, g as g8, h as h5, i as i4, j as j3, k as k4, l as l4, m as m5, n as n4, o as o5, p as p4, q as q3, r as r4, s as s4, t as t4, u as u3, v as v5, w as w3, x as x2, y as y2, z as z3, _, $, a0, a1, A as A3, a2 as a22, B as B5, E as E4, a3 as a32, F as F5, G as G3, H as H2, I, J, K, L, M, N, O as O2, P, Q, R as R2, T, U, a4 as a42, V, a5 as a52, a6 as a62, W } from "./drawFns-Diysw_m4.js";
|
|
63
63
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
64
64
|
import { r as r5, t as t5 } from "./types-CWDdqcrq.js";
|
|
65
65
|
import { c as c3, a as a7, p as p5, r as r6, t as t6 } from "./vectors-B8RRTytu.js";
|
|
66
|
-
import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, h as getBounds, t as translate$1, p as propagateOriginsFromEvolution, g as getFaceOrigins, j as applyMatrix$1, k as clone$1, l as describe$1, m as isEmpty$1, n as mirror$1, r as rotate$1, s as scale$1, o as simplify$1, q as toBREP$1, u as transformCopy$1, c as getWires } from "./shapeFns-
|
|
67
|
-
import { w as w4, f as f6, x as x3, i as i5, y as y3, z as z4, A as A4, B as B6, C as C7, D as D4 } from "./shapeFns-
|
|
68
|
-
import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, h as hasFaceTags, b as hasColorMetadata, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, d as sectionToFace$1, e as slice$1, g as split$1, j as fuseAll, k as cutAll } from "./booleanFns-
|
|
69
|
-
import { l as l5, m as m6, n as n5, o as o6, q as q4, r as r7, t as t7, u as u4, v as v6 } from "./booleanFns-
|
|
70
|
-
import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-
|
|
71
|
-
import { a as a8, b as b7, e as e4, f as f7, d as d5, g as g9, j as j4, s as s5, t as t8, k as k5, l as l6, v as v7, w as w5 } from "./topology-
|
|
72
|
-
import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-
|
|
73
|
-
import { j as j5, k as k6, l as l7, f as f8, b as b8, g as g10, m as m7, o as o7 } from "./curveFns-
|
|
74
|
-
import { i as iterTopo, e as faceCenter, n as normalAt, j as fromBREP$1, k as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-
|
|
75
|
-
import { l as l8, c as c4, m as m8, d as d6, f as f9, q as q5, r as r8, s as s6, p as p6, t as t9, v as v8, u as u5, h as h6 } from "./faceFns-
|
|
76
|
-
import { m as mesh$1, a as meshEdges$1 } from "./meshFns-
|
|
77
|
-
import { c as c5, b as b9, e as e5, d as d7, f as f10 } from "./meshFns-
|
|
78
|
-
import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-
|
|
79
|
-
import { d as d8, e as e6, f as f11, g as g11, h as h7, i as i6 } from "./measurement-
|
|
80
|
-
import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, n as makeNonPlanarFace, c as makeHelix, a as makeLine, o as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-
|
|
81
|
-
import { p as p7 } from "./surfaceBuilders-
|
|
66
|
+
import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, h as getBounds, t as translate$1, p as propagateOriginsFromEvolution, g as getFaceOrigins, j as applyMatrix$1, k as clone$1, l as describe$1, m as isEmpty$1, n as mirror$1, r as rotate$1, s as scale$1, o as simplify$1, q as toBREP$1, u as transformCopy$1, c as getWires } from "./shapeFns-DBSqO7QJ.js";
|
|
67
|
+
import { w as w4, f as f6, x as x3, i as i5, y as y3, z as z4, A as A4, B as B6, C as C7, D as D4 } from "./shapeFns-DBSqO7QJ.js";
|
|
68
|
+
import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, h as hasFaceTags, b as hasColorMetadata, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, d as sectionToFace$1, e as slice$1, g as split$1, j as fuseAll, k as cutAll } from "./booleanFns-D3QHXA3L.js";
|
|
69
|
+
import { l as l5, m as m6, n as n5, o as o6, q as q4, r as r7, t as t7, u as u4, v as v6 } from "./booleanFns-D3QHXA3L.js";
|
|
70
|
+
import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-B-UCQkll.js";
|
|
71
|
+
import { a as a8, b as b7, e as e4, f as f7, d as d5, g as g9, j as j4, s as s5, t as t8, k as k5, l as l6, v as v7, w as w5 } from "./topology-B-UCQkll.js";
|
|
72
|
+
import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-DY55OAr3.js";
|
|
73
|
+
import { j as j5, k as k6, l as l7, f as f8, b as b8, g as g10, m as m7, o as o7 } from "./curveFns-DY55OAr3.js";
|
|
74
|
+
import { i as iterTopo, e as faceCenter, n as normalAt, j as fromBREP$1, k as innerWires, o as outerWire, g as getSurfaceType } from "./faceFns-BQ26A_zd.js";
|
|
75
|
+
import { l as l8, c as c4, m as m8, d as d6, f as f9, q as q5, r as r8, s as s6, p as p6, t as t9, v as v8, u as u5, h as h6 } from "./faceFns-BQ26A_zd.js";
|
|
76
|
+
import { m as mesh$1, a as meshEdges$1 } from "./meshFns-CmZM1bAd.js";
|
|
77
|
+
import { c as c5, b as b9, e as e5, d as d7, f as f10 } from "./meshFns-CmZM1bAd.js";
|
|
78
|
+
import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-DQWf2-IP.js";
|
|
79
|
+
import { d as d8, e as e6, f as f11, g as g11, h as h7, i as i6 } from "./measurement-DQWf2-IP.js";
|
|
80
|
+
import { h as addHolesInFace, g as makeBezierCurve, k as makeBSplineApproximation, i as makeCircle, j as makeEllipse, f as makeEllipseArc, m as makeFace, n as makeNonPlanarFace, c as makeHelix, a as makeLine, o as makePolygon, l as makeNewFaceWithinFace, e as makeTangentArc, d as makeThreePointArc, b as assembleWire } from "./surfaceBuilders-C_UpU97c.js";
|
|
81
|
+
import { p as p7 } from "./surfaceBuilders-C_UpU97c.js";
|
|
82
82
|
import { edgeFinder } from "./query.js";
|
|
83
83
|
import { BrepBugError, bug } from "./result.js";
|
|
84
|
-
import { c as c6 } from "./cornerFinder-
|
|
84
|
+
import { c as c6 } from "./cornerFinder-DvYYBvKj.js";
|
|
85
85
|
import { createOperationRegistry, createTaskQueue, createWorkerClient, createWorkerHandler, dequeueTask, enqueueTask, isDisposeRequest, isErrorResponse, isInitRequest, isOperationRequest, isQueueEmpty, isSuccessResponse, pendingCount, registerHandler, rejectAll } from "./worker.js";
|
|
86
86
|
function supportsProjection(kernel) {
|
|
87
87
|
return "projectShape" in kernel;
|
package/dist/core.cjs
CHANGED
|
@@ -4,7 +4,7 @@ const types = require("./types-CA_xrgDq.cjs");
|
|
|
4
4
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
5
5
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
6
6
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
7
|
-
const shapeTypes = require("./shapeTypes-
|
|
7
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
8
8
|
const result = require("./result.cjs");
|
|
9
9
|
exports.resolveDirection = types.resolveDirection;
|
|
10
10
|
exports.toVec2 = types.toVec2;
|
package/dist/core.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r, t, a } from "./types-CWDdqcrq.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, k as k2, m as m2, h as h2, j as j2, l as l2, o as o2, q, s, t as t2, n as n2, p, u, r as r2, v as v2, w, x } from "./errors-lBwyc8YG.js";
|
|
4
4
|
import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-B8RRTytu.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, n as n3, w as w2, o as o3, p as p3 } from "./shapeTypes-
|
|
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, n as n3, w as w2, o as o3, p as p3 } from "./shapeTypes-1WVcBBn_.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-TF7WTmKB.js";
|
|
2
2
|
import { D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
3
3
|
const PI_2 = 2 * Math.PI;
|
|
4
4
|
function positiveHalfAngle(angle) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
3
3
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
4
4
|
function getCurveType(shape) {
|
|
5
5
|
return shapeTypes.getKernel().curveType(shape.wrapped);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as getKernel, c as castShape, d as isEdge, n as isWire } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, c as castShape, d as isEdge, n as isWire } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { e as err, p as typeCastError, o as ok } from "./errors-lBwyc8YG.js";
|
|
3
3
|
function getCurveType(shape) {
|
|
4
4
|
return getKernel().curveType(shape.wrapped);
|
|
@@ -47,18 +47,18 @@ import { u as unwrap, g as isOk, e as err, x as validationError, o as ok } from
|
|
|
47
47
|
import { r as resolvePlane, b as planeToWorld, d as planeToLocal } from "./vectors-B8RRTytu.js";
|
|
48
48
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
49
49
|
import { n as vecScale, j as vecNormalize, v as vecAdd, o as vecSub, b as vecCross, m as vecRotate, R as RAD2DEG, g as vecLength, e as vecEquals, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
50
|
-
import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-
|
|
51
|
-
import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-
|
|
52
|
-
import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-
|
|
53
|
-
import { a as makeLine, d as makeThreePointArc, e as makeTangentArc, f as makeEllipseArc, g as makeBezierCurve, b as assembleWire, h as addHolesInFace, m as makeFace, i as makeCircle, j as makeEllipse, c as makeHelix, k as makeBSplineApproximation } from "./surfaceBuilders-
|
|
54
|
-
import { D as DisposalScope, q as getKernel, r as createWire, t as createFace, e as isFace, c as castShape } from "./shapeTypes-
|
|
55
|
-
import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-
|
|
50
|
+
import { b as Flatbush, c as convertSvgEllipseParams, d as defaultsSplineOptions, S as Sketch, r as roundedRectangleBlueprint, e as Blueprints, C as CompoundBlueprint, f as cut2D, i as intersectCurves, g as fuse2D, m as make2dOffset, h as filletCurves, j as chamferCurves, o as organiseBlueprints, a as BlueprintSketcher, k as intersect2D, B as BaseSketcher2d, p as polysidesBlueprint } from "./boolean2D-Dg9wSxP6.js";
|
|
51
|
+
import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-BQ26A_zd.js";
|
|
52
|
+
import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-DY55OAr3.js";
|
|
53
|
+
import { a as makeLine, d as makeThreePointArc, e as makeTangentArc, f as makeEllipseArc, g as makeBezierCurve, b as assembleWire, h as addHolesInFace, m as makeFace, i as makeCircle, j as makeEllipse, c as makeHelix, k as makeBSplineApproximation } from "./surfaceBuilders-C_UpU97c.js";
|
|
54
|
+
import { D as DisposalScope, q as getKernel, r as createWire, t as createFace, e as isFace, c as castShape } from "./shapeTypes-1WVcBBn_.js";
|
|
55
|
+
import { m as mirror, B as Blueprint, C as Curve2D, a as make2dSegmentCurve, b as make2dArcFromCenter, c as approximateAsSvgCompatibleCurve, d as BoundingBox2d, e as edgeToCurve, f as make2dInerpolatedBSplineCurve, g as make2dCircle, h as make2dEllipse, i as deserializeCurve2D } from "./Blueprint-DebTNazC.js";
|
|
56
56
|
import { bug } from "./result.js";
|
|
57
|
-
import { d as distance2d, p as polarAngle2d, f as polarToCartesian, P as PRECISION_OFFSET, h as squareDistance2d, s as samePoint$1, e as subtract2d, c as add2d } from "./helpers-
|
|
58
|
-
import { d as getEdges } from "./shapeFns-
|
|
59
|
-
import { m as makeCompound, b as basicFaceExtrusion, r as revolution, a as makeSolid, c as complexExtrude, t as twistExtrude } from "./loft-
|
|
57
|
+
import { d as distance2d, p as polarAngle2d, f as polarToCartesian, P as PRECISION_OFFSET, h as squareDistance2d, s as samePoint$1, e as subtract2d, c as add2d } from "./helpers-TF7WTmKB.js";
|
|
58
|
+
import { d as getEdges } from "./shapeFns-DBSqO7QJ.js";
|
|
59
|
+
import { m as makeCompound, b as basicFaceExtrusion, r as revolution, a as makeSolid, c as complexExtrude, t as twistExtrude } from "./loft-DK0_xi5M.js";
|
|
60
60
|
import opentype from "opentype.js";
|
|
61
|
-
import { c as cornerFinder } from "./cornerFinder-
|
|
61
|
+
import { c as cornerFinder } from "./cornerFinder-DvYYBvKj.js";
|
|
62
62
|
const stitchCurves = (curves, precision = 1e-7) => {
|
|
63
63
|
const startPoints = new Flatbush(curves.length);
|
|
64
64
|
curves.forEach((c) => {
|
|
@@ -48,18 +48,18 @@ const errors = require("./errors-DiTn5EoC.cjs");
|
|
|
48
48
|
const vectors = require("./vectors-DqQXtR8s.cjs");
|
|
49
49
|
const types = require("./types-CA_xrgDq.cjs");
|
|
50
50
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
51
|
-
const boolean2D = require("./boolean2D-
|
|
52
|
-
const faceFns = require("./faceFns-
|
|
53
|
-
const curveFns = require("./curveFns-
|
|
54
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
55
|
-
const shapeTypes = require("./shapeTypes-
|
|
56
|
-
const Blueprint = require("./Blueprint-
|
|
51
|
+
const boolean2D = require("./boolean2D-Die5sMjA.cjs");
|
|
52
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
53
|
+
const curveFns = require("./curveFns-BAXBhYiR.cjs");
|
|
54
|
+
const surfaceBuilders = require("./surfaceBuilders-DU6Pq2ju.cjs");
|
|
55
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
56
|
+
const Blueprint = require("./Blueprint-D73qryz7.cjs");
|
|
57
57
|
const result = require("./result.cjs");
|
|
58
|
-
const helpers = require("./helpers-
|
|
59
|
-
const shapeFns = require("./shapeFns-
|
|
60
|
-
const loft = require("./loft-
|
|
58
|
+
const helpers = require("./helpers-D2N1HNiK.cjs");
|
|
59
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
60
|
+
const loft = require("./loft-C55d1XrF.cjs");
|
|
61
61
|
const opentype = require("opentype.js");
|
|
62
|
-
const cornerFinder = require("./cornerFinder-
|
|
62
|
+
const cornerFinder = require("./cornerFinder-BcA7Chiv.cjs");
|
|
63
63
|
const stitchCurves = (curves, precision = 1e-7) => {
|
|
64
64
|
const startPoints = new boolean2D.Flatbush(curves.length);
|
|
65
65
|
curves.forEach((c) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as getKernel, c as castShape, j as isShape3D$1, n as isWire$1 } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, c as castShape, j as isShape3D$1, n as isWire$1 } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
3
3
|
import { e as err, p as typeCastError, o as ok, u as unwrap } from "./errors-lBwyc8YG.js";
|
|
4
4
|
const TOPO_ENUM = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const result = require("./result.cjs");
|
|
3
|
-
const shapeTypes = require("./shapeTypes-
|
|
3
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
4
4
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
5
5
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
6
|
-
const faceFns = require("./faceFns-
|
|
7
|
-
const measurement = require("./measurement-
|
|
8
|
-
const shapeFns = require("./shapeFns-
|
|
6
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
7
|
+
const measurement = require("./measurement-BF_JvjuA.cjs");
|
|
8
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
9
9
|
const PRECISION_INTERSECTION = 1e-9;
|
|
10
10
|
const PRECISION_OFFSET = 1e-8;
|
|
11
11
|
const PRECISION_POINT = 1e-6;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { bug } from "./result.js";
|
|
2
|
-
import { c as castShape, q as getKernel, e as isFace } from "./shapeTypes-
|
|
2
|
+
import { c as castShape, q as getKernel, e as isFace } from "./shapeTypes-1WVcBBn_.js";
|
|
3
3
|
import { u as unwrap, e as err, q as queryError, o as ok } from "./errors-lBwyc8YG.js";
|
|
4
4
|
import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
5
|
-
import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-
|
|
6
|
-
import { m as measureArea } from "./measurement-
|
|
7
|
-
import { f as getHashCode, i as isSameShape } from "./shapeFns-
|
|
5
|
+
import { i as iterTopo, d as downcast, g as getSurfaceType, n as normalAt } from "./faceFns-BQ26A_zd.js";
|
|
6
|
+
import { m as measureArea } from "./measurement-DQWf2-IP.js";
|
|
7
|
+
import { f as getHashCode, i as isSameShape } from "./shapeFns-DBSqO7QJ.js";
|
|
8
8
|
const PRECISION_INTERSECTION = 1e-9;
|
|
9
9
|
const PRECISION_OFFSET = 1e-8;
|
|
10
10
|
const PRECISION_POINT = 1e-6;
|
package/dist/io.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const shapeTypes = require("./shapeTypes-
|
|
3
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
4
4
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
5
|
-
const meshFns = require("./meshFns-
|
|
6
|
-
const Blueprint = require("./Blueprint-
|
|
5
|
+
const meshFns = require("./meshFns-DYdC0ztK.cjs");
|
|
6
|
+
const Blueprint = require("./Blueprint-D73qryz7.cjs");
|
|
7
7
|
function vec3At(arr, i) {
|
|
8
8
|
const off = i * 3;
|
|
9
9
|
return [arr[off], arr[off + 1], arr[off + 2]];
|
package/dist/io.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { q as getKernel, c as castShape } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, c as castShape } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { e as err, i as ioError, o as ok } from "./errors-lBwyc8YG.js";
|
|
3
|
-
import { e, d, f } from "./meshFns-
|
|
4
|
-
import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, q as make2dBezierCurve } from "./Blueprint-
|
|
3
|
+
import { e, d, f } from "./meshFns-CmZM1bAd.js";
|
|
4
|
+
import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, q as make2dBezierCurve } from "./Blueprint-DebTNazC.js";
|
|
5
5
|
function vec3At(arr, i) {
|
|
6
6
|
const off = i * 3;
|
|
7
7
|
return [arr[off], arr[off + 1], arr[off + 2]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modifierOps.d.ts","sourceRoot":"","sources":["../../src/kernel/modifierOps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,CAAC,MAAM,EAAE,MAAM,CAAC,GAChB,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEvD;;;GAGG;AACH,wBAAgB,MAAM,CACpB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,gBAAgB,GACvB,WAAW,
|
|
1
|
+
{"version":3,"file":"modifierOps.d.ts","sourceRoot":"","sources":["../../src/kernel/modifierOps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,CAAC,MAAM,EAAE,MAAM,CAAC,GAChB,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEvD;;;GAGG;AACH,wBAAgB,MAAM,CACpB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,gBAAgB,GACvB,WAAW,CAeb;AAED,MAAM,MAAM,eAAe,GACvB,MAAM,GACN,CAAC,MAAM,EAAE,MAAM,CAAC,GAChB,CAAC,CAAC,IAAI,EAAE,WAAW,KAAK,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAEvD;;;GAGG;AACH,wBAAgB,OAAO,CACrB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAAE,EACpB,QAAQ,EAAE,eAAe,GACxB,WAAW,CAyDb;AAED;;GAEG;AACH,wBAAgB,KAAK,CACnB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAAE,EACpB,SAAS,EAAE,MAAM,EACjB,SAAS,SAAO,GACf,WAAW,CAwBb;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,GAAG,WAAW,CAS9F;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,WAAW,EAAE,EACpB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,WAAW,CAwCb;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,cAAc,EAClB,IAAI,EAAE,WAAW,EACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,MAAM,GAChB,WAAW,CAQb;AAED;;GAEG;AACH,wBAAgB,MAAM,CACpB,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAClB,QAAQ,EAAE,MAAM,EAChB,SAAS,SAAO,GACf,WAAW,CAkBb"}
|
|
@@ -44,12 +44,12 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
44
44
|
};
|
|
45
45
|
return next();
|
|
46
46
|
};
|
|
47
|
-
const shapeTypes = require("./shapeTypes-
|
|
47
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
48
48
|
const types = require("./types-CA_xrgDq.cjs");
|
|
49
49
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
50
|
-
const faceFns = require("./faceFns-
|
|
50
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
51
51
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
52
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
52
|
+
const surfaceBuilders = require("./surfaceBuilders-DU6Pq2ju.cjs");
|
|
53
53
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
54
54
|
if (profile !== "s-curve" && profile !== "linear") {
|
|
55
55
|
return errors.err(
|
|
@@ -43,12 +43,12 @@ var __callDispose = (stack, error, hasError) => {
|
|
|
43
43
|
};
|
|
44
44
|
return next();
|
|
45
45
|
};
|
|
46
|
-
import { q as getKernel, k as isShell, u as createCompound, v as createVertex, x as createSolid, j as isShape3D, l as isSolid, D as DisposalScope } from "./shapeTypes-
|
|
46
|
+
import { q as getKernel, k as isShell, u as createCompound, v as createVertex, x as createSolid, j as isShape3D, l as isSolid, D as DisposalScope } from "./shapeTypes-1WVcBBn_.js";
|
|
47
47
|
import { a as toVec3 } from "./types-CWDdqcrq.js";
|
|
48
48
|
import { g as vecLength, D as DEG2RAD, v as vecAdd } from "./vecOps-ZDdZWbwT.js";
|
|
49
|
-
import { c as cast, d as downcast, a as isShape3D$1, b as isWire } from "./faceFns-
|
|
49
|
+
import { c as cast, d as downcast, a as isShape3D$1, b as isWire } from "./faceFns-BQ26A_zd.js";
|
|
50
50
|
import { e as err, x as validationError, o as ok, u as unwrap, p as typeCastError, a as andThen, k as kernelError } from "./errors-lBwyc8YG.js";
|
|
51
|
-
import { a as makeLine, b as assembleWire, c as makeHelix } from "./surfaceBuilders-
|
|
51
|
+
import { a as makeLine, b as assembleWire, c as makeHelix } from "./surfaceBuilders-C_UpU97c.js";
|
|
52
52
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
53
53
|
if (profile !== "s-curve" && profile !== "linear") {
|
|
54
54
|
return err(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
3
|
-
const faceFns = require("./faceFns-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
3
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
4
4
|
let cache = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
function getCachedMeasurement(shape, key) {
|
|
6
6
|
return cache.get(shape)?.get(key);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
2
|
-
import { u as uvBounds } from "./faceFns-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-1WVcBBn_.js";
|
|
2
|
+
import { u as uvBounds } from "./faceFns-BQ26A_zd.js";
|
|
3
3
|
let cache = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
function getCachedMeasurement(shape, key) {
|
|
5
5
|
return cache.get(shape)?.get(key);
|
package/dist/measurement.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const measurement = require("./measurement-
|
|
3
|
+
const measurement = require("./measurement-BF_JvjuA.cjs");
|
|
4
4
|
exports.createDistanceQuery = measurement.createDistanceQuery;
|
|
5
5
|
exports.measureArea = measurement.measureArea;
|
|
6
6
|
exports.measureDistance = measurement.measureDistance;
|
package/dist/measurement.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { o as ok, e as err, i as ioError } from "./errors-lBwyc8YG.js";
|
|
3
|
-
import { g as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { g as getFaceOrigins } from "./shapeFns-DBSqO7QJ.js";
|
|
4
4
|
function buildMeshCacheKey(tolerance, angularTolerance, skipNormals, includeUVs = false) {
|
|
5
5
|
return `${tolerance}:${angularTolerance}:${skipNormals}:${includeUVs}`;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
3
3
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
4
|
-
const shapeFns = require("./shapeFns-
|
|
4
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
5
5
|
function buildMeshCacheKey(tolerance, angularTolerance, skipNormals, includeUVs = false) {
|
|
6
6
|
return `${tolerance}:${angularTolerance}:${skipNormals}:${includeUVs}`;
|
|
7
7
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
4
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
5
|
-
const loft = require("./loft-
|
|
6
|
-
const booleanFns = require("./booleanFns-
|
|
7
|
-
const shapeFns = require("./shapeFns-
|
|
8
|
-
const faceFns = require("./faceFns-
|
|
5
|
+
const loft = require("./loft-C55d1XrF.cjs");
|
|
6
|
+
const booleanFns = require("./booleanFns-uwsn5G2P.cjs");
|
|
7
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
8
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
9
9
|
function uuidv() {
|
|
10
10
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
11
11
|
/[018]/g,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { q as getKernel, b as createKernelHandle, c as castShape, j as isShape3D, n as isWire, x as createSolid } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, b as createKernelHandle, c as castShape, j as isShape3D, n as isWire, x as createSolid } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { g as vecLength, v as vecAdd, j as vecNormalize, f as vecIsZero } from "./vecOps-ZDdZWbwT.js";
|
|
3
3
|
import { e as err, x as validationError, u as unwrap, p as typeCastError, o as ok, B as BrepErrorCode, k as kernelError, i as ioError, b as computationError } from "./errors-lBwyc8YG.js";
|
|
4
|
-
import { n as buildLawFromProfile } from "./loft-
|
|
5
|
-
import { j as fuseAll } from "./booleanFns-
|
|
6
|
-
import { q as toBREP } from "./shapeFns-
|
|
7
|
-
import { j as fromBREP } from "./faceFns-
|
|
4
|
+
import { n as buildLawFromProfile } from "./loft-DK0_xi5M.js";
|
|
5
|
+
import { j as fuseAll } from "./booleanFns-D3QHXA3L.js";
|
|
6
|
+
import { q as toBREP } from "./shapeFns-DBSqO7QJ.js";
|
|
7
|
+
import { j as fromBREP } from "./faceFns-BQ26A_zd.js";
|
|
8
8
|
function uuidv() {
|
|
9
9
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
10
10
|
/[018]/g,
|
package/dist/operations.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const operations = require("./operations-
|
|
4
|
-
const loft = require("./loft-
|
|
3
|
+
const operations = require("./operations-CMcb2KJ3.cjs");
|
|
4
|
+
const loft = require("./loft-C55d1XrF.cjs");
|
|
5
5
|
exports.addChild = operations.addChild;
|
|
6
6
|
exports.addStep = operations.addStep;
|
|
7
7
|
exports.circularPattern = operations.circularPattern;
|
package/dist/operations.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a, b, c, d, f, g, h, i, j, k, n, o, p, q, H, l, t, u, v, x, y, z, B, C, D, s, E, F, G, w } from "./operations-
|
|
2
|
-
import { b as b2, g as g2, l as l2, r } from "./loft-
|
|
1
|
+
import { a, b, c, d, f, g, h, i, j, k, n, o, p, q, H, l, t, u, v, x, y, z, B, C, D, s, E, F, G, w } from "./operations-DhgY338f.js";
|
|
2
|
+
import { b as b2, g as g2, l as l2, r } from "./loft-DK0_xi5M.js";
|
|
3
3
|
export {
|
|
4
4
|
a as addChild,
|
|
5
5
|
b as addStep,
|
package/dist/query.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const helpers = require("./helpers-
|
|
4
|
-
const cornerFinder = require("./cornerFinder-
|
|
5
|
-
const shapeTypes = require("./shapeTypes-
|
|
3
|
+
const helpers = require("./helpers-D2N1HNiK.cjs");
|
|
4
|
+
const cornerFinder = require("./cornerFinder-BcA7Chiv.cjs");
|
|
5
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
6
6
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
7
|
-
const curveFns = require("./curveFns-
|
|
7
|
+
const curveFns = require("./curveFns-BAXBhYiR.cjs");
|
|
8
8
|
function edgeDirectionFilter(dir, angle) {
|
|
9
9
|
const d = vecOps.vecNormalize(helpers.resolveDir(dir));
|
|
10
10
|
return (edge) => {
|
package/dist/query.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-
|
|
2
|
-
import { m, g } from "./helpers-
|
|
3
|
-
import { c } from "./cornerFinder-
|
|
4
|
-
import { q as getKernel } from "./shapeTypes-
|
|
1
|
+
import { l as createTypedFinder, o as distanceFromPointFilter, q as resolveDir } from "./helpers-TF7WTmKB.js";
|
|
2
|
+
import { m, g } from "./helpers-TF7WTmKB.js";
|
|
3
|
+
import { c } from "./cornerFinder-DvYYBvKj.js";
|
|
4
|
+
import { q as getKernel } from "./shapeTypes-1WVcBBn_.js";
|
|
5
5
|
import { j as vecNormalize, d as vecDot, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
6
|
-
import { b as getCurveType, i as curveLength } from "./curveFns-
|
|
6
|
+
import { b as getCurveType, i as curveLength } from "./curveFns-DY55OAr3.js";
|
|
7
7
|
function edgeDirectionFilter(dir, angle) {
|
|
8
8
|
const d = vecNormalize(resolveDir(dir));
|
|
9
9
|
return (edge) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
5
5
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
6
6
|
function clone(shape) {
|
|
7
7
|
return shapeTypes.castShape(errors.unwrap(faceFns.downcast(shape.wrapped)));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-
|
|
1
|
+
import { q as getKernel, c as castShape, g as getShapeKind } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { H as HASH_CODE_MAX, D as DEG2RAD } from "./vecOps-ZDdZWbwT.js";
|
|
3
|
-
import { i as iterTopo, d as downcast } from "./faceFns-
|
|
3
|
+
import { i as iterTopo, d as downcast } from "./faceFns-BQ26A_zd.js";
|
|
4
4
|
import { u as unwrap } from "./errors-lBwyc8YG.js";
|
|
5
5
|
function clone(shape) {
|
|
6
6
|
return castShape(unwrap(downcast(shape.wrapped)));
|
|
@@ -1245,11 +1245,12 @@ function fillet(oc, shape, edges, radius) {
|
|
|
1245
1245
|
const builder = new oc.BRepFilletAPI_MakeFillet(shape, oc.ChFi3d_FilletShape.ChFi3d_Rational);
|
|
1246
1246
|
for (const edge of edges) {
|
|
1247
1247
|
const r = typeof radius === "function" ? radius(edge) : radius;
|
|
1248
|
+
const downcast2 = oc.TopoDS.Edge_1(edge);
|
|
1248
1249
|
if (typeof r === "number") {
|
|
1249
|
-
if (r > 0) builder.Add_2(r,
|
|
1250
|
+
if (r > 0) builder.Add_2(r, downcast2);
|
|
1250
1251
|
} else {
|
|
1251
1252
|
const [r1, r2] = r;
|
|
1252
|
-
if (r1 > 0 && r2 > 0) builder.Add_3(r1, r2,
|
|
1253
|
+
if (r1 > 0 && r2 > 0) builder.Add_3(r1, r2, downcast2);
|
|
1253
1254
|
}
|
|
1254
1255
|
}
|
|
1255
1256
|
const result = builder.Shape();
|
|
@@ -1292,14 +1293,15 @@ function chamfer(oc, shape, edges, distance2) {
|
|
|
1292
1293
|
}
|
|
1293
1294
|
for (const edge of edges) {
|
|
1294
1295
|
const d = typeof distance2 === "function" ? distance2(edge) : distance2;
|
|
1296
|
+
const downcast2 = oc.TopoDS.Edge_1(edge);
|
|
1295
1297
|
if (typeof d === "number") {
|
|
1296
|
-
if (d > 0) builder.Add_2(d,
|
|
1298
|
+
if (d > 0) builder.Add_2(d, downcast2);
|
|
1297
1299
|
} else {
|
|
1298
1300
|
const [d1, d2] = d;
|
|
1299
1301
|
if (d1 > 0 && d2 > 0) {
|
|
1300
1302
|
const face = findContainingFace(edge);
|
|
1301
1303
|
if (face) {
|
|
1302
|
-
builder.Add_3(d1, d2,
|
|
1304
|
+
builder.Add_3(d1, d2, downcast2, face);
|
|
1303
1305
|
}
|
|
1304
1306
|
}
|
|
1305
1307
|
}
|
|
@@ -1246,11 +1246,12 @@ function fillet(oc, shape, edges, radius) {
|
|
|
1246
1246
|
const builder = new oc.BRepFilletAPI_MakeFillet(shape, oc.ChFi3d_FilletShape.ChFi3d_Rational);
|
|
1247
1247
|
for (const edge of edges) {
|
|
1248
1248
|
const r = typeof radius === "function" ? radius(edge) : radius;
|
|
1249
|
+
const downcast2 = oc.TopoDS.Edge_1(edge);
|
|
1249
1250
|
if (typeof r === "number") {
|
|
1250
|
-
if (r > 0) builder.Add_2(r,
|
|
1251
|
+
if (r > 0) builder.Add_2(r, downcast2);
|
|
1251
1252
|
} else {
|
|
1252
1253
|
const [r1, r2] = r;
|
|
1253
|
-
if (r1 > 0 && r2 > 0) builder.Add_3(r1, r2,
|
|
1254
|
+
if (r1 > 0 && r2 > 0) builder.Add_3(r1, r2, downcast2);
|
|
1254
1255
|
}
|
|
1255
1256
|
}
|
|
1256
1257
|
const result = builder.Shape();
|
|
@@ -1293,14 +1294,15 @@ function chamfer(oc, shape, edges, distance2) {
|
|
|
1293
1294
|
}
|
|
1294
1295
|
for (const edge of edges) {
|
|
1295
1296
|
const d = typeof distance2 === "function" ? distance2(edge) : distance2;
|
|
1297
|
+
const downcast2 = oc.TopoDS.Edge_1(edge);
|
|
1296
1298
|
if (typeof d === "number") {
|
|
1297
|
-
if (d > 0) builder.Add_2(d,
|
|
1299
|
+
if (d > 0) builder.Add_2(d, downcast2);
|
|
1298
1300
|
} else {
|
|
1299
1301
|
const [d1, d2] = d;
|
|
1300
1302
|
if (d1 > 0 && d2 > 0) {
|
|
1301
1303
|
const face = findContainingFace(edge);
|
|
1302
1304
|
if (face) {
|
|
1303
|
-
builder.Add_3(d1, d2,
|
|
1305
|
+
builder.Add_3(d1, d2, downcast2, face);
|
|
1304
1306
|
}
|
|
1305
1307
|
}
|
|
1306
1308
|
}
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const drawFns = require("./drawFns-
|
|
4
|
-
const boolean2D = require("./boolean2D-
|
|
3
|
+
const drawFns = require("./drawFns-a74YTSws.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-Die5sMjA.cjs");
|
|
5
5
|
exports.CompoundSketch = drawFns.CompoundSketch;
|
|
6
6
|
exports.Drawing = drawFns.Drawing;
|
|
7
7
|
exports.DrawingPen = drawFns.DrawingPen;
|
package/dist/sketching.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-
|
|
2
|
-
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-
|
|
1
|
+
import { C, D, a, S, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, A, B, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, T, U, V, W } from "./drawFns-Diysw_m4.js";
|
|
2
|
+
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-Dg9wSxP6.js";
|
|
3
3
|
export {
|
|
4
4
|
B2 as BaseSketcher2d,
|
|
5
5
|
a2 as BlueprintSketcher,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-
|
|
1
|
+
import { r as createWire, q as getKernel, s as createEdge, t as createFace, e as isFace } from "./shapeTypes-1WVcBBn_.js";
|
|
2
2
|
import { o as ok, e as err, k as kernelError, x as validationError, a as andThen } from "./errors-lBwyc8YG.js";
|
|
3
|
-
import { o as outerWire, c as cast } from "./faceFns-
|
|
3
|
+
import { o as outerWire, c as cast } from "./faceFns-BQ26A_zd.js";
|
|
4
4
|
function range(len) {
|
|
5
5
|
return Array.from(Array(len).keys());
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
3
3
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
5
5
|
function range(len) {
|
|
6
6
|
return Array.from(Array(len).keys());
|
|
7
7
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { c as getWires, a as getFaces } from "./shapeFns-
|
|
2
|
-
import "./booleanFns-
|
|
3
|
-
import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-
|
|
4
|
-
import { d as downcast } from "./faceFns-
|
|
1
|
+
import { c as getWires, a as getFaces } from "./shapeFns-DBSqO7QJ.js";
|
|
2
|
+
import "./booleanFns-D3QHXA3L.js";
|
|
3
|
+
import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-1WVcBBn_.js";
|
|
4
|
+
import { d as downcast } from "./faceFns-BQ26A_zd.js";
|
|
5
5
|
import { e as err, x as validationError, k as kernelError, d as isErr, p as typeCastError, o as ok, u as unwrap, g as isOk, B as BrepErrorCode } from "./errors-lBwyc8YG.js";
|
|
6
|
-
import "./curveFns-
|
|
6
|
+
import "./curveFns-DY55OAr3.js";
|
|
7
7
|
import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
|
|
8
|
-
import "./meshFns-
|
|
8
|
+
import "./meshFns-CmZM1bAd.js";
|
|
9
9
|
function toBufferGeometryData(mesh) {
|
|
10
10
|
return {
|
|
11
11
|
position: mesh.vertices,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeFns = require("./shapeFns-
|
|
3
|
-
require("./booleanFns-
|
|
4
|
-
const shapeTypes = require("./shapeTypes-
|
|
5
|
-
const faceFns = require("./faceFns-
|
|
2
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
3
|
+
require("./booleanFns-uwsn5G2P.cjs");
|
|
4
|
+
const shapeTypes = require("./shapeTypes-BHy5rqqk.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
6
6
|
const errors = require("./errors-DiTn5EoC.cjs");
|
|
7
|
-
require("./curveFns-
|
|
7
|
+
require("./curveFns-BAXBhYiR.cjs");
|
|
8
8
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
9
|
-
require("./meshFns-
|
|
9
|
+
require("./meshFns-DYdC0ztK.cjs");
|
|
10
10
|
function toBufferGeometryData(mesh) {
|
|
11
11
|
return {
|
|
12
12
|
position: mesh.vertices,
|
package/dist/topology.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const shapeFns = require("./shapeFns-
|
|
4
|
-
const booleanFns = require("./booleanFns-
|
|
5
|
-
const topology = require("./topology-
|
|
6
|
-
const curveFns = require("./curveFns-
|
|
7
|
-
const faceFns = require("./faceFns-
|
|
8
|
-
const meshFns = require("./meshFns-
|
|
3
|
+
const shapeFns = require("./shapeFns-D6qzq_Cu.cjs");
|
|
4
|
+
const booleanFns = require("./booleanFns-uwsn5G2P.cjs");
|
|
5
|
+
const topology = require("./topology-BrCU7nI6.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-BAXBhYiR.cjs");
|
|
7
|
+
const faceFns = require("./faceFns-CjRZGka6.cjs");
|
|
8
|
+
const meshFns = require("./meshFns-DYdC0ztK.cjs");
|
|
9
9
|
exports.getBounds = shapeFns.getBounds;
|
|
10
10
|
exports.getEdges = shapeFns.getEdges;
|
|
11
11
|
exports.getFaces = shapeFns.getFaces;
|
package/dist/topology.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-
|
|
2
|
-
import { k, j } from "./booleanFns-
|
|
3
|
-
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-
|
|
4
|
-
import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-
|
|
5
|
-
import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-
|
|
6
|
-
import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-
|
|
1
|
+
import { h, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-DBSqO7QJ.js";
|
|
2
|
+
import { k, j } from "./booleanFns-D3QHXA3L.js";
|
|
3
|
+
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g, j as j2, s, t, k as k2, l, v as v2, w } from "./topology-B-UCQkll.js";
|
|
4
|
+
import { j as j3, a as a3, e as e3, k as k3, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g2, m, o } from "./curveFns-DY55OAr3.js";
|
|
5
|
+
import { l as l3, c as c4, m as m2, j as j4, d as d4, e as e4, f as f4, q, r, g as g3, k as k4, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u, h as h3 } from "./faceFns-BQ26A_zd.js";
|
|
6
|
+
import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-CmZM1bAd.js";
|
|
7
7
|
export {
|
|
8
8
|
a2 as adjacentFaces,
|
|
9
9
|
j3 as approximateCurve,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.5",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"packageManager": "npm@11.6.1",
|
|
24
24
|
"workspaces": [
|
|
25
|
-
"packages
|
|
25
|
+
"packages/brepjs-opencascade",
|
|
26
26
|
"site"
|
|
27
27
|
],
|
|
28
28
|
"main": "./dist/brepjs.cjs",
|
|
@@ -178,7 +178,8 @@
|
|
|
178
178
|
"test:all": "vitest run",
|
|
179
179
|
"check:boundaries": "bash scripts/check-layer-boundaries.sh",
|
|
180
180
|
"bench": "vitest run --config vitest.bench.config.ts",
|
|
181
|
-
"bench:
|
|
181
|
+
"bench:compare": "BENCH_KERNELS=both vitest run --config vitest.bench.config.ts",
|
|
182
|
+
"bench:json": "BENCH_KERNELS=both BENCH_OUTPUT_JSON=1 vitest run --config vitest.bench.config.ts",
|
|
182
183
|
"check:boundaries:staged": "bash scripts/check-layer-boundaries.sh --staged",
|
|
183
184
|
"check:readme-reminders": "bash scripts/check-readme-reminders.sh",
|
|
184
185
|
"example": "npx tsx",
|
|
@@ -198,7 +199,7 @@
|
|
|
198
199
|
"@types/opentype.js": "1.3.9",
|
|
199
200
|
"@vitest/coverage-v8": "4.0.18",
|
|
200
201
|
"brepjs-opencascade": "*",
|
|
201
|
-
"brepkit-wasm": "0.7.
|
|
202
|
+
"brepkit-wasm": "0.7.3",
|
|
202
203
|
"eslint": "10.0.3",
|
|
203
204
|
"husky": "9.1.7",
|
|
204
205
|
"knip": "5.86.0",
|