brepjs 9.3.4 → 9.3.6
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-pgzr1snT.cjs → Blueprint-DPrVGHO7.cjs} +5 -5
- package/dist/{Blueprint-D-l9y6vQ.js → Blueprint-jIIEbRJU.js} +5 -5
- package/dist/{boolean2D-S1fQJkDs.js → boolean2D-B6u0KRc9.js} +7 -7
- package/dist/{boolean2D-DEQvy9jN.cjs → boolean2D-BhApsf-L.cjs} +7 -7
- package/dist/{booleanFns-Ct7VfmjG.js → booleanFns-BAw-L-nX.js} +3 -3
- package/dist/{booleanFns-CKJpkL-W.cjs → booleanFns-Dj_oaCrD.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-DiwhBI6W.js → cornerFinder-B0tnGcU4.js} +1 -1
- package/dist/{cornerFinder-BKSnwYl_.cjs → cornerFinder-bCrOjpGt.cjs} +1 -1
- package/dist/{curveFns-Vcss8w3g.js → curveFns-BOpSWBM_.js} +1 -1
- package/dist/{curveFns-CJ_Rhqu7.cjs → curveFns-CZleOv_h.cjs} +1 -1
- package/dist/{drawFns-DR-Pn6Ox.js → drawFns-D3B-bSgF.js} +10 -10
- package/dist/{drawFns-BMN2P_95.cjs → drawFns-xNlki_S7.cjs} +10 -10
- package/dist/{faceFns-CScUN5LN.js → faceFns-BOn2mjLG.js} +1 -1
- package/dist/{faceFns-Cqgs0uTB.cjs → faceFns-Dc5puKHH.cjs} +1 -1
- package/dist/{helpers-BUdSB_hP.js → helpers-BZ-Ihxrc.js} +4 -4
- package/dist/{helpers-orCR-9t0.cjs → helpers-CPv96_9e.cjs} +4 -4
- package/dist/io.cjs +3 -3
- package/dist/io.js +3 -3
- package/dist/kernel/evolutionOps.d.ts.map +1 -1
- package/dist/kernel/index.d.ts.map +1 -1
- package/dist/{loft-B6AuFlWT.js → loft-BD7ZqREo.js} +3 -3
- package/dist/{loft-DttG6eeq.cjs → loft-s34qDUbd.cjs} +3 -3
- package/dist/{measurement-Xm1XusbA.js → measurement-DaGrbF2-.js} +2 -2
- package/dist/{measurement-D61iSCBv.cjs → measurement-qhkA49pp.cjs} +2 -2
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-B8LxlRhm.js → meshFns-C9iQRYt1.js} +2 -2
- package/dist/{meshFns-CCrO47TM.cjs → meshFns-DxVxiYeE.cjs} +2 -2
- package/dist/{operations-D-htN8K3.js → operations-BELmPqGI.js} +3 -3
- package/dist/{operations-B1uuSLB2.cjs → operations-DXLc82e9.cjs} +3 -3
- 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-BvwnrLYU.cjs → shapeFns-BPvrDsoI.cjs} +2 -2
- package/dist/{shapeFns-BiMiqVm0.js → shapeFns-vG2rLms_.js} +2 -2
- package/dist/{shapeTypes-DIwQBQKB.cjs → shapeTypes-DenorQVG.cjs} +15 -1
- package/dist/{shapeTypes-D5th-THo.js → shapeTypes-DufCiUqb.js} +15 -1
- package/dist/sketching.cjs +2 -2
- package/dist/sketching.js +2 -2
- package/dist/{surfaceBuilders-CkDPvbwD.js → surfaceBuilders-6muSoK9E.js} +2 -2
- package/dist/{surfaceBuilders-DbvODAS_.cjs → surfaceBuilders-CH0WqBcz.cjs} +2 -2
- package/dist/{topology-BvUvMNMo.js → topology-BlslYPfb.js} +6 -6
- package/dist/{topology-BndoQLIN.cjs → topology-DNPaVy5y.cjs} +6 -6
- package/dist/topology.cjs +6 -6
- package/dist/topology.js +6 -6
- package/package.json +2 -1
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-DPrVGHO7.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-BhApsf-L.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-jIIEbRJU.js";
|
|
2
|
+
import { d, C } from "./Blueprint-jIIEbRJU.js";
|
|
3
|
+
import { e, C as C2, f, l, g, n, k, q, o, p, r } from "./boolean2D-B6u0KRc9.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-BwRTfFd1.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-DenorQVG.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-Dc5puKHH.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-CZleOv_h.cjs");
|
|
7
7
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
8
|
-
const helpers = require("./helpers-
|
|
8
|
+
const helpers = require("./helpers-CPv96_9e.cjs");
|
|
9
9
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
10
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const surfaceBuilders = require("./surfaceBuilders-CH0WqBcz.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-CpZfWX0T.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-DufCiUqb.js";
|
|
4
|
+
import { u as uvBounds, f as faceGeomType, e as faceCenter, h as uvCoordinates, c as cast } from "./faceFns-BOn2mjLG.js";
|
|
5
|
+
import { g as getOrientation } from "./curveFns-BOpSWBM_.js";
|
|
6
6
|
import { o as ok, e as err, b as computationError, u as unwrap, x as validationError } from "./errors-C_XjfNt5.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-BZ-Ihxrc.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-6muSoK9E.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-CpZfWX0T.js";
|
|
47
47
|
import { o as ok, e as err, b as computationError, u as unwrap, g as isOk } from "./errors-C_XjfNt5.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-BOn2mjLG.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-BD7ZqREo.js";
|
|
52
|
+
import { y as getKernel2D, t as createFace, r as createWire, q as getKernel, s as createEdge, D as DisposalScope } from "./shapeTypes-DufCiUqb.js";
|
|
53
|
+
import { d as curveStartPoint, c as curveTangentAt, e as curveIsClosed } from "./curveFns-BOpSWBM_.js";
|
|
54
|
+
import { m as makeFace, l as makeNewFaceWithinFace, b as assembleWire, z as zip } from "./surfaceBuilders-6muSoK9E.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-BZ-Ihxrc.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-jIIEbRJU.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-BwRTfFd1.cjs");
|
|
48
48
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
49
|
-
const faceFns = require("./faceFns-
|
|
49
|
+
const faceFns = require("./faceFns-Dc5puKHH.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-s34qDUbd.cjs");
|
|
53
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
54
|
+
const curveFns = require("./curveFns-CZleOv_h.cjs");
|
|
55
|
+
const surfaceBuilders = require("./surfaceBuilders-CH0WqBcz.cjs");
|
|
56
56
|
const result = require("./result.cjs");
|
|
57
|
-
const helpers = require("./helpers-
|
|
58
|
-
const Blueprint = require("./Blueprint-
|
|
57
|
+
const helpers = require("./helpers-CPv96_9e.cjs");
|
|
58
|
+
const Blueprint = require("./Blueprint-DPrVGHO7.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-DufCiUqb.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-C_XjfNt5.js";
|
|
3
3
|
import { r as resolvePlane } from "./vectors-CpZfWX0T.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, 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, c as getWires, d as getEdges, e as getVertices } from "./shapeFns-vG2rLms_.js";
|
|
6
|
+
import { m as makeFace } from "./surfaceBuilders-6muSoK9E.js";
|
|
7
7
|
const shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
8
8
|
const tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
function getTagMap(shape) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
3
3
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
4
4
|
const vectors = require("./vectors-BwRTfFd1.cjs");
|
|
5
5
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
6
|
-
const shapeFns = require("./shapeFns-
|
|
7
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
6
|
+
const shapeFns = require("./shapeFns-BPvrDsoI.cjs");
|
|
7
|
+
const surfaceBuilders = require("./surfaceBuilders-CH0WqBcz.cjs");
|
|
8
8
|
const shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
const tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
10
10
|
function getTagMap(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-DenorQVG.cjs");
|
|
49
49
|
const errors = require("./errors-HU7EpHt3.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-DPrVGHO7.cjs");
|
|
52
|
+
const loft$2 = require("./loft-s34qDUbd.cjs");
|
|
53
|
+
const operations = require("./operations-DXLc82e9.cjs");
|
|
54
|
+
const boolean2D = require("./boolean2D-BhApsf-L.cjs");
|
|
55
55
|
const _2d = require("./2d.cjs");
|
|
56
|
-
const helpers = require("./helpers-
|
|
56
|
+
const helpers = require("./helpers-CPv96_9e.cjs");
|
|
57
57
|
const io = require("./io.cjs");
|
|
58
|
-
const drawFns = require("./drawFns-
|
|
58
|
+
const drawFns = require("./drawFns-xNlki_S7.cjs");
|
|
59
59
|
const types = require("./types-CA_xrgDq.cjs");
|
|
60
60
|
const vectors = require("./vectors-BwRTfFd1.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-BPvrDsoI.cjs");
|
|
62
|
+
const booleanFns = require("./booleanFns-Dj_oaCrD.cjs");
|
|
63
|
+
const topology = require("./topology-DNPaVy5y.cjs");
|
|
64
|
+
const curveFns = require("./curveFns-CZleOv_h.cjs");
|
|
65
|
+
const faceFns = require("./faceFns-Dc5puKHH.cjs");
|
|
66
|
+
const meshFns = require("./meshFns-DxVxiYeE.cjs");
|
|
67
|
+
const measurement = require("./measurement-qhkA49pp.cjs");
|
|
68
|
+
const surfaceBuilders = require("./surfaceBuilders-CH0WqBcz.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-bCrOjpGt.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-DufCiUqb.js";
|
|
47
|
+
import { u, s, t, a, b, B, v, g, C, i, f, h, m, E, F, w, o, p } from "./shapeTypes-DufCiUqb.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-C_XjfNt5.js";
|
|
49
49
|
import { O, a as a2, c, b as b2, f as f2, g as g2, m as m2, h as h2, j, l, z, s as s2, t as t2, n, r, v as v2, w as w2 } from "./errors-C_XjfNt5.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 C2, 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, B as B3, C as C3, D, E as E2 } from "./operations-
|
|
57
|
-
import { B as B4, a as a5, e as e2, C as C4, F as F2, 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 C2, s as s3 } from "./Blueprint-jIIEbRJU.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-BD7ZqREo.js";
|
|
54
|
+
import { b as b4, g as g4, r as r2 } from "./loft-BD7ZqREo.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-BELmPqGI.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, B as B3, C as C3, D, E as E2 } from "./operations-BELmPqGI.js";
|
|
57
|
+
import { B as B4, a as a5, e as e2, C as C4, F as F2, 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-B6u0KRc9.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-BZ-Ihxrc.js";
|
|
60
|
+
import { g as g7 } from "./helpers-BZ-Ihxrc.js";
|
|
61
61
|
import { blueprintToDXF, exportDXF, exportGlb, exportGltf, exportOBJ, exportThreeMF, importIGES, importSTEP, importSTL, importSVG, importSVGPathD } from "./io.js";
|
|
62
|
-
import { C as C5, D as D2, 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 A2, a2 as a22, B as B5, E as E3, a3 as a32, F as F3, G, H, 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 C5, D as D2, 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 A2, a2 as a22, B as B5, E as E3, a3 as a32, F as F3, G, H, 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-D3B-bSgF.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-CpZfWX0T.js";
|
|
66
|
-
import { v as vertexPosition, a as getFaces, e as getVertices, d as getEdges, t as translate$1, p as propagateOriginsFromEvolution, h as applyMatrix$1, j as clone$1, k as describe$1, l as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, n as simplify$1, o as toBREP$1, q as transformCopy$1, u as getBounds, c as getWires } from "./shapeFns-
|
|
67
|
-
import { w as w4, g as g9, f as f6, x as x3, i as i5, y as y3, z as z4, A as A3, B as B6, C as C6, D as D3 } from "./shapeFns-
|
|
68
|
-
import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, b as sectionToFace$1, d as slice$1, e as split$1, g as fuseAll, h as cutAll } from "./booleanFns-
|
|
69
|
-
import { j as j4, k as k5, l as l5, m as m6, n as n5, o as o6, q as q4, r as r7, t as t7 } 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 g10, j as j5, s as s5, t as t8, k as k6, l as l6, v as v6, 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 j6, k as k7, l as l7, f as f8, b as b8, g as g11, 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 v7, u as u4, 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 g12, 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, t as translate$1, p as propagateOriginsFromEvolution, h as applyMatrix$1, j as clone$1, k as describe$1, l as isEmpty$1, m as mirror$1, r as rotate$1, s as scale$1, n as simplify$1, o as toBREP$1, q as transformCopy$1, u as getBounds, c as getWires } from "./shapeFns-vG2rLms_.js";
|
|
67
|
+
import { w as w4, g as g9, f as f6, x as x3, i as i5, y as y3, z as z4, A as A3, B as B6, C as C6, D as D3 } from "./shapeFns-vG2rLms_.js";
|
|
68
|
+
import { p as propagateFaceTagsFromEvolution, a as propagateColorsFromEvolution, c as cut$1, f as fuse$1, i as intersect$1, s as section$1, b as sectionToFace$1, d as slice$1, e as split$1, g as fuseAll, h as cutAll } from "./booleanFns-BAw-L-nX.js";
|
|
69
|
+
import { j as j4, k as k5, l as l5, m as m6, n as n5, o as o6, q as q4, r as r7, t as t7 } from "./booleanFns-BAw-L-nX.js";
|
|
70
|
+
import { c as chamferDistAngle, h as heal$1, i as isValid$1 } from "./topology-BlslYPfb.js";
|
|
71
|
+
import { a as a8, b as b7, e as e4, f as f7, d as d5, g as g10, j as j5, s as s5, t as t8, k as k6, l as l6, v as v6, w as w5 } from "./topology-BlslYPfb.js";
|
|
72
|
+
import { e as curveIsClosed, d as curveStartPoint, c as curveTangentAt, h as curvePointAt, a as curveEndPoint, i as curveLength } from "./curveFns-BOpSWBM_.js";
|
|
73
|
+
import { j as j6, k as k7, l as l7, f as f8, b as b8, g as g11, m as m7, o as o7 } from "./curveFns-BOpSWBM_.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-BOn2mjLG.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 v7, u as u4, h as h6 } from "./faceFns-BOn2mjLG.js";
|
|
76
|
+
import { m as mesh$1, a as meshEdges$1 } from "./meshFns-C9iQRYt1.js";
|
|
77
|
+
import { c as c5, b as b9, e as e5, d as d7, f as f10 } from "./meshFns-C9iQRYt1.js";
|
|
78
|
+
import { m as measureArea, a as measureSurfaceProps, b as measureVolumeProps, c as measureVolume } from "./measurement-DaGrbF2-.js";
|
|
79
|
+
import { d as d8, e as e6, f as f11, g as g12, h as h7, i as i6 } from "./measurement-DaGrbF2-.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-6muSoK9E.js";
|
|
81
|
+
import { p as p7 } from "./surfaceBuilders-6muSoK9E.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-B0tnGcU4.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-HU7EpHt3.cjs");
|
|
6
6
|
const vectors = require("./vectors-BwRTfFd1.cjs");
|
|
7
|
-
const shapeTypes = require("./shapeTypes-
|
|
7
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.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-C_XjfNt5.js";
|
|
4
4
|
import { c as c3, a as a4, p as p2, r as r3, t as t3 } from "./vectors-CpZfWX0T.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-DufCiUqb.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-BZ-Ihxrc.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,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-DufCiUqb.js";
|
|
2
2
|
import { e as err, p as typeCastError, o as ok } from "./errors-C_XjfNt5.js";
|
|
3
3
|
function getCurveType(shape) {
|
|
4
4
|
return getKernel().curveType(shape.wrapped);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
3
3
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
4
4
|
function getCurveType(shape) {
|
|
5
5
|
return shapeTypes.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-CpZfWX0T.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-B6u0KRc9.js";
|
|
51
|
+
import { d as downcast, c as cast, e as faceCenter, n as normalAt, o as outerWire } from "./faceFns-BOn2mjLG.js";
|
|
52
|
+
import { c as curveTangentAt, a as curveEndPoint, f as flipOrientation, b as getCurveType, o as offsetWire2D } from "./curveFns-BOpSWBM_.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-6muSoK9E.js";
|
|
54
|
+
import { D as DisposalScope, q as getKernel, r as createWire, t as createFace, e as isFace, c as castShape } from "./shapeTypes-DufCiUqb.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-jIIEbRJU.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-BZ-Ihxrc.js";
|
|
58
|
+
import { d as getEdges } from "./shapeFns-vG2rLms_.js";
|
|
59
|
+
import { m as makeCompound, b as basicFaceExtrusion, r as revolution, a as makeSolid, c as complexExtrude, t as twistExtrude } from "./loft-BD7ZqREo.js";
|
|
60
60
|
import opentype from "opentype.js";
|
|
61
|
-
import { c as cornerFinder } from "./cornerFinder-
|
|
61
|
+
import { c as cornerFinder } from "./cornerFinder-B0tnGcU4.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-HU7EpHt3.cjs");
|
|
|
48
48
|
const vectors = require("./vectors-BwRTfFd1.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-BhApsf-L.cjs");
|
|
52
|
+
const faceFns = require("./faceFns-Dc5puKHH.cjs");
|
|
53
|
+
const curveFns = require("./curveFns-CZleOv_h.cjs");
|
|
54
|
+
const surfaceBuilders = require("./surfaceBuilders-CH0WqBcz.cjs");
|
|
55
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
56
|
+
const Blueprint = require("./Blueprint-DPrVGHO7.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-CPv96_9e.cjs");
|
|
59
|
+
const shapeFns = require("./shapeFns-BPvrDsoI.cjs");
|
|
60
|
+
const loft = require("./loft-s34qDUbd.cjs");
|
|
61
61
|
const opentype = require("opentype.js");
|
|
62
|
-
const cornerFinder = require("./cornerFinder-
|
|
62
|
+
const cornerFinder = require("./cornerFinder-bCrOjpGt.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-DufCiUqb.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-C_XjfNt5.js";
|
|
4
4
|
const TOPO_ENUM = {
|
|
@@ -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-DufCiUqb.js";
|
|
3
3
|
import { e as err, q as queryError, o as ok, u as unwrap } from "./errors-C_XjfNt5.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-BOn2mjLG.js";
|
|
6
|
+
import { m as measureArea } from "./measurement-DaGrbF2-.js";
|
|
7
|
+
import { f as getHashCode, i as isSameShape } from "./shapeFns-vG2rLms_.js";
|
|
8
8
|
const PRECISION_INTERSECTION = 1e-9;
|
|
9
9
|
const PRECISION_OFFSET = 1e-8;
|
|
10
10
|
const PRECISION_POINT = 1e-6;
|
|
@@ -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-DenorQVG.cjs");
|
|
4
4
|
const errors = require("./errors-HU7EpHt3.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-Dc5puKHH.cjs");
|
|
7
|
+
const measurement = require("./measurement-qhkA49pp.cjs");
|
|
8
|
+
const shapeFns = require("./shapeFns-BPvrDsoI.cjs");
|
|
9
9
|
const PRECISION_INTERSECTION = 1e-9;
|
|
10
10
|
const PRECISION_OFFSET = 1e-8;
|
|
11
11
|
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-DenorQVG.cjs");
|
|
4
4
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
5
|
-
const meshFns = require("./meshFns-
|
|
6
|
-
const Blueprint = require("./Blueprint-
|
|
5
|
+
const meshFns = require("./meshFns-DxVxiYeE.cjs");
|
|
6
|
+
const Blueprint = require("./Blueprint-DPrVGHO7.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-DufCiUqb.js";
|
|
2
2
|
import { e as err, i as ioError, o as ok } from "./errors-C_XjfNt5.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-C9iQRYt1.js";
|
|
4
|
+
import { B as Blueprint, a as make2dSegmentCurve, l as make2dThreePointArc, q as make2dBezierCurve } from "./Blueprint-jIIEbRJU.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":"evolutionOps.d.ts","sourceRoot":"","sources":["../../src/kernel/evolutionOps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG/F,KAAK,SAAS,GAAG,GAAG,CAAC;AA2BrB;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,EAAE,EAAE,cAAc,EAClB,EAAE,EAAE,SAAS,EACb,MAAM,EAAE,WAAW,GAAG,WAAW,EAAE,EACnC,eAAe,EAAE,MAAM,EAAE,EACzB,cAAc,EAAE,MAAM,GACrB,cAAc,
|
|
1
|
+
{"version":3,"file":"evolutionOps.d.ts","sourceRoot":"","sources":["../../src/kernel/evolutionOps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAG/F,KAAK,SAAS,GAAG,GAAG,CAAC;AA2BrB;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAC5B,EAAE,EAAE,cAAc,EAClB,EAAE,EAAE,SAAS,EACb,MAAM,EAAE,WAAW,GAAG,WAAW,EAAE,EACnC,eAAe,EAAE,MAAM,EAAE,EACzB,cAAc,EAAE,MAAM,GACrB,cAAc,CAkDhB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,EAAE,EAAE,cAAc,EAClB,KAAK,EAAE,WAAW,EAElB,IAAI,EAAE,GAAG,EACT,eAAe,EAAE,MAAM,EAAE,EACzB,cAAc,EAAE,MAAM,GACrB,eAAe,CAajB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,EAAE,EAAE,cAAc,EAElB,MAAM,EAAE,GAAG,EACX,WAAW,EAAE,WAAW,GAAG,WAAW,EAAE,EACxC,eAAe,EAAE,MAAM,EAAE,EACzB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,OAAO,GAChB,eAAe,CAKjB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,EAAE,EAAE,cAAc,EAElB,OAAO,EAAE,GAAG,EACZ,UAAU,EAAE,WAAW,EACvB,eAAe,EAAE,MAAM,EAAE,EACzB,cAAc,EAAE,MAAM,GACrB,eAAe,CAIjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kernel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/kernel/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAY7D;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,IAAI,CAIvE;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,CAcpD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,kBAAkB,CAM3E;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,EACrE,EAAE,EAAE,MAAM,EACV,EAAE,EAAE,MAAM,CAAC,GACV,CAAC,CAWH;AAED,gEAAgE;AAChE,wBAAgB,UAAU,CAAC,EAAE,EAAE,cAAc,GAAG,IAAI,CAKnD;AAED,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,IAAI,mBAAmB,EACrC,cAAc,EACd,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,eAAe,GAChB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE1F,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -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-DufCiUqb.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-BOn2mjLG.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-C_XjfNt5.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-6muSoK9E.js";
|
|
52
52
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
53
53
|
if (profile !== "s-curve" && profile !== "linear") {
|
|
54
54
|
return err(
|
|
@@ -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-DenorQVG.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-Dc5puKHH.cjs");
|
|
51
51
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
52
|
-
const surfaceBuilders = require("./surfaceBuilders-
|
|
52
|
+
const surfaceBuilders = require("./surfaceBuilders-CH0WqBcz.cjs");
|
|
53
53
|
function buildLawFromProfile(extrusionLength, { profile, endFactor = 1 }) {
|
|
54
54
|
if (profile !== "s-curve" && profile !== "linear") {
|
|
55
55
|
return errors.err(
|
|
@@ -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-DufCiUqb.js";
|
|
2
|
+
import { u as uvBounds } from "./faceFns-BOn2mjLG.js";
|
|
3
3
|
let cache = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
function getCachedMeasurement(shape, key) {
|
|
5
5
|
return cache.get(shape)?.get(key);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
3
|
-
const faceFns = require("./faceFns-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
3
|
+
const faceFns = require("./faceFns-Dc5puKHH.cjs");
|
|
4
4
|
let cache = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
function getCachedMeasurement(shape, key) {
|
|
6
6
|
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-qhkA49pp.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-DufCiUqb.js";
|
|
2
2
|
import { o as ok, e as err, i as ioError } from "./errors-C_XjfNt5.js";
|
|
3
|
-
import { g as getFaceOrigins } from "./shapeFns-
|
|
3
|
+
import { g as getFaceOrigins } from "./shapeFns-vG2rLms_.js";
|
|
4
4
|
function buildMeshCacheKey(tolerance, angularTolerance, skipNormals) {
|
|
5
5
|
return `${tolerance}:${angularTolerance}:${skipNormals}`;
|
|
6
6
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
3
3
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
4
|
-
const shapeFns = require("./shapeFns-
|
|
4
|
+
const shapeFns = require("./shapeFns-BPvrDsoI.cjs");
|
|
5
5
|
function buildMeshCacheKey(tolerance, angularTolerance, skipNormals) {
|
|
6
6
|
return `${tolerance}:${angularTolerance}:${skipNormals}`;
|
|
7
7
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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-DufCiUqb.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-C_XjfNt5.js";
|
|
4
|
-
import { n as buildLawFromProfile } from "./loft-
|
|
5
|
-
import { g as fuseAll } from "./booleanFns-
|
|
4
|
+
import { n as buildLawFromProfile } from "./loft-BD7ZqREo.js";
|
|
5
|
+
import { g as fuseAll } from "./booleanFns-BAw-L-nX.js";
|
|
6
6
|
function uuidv() {
|
|
7
7
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
8
8
|
/[018]/g,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const shapeTypes = require("./shapeTypes-
|
|
2
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
4
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
5
|
-
const loft = require("./loft-
|
|
6
|
-
const booleanFns = require("./booleanFns-
|
|
5
|
+
const loft = require("./loft-s34qDUbd.cjs");
|
|
6
|
+
const booleanFns = require("./booleanFns-Dj_oaCrD.cjs");
|
|
7
7
|
function uuidv() {
|
|
8
8
|
return (String([1e7]) + String(-1e3) + String(-4e3) + String(-8e3) + String(-1e11)).replace(
|
|
9
9
|
/[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-DXLc82e9.cjs");
|
|
4
|
+
const loft = require("./loft-s34qDUbd.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, m, n, o, p, l, q, t, u, v, x, y, z, A, B, s, C, D, E, 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, m, n, o, p, l, q, t, u, v, x, y, z, A, B, s, C, D, E, w } from "./operations-BELmPqGI.js";
|
|
2
|
+
import { b as b2, g as g2, l as l2, r } from "./loft-BD7ZqREo.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-CPv96_9e.cjs");
|
|
4
|
+
const cornerFinder = require("./cornerFinder-bCrOjpGt.cjs");
|
|
5
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
6
6
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
7
|
-
const curveFns = require("./curveFns-
|
|
7
|
+
const curveFns = require("./curveFns-CZleOv_h.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-BZ-Ihxrc.js";
|
|
2
|
+
import { m, g } from "./helpers-BZ-Ihxrc.js";
|
|
3
|
+
import { c } from "./cornerFinder-B0tnGcU4.js";
|
|
4
|
+
import { q as getKernel } from "./shapeTypes-DufCiUqb.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-BOpSWBM_.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-DenorQVG.cjs");
|
|
3
3
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-Dc5puKHH.cjs");
|
|
5
5
|
const errors = require("./errors-HU7EpHt3.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-DufCiUqb.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-BOn2mjLG.js";
|
|
4
4
|
import { u as unwrap } from "./errors-C_XjfNt5.js";
|
|
5
5
|
function clone(shape) {
|
|
6
6
|
return castShape(unwrap(downcast(shape.wrapped)));
|
|
@@ -3212,6 +3212,9 @@ function buildEvolution(oc, op, shapes, inputFaceHashes, hashUpperBound) {
|
|
|
3212
3212
|
const modified = /* @__PURE__ */ new Map();
|
|
3213
3213
|
const generated = /* @__PURE__ */ new Map();
|
|
3214
3214
|
const deleted = /* @__PURE__ */ new Set();
|
|
3215
|
+
if (inputFaceHashes.length === 0) {
|
|
3216
|
+
return { modified, generated, deleted };
|
|
3217
|
+
}
|
|
3215
3218
|
const inputHashSet = new Set(inputFaceHashes);
|
|
3216
3219
|
const facesById = /* @__PURE__ */ new Map();
|
|
3217
3220
|
const shapeArray = Array.isArray(shapes) ? shapes : [shapes];
|
|
@@ -3250,7 +3253,11 @@ function buildEvolution(oc, op, shapes, inputFaceHashes, hashUpperBound) {
|
|
|
3250
3253
|
function transformWithEvolution(oc, shape, trsf, inputFaceHashes, hashUpperBound) {
|
|
3251
3254
|
const transformer = new oc.BRepBuilderAPI_Transform_2(shape, trsf, true);
|
|
3252
3255
|
const resultShape = transformer.Shape();
|
|
3253
|
-
const evolution =
|
|
3256
|
+
const evolution = inputFaceHashes.length === 0 ? {
|
|
3257
|
+
modified: /* @__PURE__ */ new Map(),
|
|
3258
|
+
generated: /* @__PURE__ */ new Map(),
|
|
3259
|
+
deleted: /* @__PURE__ */ new Set()
|
|
3260
|
+
} : buildEvolution(oc, transformer, shape, inputFaceHashes, hashUpperBound);
|
|
3254
3261
|
transformer.delete();
|
|
3255
3262
|
return { shape: resultShape, evolution };
|
|
3256
3263
|
}
|
|
@@ -5025,11 +5032,14 @@ class DefaultAdapter {
|
|
|
5025
5032
|
}
|
|
5026
5033
|
const _kernels = /* @__PURE__ */ new Map();
|
|
5027
5034
|
let _defaultKernelId = null;
|
|
5035
|
+
let _cachedDefault = null;
|
|
5028
5036
|
function registerKernel(id, adapter) {
|
|
5029
5037
|
_kernels.set(id, adapter);
|
|
5030
5038
|
if (!_defaultKernelId) _defaultKernelId = id;
|
|
5039
|
+
if (id === _defaultKernelId) _cachedDefault = adapter;
|
|
5031
5040
|
}
|
|
5032
5041
|
function getKernel(id) {
|
|
5042
|
+
if (!id && _cachedDefault) return _cachedDefault;
|
|
5033
5043
|
const targetId = id ?? _defaultKernelId;
|
|
5034
5044
|
if (!targetId) {
|
|
5035
5045
|
throw new Error(
|
|
@@ -5051,17 +5061,21 @@ function getKernel2D(id) {
|
|
|
5051
5061
|
}
|
|
5052
5062
|
function withKernel(id, fn) {
|
|
5053
5063
|
const prev = _defaultKernelId;
|
|
5064
|
+
const prevCached = _cachedDefault;
|
|
5054
5065
|
_defaultKernelId = id;
|
|
5066
|
+
_cachedDefault = _kernels.get(id) ?? null;
|
|
5055
5067
|
try {
|
|
5056
5068
|
return fn();
|
|
5057
5069
|
} finally {
|
|
5058
5070
|
_defaultKernelId = prev;
|
|
5071
|
+
_cachedDefault = prevCached;
|
|
5059
5072
|
}
|
|
5060
5073
|
}
|
|
5061
5074
|
function initFromOC(oc) {
|
|
5062
5075
|
const adapter = new DefaultAdapter(oc);
|
|
5063
5076
|
registerKernel("occt", adapter);
|
|
5064
5077
|
_defaultKernelId = "occt";
|
|
5078
|
+
_cachedDefault = adapter;
|
|
5065
5079
|
}
|
|
5066
5080
|
const S = Symbol;
|
|
5067
5081
|
S.dispose ??= /* @__PURE__ */ Symbol.for("Symbol.dispose");
|
|
@@ -3211,6 +3211,9 @@ function buildEvolution(oc, op, shapes, inputFaceHashes, hashUpperBound) {
|
|
|
3211
3211
|
const modified = /* @__PURE__ */ new Map();
|
|
3212
3212
|
const generated = /* @__PURE__ */ new Map();
|
|
3213
3213
|
const deleted = /* @__PURE__ */ new Set();
|
|
3214
|
+
if (inputFaceHashes.length === 0) {
|
|
3215
|
+
return { modified, generated, deleted };
|
|
3216
|
+
}
|
|
3214
3217
|
const inputHashSet = new Set(inputFaceHashes);
|
|
3215
3218
|
const facesById = /* @__PURE__ */ new Map();
|
|
3216
3219
|
const shapeArray = Array.isArray(shapes) ? shapes : [shapes];
|
|
@@ -3249,7 +3252,11 @@ function buildEvolution(oc, op, shapes, inputFaceHashes, hashUpperBound) {
|
|
|
3249
3252
|
function transformWithEvolution(oc, shape, trsf, inputFaceHashes, hashUpperBound) {
|
|
3250
3253
|
const transformer = new oc.BRepBuilderAPI_Transform_2(shape, trsf, true);
|
|
3251
3254
|
const resultShape = transformer.Shape();
|
|
3252
|
-
const evolution =
|
|
3255
|
+
const evolution = inputFaceHashes.length === 0 ? {
|
|
3256
|
+
modified: /* @__PURE__ */ new Map(),
|
|
3257
|
+
generated: /* @__PURE__ */ new Map(),
|
|
3258
|
+
deleted: /* @__PURE__ */ new Set()
|
|
3259
|
+
} : buildEvolution(oc, transformer, shape, inputFaceHashes, hashUpperBound);
|
|
3253
3260
|
transformer.delete();
|
|
3254
3261
|
return { shape: resultShape, evolution };
|
|
3255
3262
|
}
|
|
@@ -5024,11 +5031,14 @@ class DefaultAdapter {
|
|
|
5024
5031
|
}
|
|
5025
5032
|
const _kernels = /* @__PURE__ */ new Map();
|
|
5026
5033
|
let _defaultKernelId = null;
|
|
5034
|
+
let _cachedDefault = null;
|
|
5027
5035
|
function registerKernel(id, adapter) {
|
|
5028
5036
|
_kernels.set(id, adapter);
|
|
5029
5037
|
if (!_defaultKernelId) _defaultKernelId = id;
|
|
5038
|
+
if (id === _defaultKernelId) _cachedDefault = adapter;
|
|
5030
5039
|
}
|
|
5031
5040
|
function getKernel(id) {
|
|
5041
|
+
if (!id && _cachedDefault) return _cachedDefault;
|
|
5032
5042
|
const targetId = id ?? _defaultKernelId;
|
|
5033
5043
|
if (!targetId) {
|
|
5034
5044
|
throw new Error(
|
|
@@ -5050,17 +5060,21 @@ function getKernel2D(id) {
|
|
|
5050
5060
|
}
|
|
5051
5061
|
function withKernel(id, fn) {
|
|
5052
5062
|
const prev = _defaultKernelId;
|
|
5063
|
+
const prevCached = _cachedDefault;
|
|
5053
5064
|
_defaultKernelId = id;
|
|
5065
|
+
_cachedDefault = _kernels.get(id) ?? null;
|
|
5054
5066
|
try {
|
|
5055
5067
|
return fn();
|
|
5056
5068
|
} finally {
|
|
5057
5069
|
_defaultKernelId = prev;
|
|
5070
|
+
_cachedDefault = prevCached;
|
|
5058
5071
|
}
|
|
5059
5072
|
}
|
|
5060
5073
|
function initFromOC(oc) {
|
|
5061
5074
|
const adapter = new DefaultAdapter(oc);
|
|
5062
5075
|
registerKernel("occt", adapter);
|
|
5063
5076
|
_defaultKernelId = "occt";
|
|
5077
|
+
_cachedDefault = adapter;
|
|
5064
5078
|
}
|
|
5065
5079
|
const S = Symbol;
|
|
5066
5080
|
S.dispose ??= /* @__PURE__ */ Symbol.for("Symbol.dispose");
|
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-xNlki_S7.cjs");
|
|
4
|
+
const boolean2D = require("./boolean2D-BhApsf-L.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-D3B-bSgF.js";
|
|
2
|
+
import { B as B2, a as a2, F as F2, S as S2 } from "./boolean2D-B6u0KRc9.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-DufCiUqb.js";
|
|
2
2
|
import { o as ok, e as err, k as kernelError, x as validationError, a as andThen } from "./errors-C_XjfNt5.js";
|
|
3
|
-
import { o as outerWire, c as cast } from "./faceFns-
|
|
3
|
+
import { o as outerWire, c as cast } from "./faceFns-BOn2mjLG.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-DenorQVG.cjs");
|
|
3
3
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
4
|
-
const faceFns = require("./faceFns-
|
|
4
|
+
const faceFns = require("./faceFns-Dc5puKHH.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-vG2rLms_.js";
|
|
2
|
+
import "./booleanFns-BAw-L-nX.js";
|
|
3
|
+
import { q as getKernel, c as castShape, j as isShape3D, l as isSolid, e as isFace, n as isWire } from "./shapeTypes-DufCiUqb.js";
|
|
4
|
+
import { d as downcast } from "./faceFns-BOn2mjLG.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-C_XjfNt5.js";
|
|
6
|
-
import "./curveFns-
|
|
6
|
+
import "./curveFns-BOpSWBM_.js";
|
|
7
7
|
import { H as HASH_CODE_MAX } from "./vecOps-ZDdZWbwT.js";
|
|
8
|
-
import "./meshFns-
|
|
8
|
+
import "./meshFns-C9iQRYt1.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-BPvrDsoI.cjs");
|
|
3
|
+
require("./booleanFns-Dj_oaCrD.cjs");
|
|
4
|
+
const shapeTypes = require("./shapeTypes-DenorQVG.cjs");
|
|
5
|
+
const faceFns = require("./faceFns-Dc5puKHH.cjs");
|
|
6
6
|
const errors = require("./errors-HU7EpHt3.cjs");
|
|
7
|
-
require("./curveFns-
|
|
7
|
+
require("./curveFns-CZleOv_h.cjs");
|
|
8
8
|
const vecOps = require("./vecOps-CjRL1jau.cjs");
|
|
9
|
-
require("./meshFns-
|
|
9
|
+
require("./meshFns-DxVxiYeE.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-BPvrDsoI.cjs");
|
|
4
|
+
const booleanFns = require("./booleanFns-Dj_oaCrD.cjs");
|
|
5
|
+
const topology = require("./topology-DNPaVy5y.cjs");
|
|
6
|
+
const curveFns = require("./curveFns-CZleOv_h.cjs");
|
|
7
|
+
const faceFns = require("./faceFns-Dc5puKHH.cjs");
|
|
8
|
+
const meshFns = require("./meshFns-DxVxiYeE.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 { u, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-
|
|
2
|
-
import { h, g } from "./booleanFns-
|
|
3
|
-
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w } from "./topology-
|
|
4
|
-
import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g3, m, o } from "./curveFns-
|
|
5
|
-
import { l as l3, c as c4, m as m2, j as j3, d as d4, e as e4, f as f4, q, r, g as g4, k as k3, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u as u2, 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 { u, d, a, f, e, c, x, i, y, z, A, B, v } from "./shapeFns-vG2rLms_.js";
|
|
2
|
+
import { h, g } from "./booleanFns-BAw-L-nX.js";
|
|
3
|
+
import { a as a2, b, c as c2, e as e2, f as f2, d as d2, g as g2, j, s, t, k, l, v as v2, w } from "./topology-BlslYPfb.js";
|
|
4
|
+
import { j as j2, a as a3, e as e3, k as k2, i as i2, l as l2, h as h2, d as d3, c as c3, f as f3, b as b2, g as g3, m, o } from "./curveFns-BOpSWBM_.js";
|
|
5
|
+
import { l as l3, c as c4, m as m2, j as j3, d as d4, e as e4, f as f4, q, r, g as g4, k as k3, s as s2, i as i3, n, o as o2, p, t as t2, v as v3, u as u2, h as h3 } from "./faceFns-BOn2mjLG.js";
|
|
6
|
+
import { c as c5, b as b3, e as e5, d as d5, f as f5 } from "./meshFns-C9iQRYt1.js";
|
|
7
7
|
export {
|
|
8
8
|
a2 as adjacentFaces,
|
|
9
9
|
j2 as approximateCurve,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.6",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -181,6 +181,7 @@
|
|
|
181
181
|
"check:readme-reminders": "bash scripts/check-readme-reminders.sh",
|
|
182
182
|
"example": "npx tsx",
|
|
183
183
|
"knip": "knip",
|
|
184
|
+
"validate": "bash scripts/validate-change.sh",
|
|
184
185
|
"size": "size-limit",
|
|
185
186
|
"docs:api": "typedoc",
|
|
186
187
|
"docs:generate-lookup": "npx tsx scripts/generate-function-lookup.ts",
|