brepjs 18.100.0 → 18.100.2
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/README.md +6 -0
- package/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{blueprint-Dg3dsUal.js → blueprint-CoG7hqAO.js} +5 -5
- package/dist/{blueprint-BoK8H4Eq.cjs → blueprint-D60m51kI.cjs} +5 -5
- package/dist/{blueprintFns-C3F0jZOe.cjs → blueprintFns-CDdNG1E0.cjs} +2 -2
- package/dist/{blueprintFns-CuZU7Dt6.js → blueprintFns-CsR4vknQ.js} +2 -2
- package/dist/{blueprintSketcher-CIsOckAh.js → blueprintSketcher-BH026Vs6.js} +65 -50
- package/dist/{blueprintSketcher-B7QRguA5.cjs → blueprintSketcher-CNV3BF1m.cjs} +65 -50
- package/dist/{boolean2D-CZiGMjEF.js → boolean2D-BkoT0tyj.js} +4 -4
- package/dist/{boolean2D-DcowIZPB.cjs → boolean2D-DAy71yz-.cjs} +4 -4
- package/dist/brepjs.cjs +24 -24
- package/dist/brepjs.js +24 -24
- package/dist/{cameraFns-IL7qYFaG.cjs → cameraFns-B-T9D-ie.cjs} +2 -2
- package/dist/{cameraFns-BA7CVtWJ.js → cameraFns-B62EdiYs.js} +2 -2
- package/dist/core.cjs +1 -1
- package/dist/core.js +1 -1
- package/dist/{cornerFinder-eoxdiUiN.js → cornerFinder-C6GEoGxi.js} +1 -1
- package/dist/{cornerFinder-C83MpPRk.cjs → cornerFinder-oRnX2o08.cjs} +1 -1
- package/dist/{curveFns-D3k8aHIE.cjs → curveFns-BIlzT4bO.cjs} +1 -1
- package/dist/{curveFns-DT1yMgBI.js → curveFns-CaEoZJFJ.js} +1 -1
- package/dist/{drawFns-D23xqM0C.js → drawFns-BoJx2cw1.js} +12 -12
- package/dist/{drawFns-C6K03snv.cjs → drawFns-CBSGIxrq.cjs} +12 -12
- package/dist/{faceFns-DSdVqqVP.cjs → faceFns-BvtC44tv.cjs} +2 -2
- package/dist/{faceFns-CmhEEB-L.js → faceFns-Cgpg9n36.js} +2 -2
- package/dist/{healingFns-jp-NXq1c.js → healingFns-BiChNtRz.js} +5 -5
- package/dist/{healingFns-CRH5H0ik.cjs → healingFns-DY8866Fl.cjs} +5 -5
- package/dist/{helpers-mPnUPOIM.js → helpers-CRB4YhSI.js} +6 -6
- package/dist/{helpers-Bykw93Yc.cjs → helpers-DDN_oU6P.cjs} +6 -6
- package/dist/{importFns-CJVyVdNQ.js → importFns-CcUm7pcu.js} +2 -2
- package/dist/{importFns-Nlx1v8IF.cjs → importFns-v3C1RKi2.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/brepkitWasmTypes.d.ts +16 -8
- package/dist/kernel/interfaces/meshOps.d.ts +2 -4
- package/dist/{loftFns-CyrWJCXb.cjs → loftFns-CFyOO359.cjs} +1 -1
- package/dist/{loftFns-CxnBxE9h.js → loftFns-D5rQxNOI.js} +1 -1
- package/dist/{measureFns-D0e8tGSP.js → measureFns-BrrVzFq0.js} +3 -3
- package/dist/{measureFns-BtPAmRfH.cjs → measureFns-D2Y2OOuw.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-Cv-_-nIL.cjs → meshFns-BKBGgLB4.cjs} +3 -3
- package/dist/{meshFns-IeQzI5dz.js → meshFns-Bkcg1u5D.js} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{primitiveFns-BDQodKI0.cjs → primitiveFns-DFwdXRvP.cjs} +4 -4
- package/dist/{primitiveFns-DOHI4nuz.js → primitiveFns-DmF1hhYr.js} +4 -4
- package/dist/projection.cjs +1 -1
- package/dist/projection.js +1 -1
- package/dist/query.cjs +2 -2
- package/dist/query.js +2 -2
- package/dist/{shapeFns-CqYYHFqr.cjs → shapeFns-B3GP-0FJ.cjs} +2 -2
- package/dist/{shapeFns-DGjXjLp_.js → shapeFns-D-4StVDd.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeRefFns-9Fexl5XC.cjs → shapeRefFns-CdgSGKLD.cjs} +4 -4
- package/dist/{shapeRefFns-DNbdr2rL.js → shapeRefFns-CtUw9bYy.js} +4 -4
- package/dist/{shapeTypes-DwNTiXjG.cjs → shapeTypes-DQfoZt_L.cjs} +34 -2
- package/dist/{shapeTypes-BIcALNFv.js → shapeTypes-z5bfGPVI.js} +34 -2
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-cM4rOTJ5.js → solidBuilders-Dcl1gZwH.js} +5 -5
- package/dist/{solidBuilders-DtK5cc9v.cjs → solidBuilders-RRBbe3dp.cjs} +5 -5
- package/dist/{surfaceBuilders-BQx3TjMH.js → surfaceBuilders-DXMOQVyx.js} +2 -2
- package/dist/{surfaceBuilders-DvpxHHIm.cjs → surfaceBuilders-D_htXKwS.cjs} +2 -2
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-BXfjcyoe.cjs → textBlueprints-A1zJwOLD.cjs} +7 -7
- package/dist/{textBlueprints-BxSDf_IW.js → textBlueprints-Da_l2ncZ.js} +7 -7
- package/dist/{textMetrics-CiCNsEr-.js → textMetrics-DwaQOil0.js} +1 -1
- package/dist/{textMetrics-DRo8iTiW.cjs → textMetrics-qCUPlyrb.cjs} +1 -1
- package/dist/{threadFns-CNUPl-z6.cjs → threadFns-BqoKTKCh.cjs} +6 -6
- package/dist/{threadFns-Cdh4WOpx.js → threadFns-D2kDxalD.js} +6 -6
- package/dist/topology.cjs +8 -8
- package/dist/topology.js +8 -8
- package/dist/{topologyQueryFns-a2i0YhGF.cjs → topologyQueryFns-BLkQkExs.cjs} +1 -1
- package/dist/{topologyQueryFns-0BIOC7YH.js → topologyQueryFns-De27Nxmf.js} +1 -1
- package/package.json +6 -6
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Z as getKernel, c as createSolid, x as isClosedWire } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, c as createSolid, x as isClosedWire } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
4
|
-
import { h as translate } from "./shapeFns-
|
|
5
|
-
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-
|
|
6
|
-
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-
|
|
4
|
+
import { h as translate } from "./shapeFns-D-4StVDd.js";
|
|
5
|
+
import { _ as makeThreePointArc, a as makeNonPlanarFace, c as makeBSplineApproximation, d as makeCircle, f as makeEllipse, g as makeTangentArc, h as makeLine, i as makeNewFaceWithinFace, m as makeHelix, o as makePolygon, p as makeEllipseArc, r as makeFace, s as assembleWire, t as addHolesInFace, u as makeBezierCurve } from "./surfaceBuilders-DXMOQVyx.js";
|
|
6
|
+
import { a as makeOffset, c as makeTorus, i as makeEllipsoid, l as makeVertex, n as makeCone, o as makeSolid, r as makeCylinder, s as makeSphere, t as makeCompound, u as weldShellsAndFaces } from "./solidBuilders-Dcl1gZwH.js";
|
|
7
7
|
//#region src/topology/primitiveFns.ts
|
|
8
8
|
/**
|
|
9
9
|
* Create a box with the given dimensions.
|
package/dist/projection.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_cameraFns = require("./cameraFns-
|
|
2
|
+
const require_cameraFns = require("./cameraFns-B-T9D-ie.cjs");
|
|
3
3
|
exports.PROJECTION_PLANES = require_cameraFns.PROJECTION_PLANES;
|
|
4
4
|
exports.cameraFromPlane = require_cameraFns.cameraFromPlane;
|
|
5
5
|
exports.cameraLookAt = require_cameraFns.cameraLookAt;
|
package/dist/projection.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-
|
|
1
|
+
import { a as makeProjectedEdges, i as projectEdges, n as cameraLookAt, o as PROJECTION_PLANES, r as createCamera, s as isProjectionPlane, t as cameraFromPlane } from "./cameraFns-B62EdiYs.js";
|
|
2
2
|
export { PROJECTION_PLANES, cameraFromPlane, cameraLookAt, createCamera, isProjectionPlane, makeProjectedEdges, projectEdges };
|
package/dist/query.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_helpers = require("./helpers-
|
|
3
|
-
const require_cornerFinder = require("./cornerFinder-
|
|
2
|
+
const require_helpers = require("./helpers-DDN_oU6P.cjs");
|
|
3
|
+
const require_cornerFinder = require("./cornerFinder-oRnX2o08.cjs");
|
|
4
4
|
exports.cornerFinder = require_cornerFinder.cornerFinder;
|
|
5
5
|
exports.edgeFinder = require_helpers.edgeFinder;
|
|
6
6
|
exports.faceFinder = require_helpers.faceFinder;
|
package/dist/query.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-
|
|
2
|
-
import { t as cornerFinder } from "./cornerFinder-
|
|
1
|
+
import { n as edgeFinder, r as faceFinder, t as getSingleFace } from "./helpers-CRB4YhSI.js";
|
|
2
|
+
import { t as cornerFinder } from "./cornerFinder-C6GEoGxi.js";
|
|
3
3
|
export { cornerFinder, edgeFinder, faceFinder, getSingleFace };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BLkQkExs.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, t as castShape } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-
|
|
3
|
+
import { C as kernelCall, c as getFaces, l as getOrCreateCache, r as getCacheEntry, w as kernelCallRaw } from "./topologyQueryFns-De27Nxmf.js";
|
|
4
4
|
import { n as HASH_CODE_MAX, t as DEG2RAD } from "./constants-ITRzCnCp.js";
|
|
5
5
|
//#region src/topology/metadata/originTrackingFns.ts
|
|
6
6
|
/**
|
package/dist/shapeRef.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_shapeRefFns = require("./shapeRefFns-
|
|
2
|
+
const require_shapeRefFns = require("./shapeRefFns-CdgSGKLD.cjs");
|
|
3
3
|
exports.assignRoles = require_shapeRefFns.assignRoles;
|
|
4
4
|
exports.captureHint = require_shapeRefFns.captureHint;
|
|
5
5
|
exports.createRef = require_shapeRefFns.createRef;
|
package/dist/shapeRef.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-
|
|
1
|
+
import { a as updateRoles, i as resolveRef, n as captureHint, o as defaultScorer, r as createRef, t as assignRoles } from "./shapeRefFns-CtUw9bYy.js";
|
|
2
2
|
export { assignRoles, captureHint, createRef, defaultScorer, resolveRef, updateRoles };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const require_vec3 = require("./vec3-CFwOI0ZI.cjs");
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_measureFns = require("./measureFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BLkQkExs.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-BvtC44tv.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-B3GP-0FJ.cjs");
|
|
5
|
+
const require_measureFns = require("./measureFns-D2Y2OOuw.cjs");
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as wasmIndex } from "./vec3-Dpha8d5k.js";
|
|
2
|
-
import { c as getFaces } from "./topologyQueryFns-
|
|
3
|
-
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-
|
|
4
|
-
import { n as getHashCode } from "./shapeFns-
|
|
5
|
-
import { n as measureArea } from "./measureFns-
|
|
2
|
+
import { c as getFaces } from "./topologyQueryFns-De27Nxmf.js";
|
|
3
|
+
import { i as faceGeomType, l as normalAt, r as faceCenter } from "./faceFns-Cgpg9n36.js";
|
|
4
|
+
import { n as getHashCode } from "./shapeFns-D-4StVDd.js";
|
|
5
|
+
import { n as measureArea } from "./measureFns-BrrVzFq0.js";
|
|
6
6
|
//#region src/topology/shapeRef/scoring.ts
|
|
7
7
|
/**
|
|
8
8
|
* Default face scorer combining surface type, normal alignment, centroid proximity,
|
|
@@ -8108,13 +8108,13 @@ function mesh$1(bk, shape, options) {
|
|
|
8108
8108
|
return result;
|
|
8109
8109
|
}
|
|
8110
8110
|
function meshEdges$1(bk, shape, tolerance, angularTolerance) {
|
|
8111
|
-
if (angularTolerance > 0) warnOnce("mesh-edges-angular", "meshEdges angularTolerance is not supported; only linear deflection is used.");
|
|
8112
8111
|
const bkHandle = shape;
|
|
8113
8112
|
if (bkHandle.type !== "solid") return {
|
|
8114
8113
|
lines: new Float32Array(0),
|
|
8115
8114
|
edgeGroups: []
|
|
8116
8115
|
};
|
|
8117
|
-
const
|
|
8116
|
+
const angularTol = angularTolerance > 0 ? angularTolerance : void 0;
|
|
8117
|
+
const edgeLines = bk.meshEdgesAll(bkHandle.id, tolerance, angularTol);
|
|
8118
8118
|
const positions = edgeLines.positions;
|
|
8119
8119
|
const offsets = edgeLines.offsets;
|
|
8120
8120
|
const edgeCount = edgeLines.edgeCount;
|
|
@@ -9152,6 +9152,38 @@ function liftCurve2dToPlane(bk, curve, origin, planeZ, planeX) {
|
|
|
9152
9152
|
if (edgeIds.length === 1) return edgeHandle(require_vec3.wasmIndex(edgeIds, 0));
|
|
9153
9153
|
return wireHandle(bk.makeWire(edgeIds, false));
|
|
9154
9154
|
}
|
|
9155
|
+
if (basis.__bk2d === "ellipse") {
|
|
9156
|
+
const ell = basis;
|
|
9157
|
+
const center3d = lift(ell.cx, ell.cy);
|
|
9158
|
+
const cosA = Math.cos(ell.xDirAngle);
|
|
9159
|
+
const sinA = Math.sin(ell.xDirAngle);
|
|
9160
|
+
const refDir = [
|
|
9161
|
+
cosA * planeX[0] + sinA * y[0],
|
|
9162
|
+
cosA * planeX[1] + sinA * y[1],
|
|
9163
|
+
cosA * planeX[2] + sinA * y[2]
|
|
9164
|
+
];
|
|
9165
|
+
const bounds = require_occtWasmAdapter.curveBounds(c);
|
|
9166
|
+
const span = bounds.last - bounds.first;
|
|
9167
|
+
const eps = span * 1e-4;
|
|
9168
|
+
const [p0u, p0v] = require_occtWasmAdapter.evaluateCurve2d(c, bounds.first);
|
|
9169
|
+
const [p1u, p1v] = require_occtWasmAdapter.evaluateCurve2d(c, bounds.first + eps);
|
|
9170
|
+
const axis = (p0u - ell.cx) * (p1v - ell.cy) - (p0v - ell.cy) * (p1u - ell.cx) >= 0 ? planeZ : [
|
|
9171
|
+
-planeZ[0],
|
|
9172
|
+
-planeZ[1],
|
|
9173
|
+
-planeZ[2]
|
|
9174
|
+
];
|
|
9175
|
+
const angularSpan = c.__bk2d === "trimmed" ? Math.abs(c.tEnd - c.tStart) : 2 * Math.PI;
|
|
9176
|
+
const nSegments = angularSpan > Math.PI ? 4 : angularSpan > Math.PI / 2 ? 2 : 1;
|
|
9177
|
+
const segmentSpan = span / nSegments;
|
|
9178
|
+
const edgeIds = [];
|
|
9179
|
+
for (let seg = 0; seg < nSegments; seg++) {
|
|
9180
|
+
const [su, sv] = require_occtWasmAdapter.evaluateCurve2d(c, bounds.first + seg * segmentSpan);
|
|
9181
|
+
const [eu, ev] = require_occtWasmAdapter.evaluateCurve2d(c, bounds.first + (seg + 1) * segmentSpan);
|
|
9182
|
+
edgeIds.push(bk.makeEllipseArc3d(...lift(su, sv), ...lift(eu, ev), ...center3d, ...axis, ...refDir, ell.majorRadius, ell.minorRadius));
|
|
9183
|
+
}
|
|
9184
|
+
if (edgeIds.length === 1) return edgeHandle(require_vec3.wasmIndex(edgeIds, 0));
|
|
9185
|
+
return wireHandle(bk.makeWire(edgeIds, false));
|
|
9186
|
+
}
|
|
9155
9187
|
}
|
|
9156
9188
|
if (c.__bk2d === "bezier" || c.__bk2d === "bspline") {
|
|
9157
9189
|
const points3d = c.poles.map(([u, v]) => lift(u, v));
|
|
@@ -8104,13 +8104,13 @@ function mesh$1(bk, shape, options) {
|
|
|
8104
8104
|
return result;
|
|
8105
8105
|
}
|
|
8106
8106
|
function meshEdges$1(bk, shape, tolerance, angularTolerance) {
|
|
8107
|
-
if (angularTolerance > 0) warnOnce("mesh-edges-angular", "meshEdges angularTolerance is not supported; only linear deflection is used.");
|
|
8108
8107
|
const bkHandle = shape;
|
|
8109
8108
|
if (bkHandle.type !== "solid") return {
|
|
8110
8109
|
lines: new Float32Array(0),
|
|
8111
8110
|
edgeGroups: []
|
|
8112
8111
|
};
|
|
8113
|
-
const
|
|
8112
|
+
const angularTol = angularTolerance > 0 ? angularTolerance : void 0;
|
|
8113
|
+
const edgeLines = bk.meshEdgesAll(bkHandle.id, tolerance, angularTol);
|
|
8114
8114
|
const positions = edgeLines.positions;
|
|
8115
8115
|
const offsets = edgeLines.offsets;
|
|
8116
8116
|
const edgeCount = edgeLines.edgeCount;
|
|
@@ -9146,6 +9146,38 @@ function liftCurve2dToPlane(bk, curve, origin, planeZ, planeX) {
|
|
|
9146
9146
|
if (edgeIds.length === 1) return edgeHandle(wasmIndex(edgeIds, 0));
|
|
9147
9147
|
return wireHandle(bk.makeWire(edgeIds, false));
|
|
9148
9148
|
}
|
|
9149
|
+
if (basis.__bk2d === "ellipse") {
|
|
9150
|
+
const ell = basis;
|
|
9151
|
+
const center3d = lift(ell.cx, ell.cy);
|
|
9152
|
+
const cosA = Math.cos(ell.xDirAngle);
|
|
9153
|
+
const sinA = Math.sin(ell.xDirAngle);
|
|
9154
|
+
const refDir = [
|
|
9155
|
+
cosA * planeX[0] + sinA * y[0],
|
|
9156
|
+
cosA * planeX[1] + sinA * y[1],
|
|
9157
|
+
cosA * planeX[2] + sinA * y[2]
|
|
9158
|
+
];
|
|
9159
|
+
const bounds = curveBounds(c);
|
|
9160
|
+
const span = bounds.last - bounds.first;
|
|
9161
|
+
const eps = span * 1e-4;
|
|
9162
|
+
const [p0u, p0v] = evaluateCurve2d$2(c, bounds.first);
|
|
9163
|
+
const [p1u, p1v] = evaluateCurve2d$2(c, bounds.first + eps);
|
|
9164
|
+
const axis = (p0u - ell.cx) * (p1v - ell.cy) - (p0v - ell.cy) * (p1u - ell.cx) >= 0 ? planeZ : [
|
|
9165
|
+
-planeZ[0],
|
|
9166
|
+
-planeZ[1],
|
|
9167
|
+
-planeZ[2]
|
|
9168
|
+
];
|
|
9169
|
+
const angularSpan = c.__bk2d === "trimmed" ? Math.abs(c.tEnd - c.tStart) : 2 * Math.PI;
|
|
9170
|
+
const nSegments = angularSpan > Math.PI ? 4 : angularSpan > Math.PI / 2 ? 2 : 1;
|
|
9171
|
+
const segmentSpan = span / nSegments;
|
|
9172
|
+
const edgeIds = [];
|
|
9173
|
+
for (let seg = 0; seg < nSegments; seg++) {
|
|
9174
|
+
const [su, sv] = evaluateCurve2d$2(c, bounds.first + seg * segmentSpan);
|
|
9175
|
+
const [eu, ev] = evaluateCurve2d$2(c, bounds.first + (seg + 1) * segmentSpan);
|
|
9176
|
+
edgeIds.push(bk.makeEllipseArc3d(...lift(su, sv), ...lift(eu, ev), ...center3d, ...axis, ...refDir, ell.majorRadius, ell.minorRadius));
|
|
9177
|
+
}
|
|
9178
|
+
if (edgeIds.length === 1) return edgeHandle(wasmIndex(edgeIds, 0));
|
|
9179
|
+
return wireHandle(bk.makeWire(edgeIds, false));
|
|
9180
|
+
}
|
|
9149
9181
|
}
|
|
9150
9182
|
if (c.__bk2d === "bezier" || c.__bk2d === "bspline") {
|
|
9151
9183
|
const points3d = c.poles.map(([u, v]) => lift(u, v));
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
4
|
-
const require_drawFns = require("./drawFns-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-A1zJwOLD.cjs");
|
|
3
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CNV3BF1m.cjs");
|
|
4
|
+
const require_drawFns = require("./drawFns-CBSGIxrq.cjs");
|
|
5
5
|
//#region src/sketching.ts
|
|
6
6
|
/**
|
|
7
7
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
package/dist/sketching.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
2
|
-
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-
|
|
3
|
-
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-
|
|
1
|
+
import { n as BaseSketcher2d, t as BlueprintSketcher } from "./blueprintSketcher-BH026Vs6.js";
|
|
2
|
+
import { A as sketchEllipse, C as DrawingPen, D as makeBaseBox, E as deserializeDrawing, F as sketchRectangle, I as sketchRoundedRectangle, L as FaceSketcher, M as sketchHelix, N as sketchParametricFunction, O as polysideInnerRadius, P as sketchPolysides, R as Sketcher, S as drawText, T as Drawing, _ as drawPolysides, a as drawingIntersect, b as drawSingleCircle, c as rotateDrawing, d as drawFaceOutline, f as drawProjection, g as drawPointsInterpolation, h as drawParametricFunction, i as drawingFuse, j as sketchFaceOffset, k as sketchCircle, l as scaleDrawing, m as drawEllipse, n as drawingCut, o as drawingToSketchOnPlane, p as drawCircle, r as drawingFillet, s as mirrorDrawing, t as drawingChamfer, u as translateDrawing, v as drawRectangle, w as draw, x as drawSingleEllipse, y as drawRoundedRectangle } from "./drawFns-BoJx2cw1.js";
|
|
3
|
+
import { a as Sketch, c as compoundSketchLoft, d as sketchFace, f as sketchLoft, h as sketchWires, i as Sketches, l as compoundSketchRevolve, m as sketchSweep, o as compoundSketchExtrude, p as sketchRevolve, s as compoundSketchFace, u as sketchExtrude, v as CompoundSketch } from "./textBlueprints-Da_l2ncZ.js";
|
|
4
4
|
//#region src/sketching.ts
|
|
5
5
|
/**
|
|
6
6
|
* brepjs/sketching — Sketcher, Drawing, and sketch-to-shape operations.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, _ as isSolid, c as createSolid, g as isShell, h as isShape3D, i as createCompound, l as createVertex, t as castShape } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, d as validationError, i as kernelError, l as typeCastError, t as BrepErrorCode, v as andThen, w as isErr } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-De27Nxmf.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-DSjjtrjg.js";
|
|
7
|
-
import { _ as cast, v as downcast } from "./faceFns-
|
|
8
|
-
import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-
|
|
7
|
+
import { _ as cast, v as downcast } from "./faceFns-Cgpg9n36.js";
|
|
8
|
+
import { _ as propagateAllMetadata, g as collectInputFaceHashes, v as propagateMetadataByHash } from "./shapeFns-D-4StVDd.js";
|
|
9
9
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
10
|
-
import { r as makeFace } from "./surfaceBuilders-
|
|
10
|
+
import { r as makeFace } from "./surfaceBuilders-DXMOQVyx.js";
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BLkQkExs.cjs");
|
|
4
4
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
5
5
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
6
6
|
const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-BvtC44tv.cjs");
|
|
8
|
+
const require_shapeFns = require("./shapeFns-B3GP-0FJ.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-D_htXKwS.cjs");
|
|
11
11
|
//#region src/topology/booleanFns.ts
|
|
12
12
|
/**
|
|
13
13
|
* Boolean and compound operations — functional replacements for _3DShape boolean methods.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-
|
|
1
|
+
import { Z as getKernel, a as createEdge, o as createFace, p as isFace, u as createWire, w as isPlanarFace } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, b as err, d as validationError, i as kernelError, v as andThen } from "./errors-DNWJsfVU.js";
|
|
3
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { _ as cast, u as outerWire } from "./faceFns-Cgpg9n36.js";
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_faceFns = require("./faceFns-BvtC44tv.cjs");
|
|
4
4
|
//#region src/utils/range.ts
|
|
5
5
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
6
6
|
function range(len) {
|
package/dist/text.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
3
|
-
const require_textMetrics = require("./textMetrics-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-A1zJwOLD.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-qCUPlyrb.cjs");
|
|
4
4
|
exports.fontMetrics = require_textMetrics.fontMetrics;
|
|
5
5
|
exports.getFont = require_textBlueprints.getFont;
|
|
6
6
|
exports.loadFont = require_textBlueprints.loadFont;
|
package/dist/text.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-
|
|
2
|
-
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-
|
|
1
|
+
import { n as getFont, r as loadFont, t as textBlueprints } from "./textBlueprints-Da_l2ncZ.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-DwaQOil0.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -29,18 +29,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
29
29
|
enumerable: true
|
|
30
30
|
}) : target, mod));
|
|
31
31
|
//#endregion
|
|
32
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
32
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
33
33
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
34
34
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
35
35
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
36
36
|
const require_planeOps = require("./planeOps-BA4HfgQu.cjs");
|
|
37
|
-
const require_faceFns = require("./faceFns-
|
|
38
|
-
const require_curveFns = require("./curveFns-
|
|
37
|
+
const require_faceFns = require("./faceFns-BvtC44tv.cjs");
|
|
38
|
+
const require_curveFns = require("./curveFns-BIlzT4bO.cjs");
|
|
39
39
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
40
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
41
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
42
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
43
|
-
const require_loftFns = require("./loftFns-
|
|
40
|
+
const require_surfaceBuilders = require("./surfaceBuilders-D_htXKwS.cjs");
|
|
41
|
+
const require_solidBuilders = require("./solidBuilders-RRBbe3dp.cjs");
|
|
42
|
+
const require_blueprintSketcher = require("./blueprintSketcher-CNV3BF1m.cjs");
|
|
43
|
+
const require_loftFns = require("./loftFns-CFyOO359.cjs");
|
|
44
44
|
let opentype_js = require("opentype.js");
|
|
45
45
|
opentype_js = __toESM(opentype_js, 1);
|
|
46
46
|
//#region src/sketching/compoundSketch.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { o as createFace, u as createWire } from "./shapeTypes-
|
|
1
|
+
import { o as createFace, u as createWire } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, R as unwrap, b as err, h as bug, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
4
4
|
import { d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
|
|
5
5
|
import { n as createPlane } from "./planeOps-DSjjtrjg.js";
|
|
6
|
-
import { v as downcast } from "./faceFns-
|
|
7
|
-
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-
|
|
6
|
+
import { v as downcast } from "./faceFns-Cgpg9n36.js";
|
|
7
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-CaEoZJFJ.js";
|
|
8
8
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
9
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
10
|
-
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-
|
|
11
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
12
|
-
import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-
|
|
9
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-DXMOQVyx.js";
|
|
10
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-Dcl1gZwH.js";
|
|
11
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BH026Vs6.js";
|
|
12
|
+
import { a as revolve, d as twistExtrude, o as complexExtrude, r as extrude, t as loft, u as sweep } from "./loftFns-D5rQxNOI.js";
|
|
13
13
|
import opentype from "opentype.js";
|
|
14
14
|
//#region src/sketching/compoundSketch.ts
|
|
15
15
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as ok, b as err, d as validationError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
2
|
-
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-
|
|
2
|
+
import { g as wrapSketchData, i as Sketches, n as getFont, t as textBlueprints, v as CompoundSketch } from "./textBlueprints-Da_l2ncZ.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_shapeFns = require("./shapeFns-
|
|
6
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
7
|
-
const require_loftFns = require("./loftFns-
|
|
8
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-BvtC44tv.cjs");
|
|
5
|
+
const require_shapeFns = require("./shapeFns-B3GP-0FJ.cjs");
|
|
6
|
+
const require_solidBuilders = require("./solidBuilders-RRBbe3dp.cjs");
|
|
7
|
+
const require_loftFns = require("./loftFns-CFyOO359.cjs");
|
|
8
|
+
const require_primitiveFns = require("./primitiveFns-DFwdXRvP.cjs");
|
|
9
9
|
//#region src/utils/uuid.ts
|
|
10
10
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
11
11
|
function uuidv() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { B as createKernelHandle, R as DisposalScope, Y as _usingCtx, Z as getKernel, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { B as createKernelHandle, R as DisposalScope, Y as _usingCtx, Z as getKernel, t as castShape } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, T as isOk, b as err, d as validationError, n as computationError, r as ioError, t as BrepErrorCode } from "./errors-DNWJsfVU.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { y as fromBREP } from "./faceFns-
|
|
5
|
-
import { s as toBREP } from "./shapeFns-
|
|
6
|
-
import { h as fuseAll } from "./solidBuilders-
|
|
7
|
-
import { t as loft } from "./loftFns-
|
|
8
|
-
import { E as wire, h as line } from "./primitiveFns-
|
|
4
|
+
import { y as fromBREP } from "./faceFns-Cgpg9n36.js";
|
|
5
|
+
import { s as toBREP } from "./shapeFns-D-4StVDd.js";
|
|
6
|
+
import { h as fuseAll } from "./solidBuilders-Dcl1gZwH.js";
|
|
7
|
+
import { t as loft } from "./loftFns-D5rQxNOI.js";
|
|
8
|
+
import { E as wire, h as line } from "./primitiveFns-DmF1hhYr.js";
|
|
9
9
|
//#region src/utils/uuid.ts
|
|
10
10
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
11
11
|
function uuidv() {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_shapeFns = require("./shapeFns-
|
|
5
|
-
const require_curveFns = require("./curveFns-
|
|
6
|
-
const require_meshFns = require("./meshFns-
|
|
7
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
8
|
-
const require_healingFns = require("./healingFns-
|
|
9
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-BLkQkExs.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-BvtC44tv.cjs");
|
|
4
|
+
const require_shapeFns = require("./shapeFns-B3GP-0FJ.cjs");
|
|
5
|
+
const require_curveFns = require("./curveFns-BIlzT4bO.cjs");
|
|
6
|
+
const require_meshFns = require("./meshFns-BKBGgLB4.cjs");
|
|
7
|
+
const require_solidBuilders = require("./solidBuilders-RRBbe3dp.cjs");
|
|
8
|
+
const require_healingFns = require("./healingFns-DY8866Fl.cjs");
|
|
9
|
+
const require_primitiveFns = require("./primitiveFns-DFwdXRvP.cjs");
|
|
10
10
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
11
11
|
exports.adjacentFaces = require_healingFns.adjacentFaces;
|
|
12
12
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { S as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-
|
|
2
|
-
import { S as shapeType, _ as cast, a as faceOrientation, b as isCompSolid, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, v as downcast, x as iterTopo, y as fromBREP } from "./faceFns-
|
|
3
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
4
|
-
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-
|
|
5
|
-
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-
|
|
6
|
-
import { h as fuseAll, p as cutAll } from "./solidBuilders-
|
|
7
|
-
import { A as edgesOfFace, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, F as chamferDistAngle, I as toBufferGeometryData, L as toGroupedBufferGeometryData, M as sharedEdges, N as verticesOfEdge, O as getNurbsSurfaceData, P as wiresOfFace, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as facesOfEdge, k as adjacentFaces, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution, z as toLineGeometryData } from "./healingFns-
|
|
8
|
-
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-
|
|
1
|
+
import { S as vertexPosition, _ as iterFaces, b as iterVertices, c as getFaces, f as getVertices, g as iterEdges, m as invalidateShapeCache, n as getBounds, p as getWires, s as getEdges, x as iterWires } from "./topologyQueryFns-De27Nxmf.js";
|
|
2
|
+
import { S as shapeType, _ as cast, a as faceOrientation, b as isCompSolid, c as innerWires, d as pointOnSurface, f as projectPointOnFace, g as asTopo, h as uvCoordinates, i as faceGeomType, l as normalAt, m as uvBounds, n as faceAxis, o as flipFaceOrientation, r as faceCenter, s as getSurfaceType, t as classifyPointOnFace, u as outerWire, v as downcast, x as iterTopo, y as fromBREP } from "./faceFns-Cgpg9n36.js";
|
|
3
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-D-4StVDd.js";
|
|
4
|
+
import { a as curveIsPeriodic, c as curvePointAt, d as flipOrientation, f as getCurveType, h as offsetWire2D, i as curveIsClosed, l as curveStartPoint, m as interpolateCurve, n as curveAxis, o as curveLength, p as getOrientation, r as curveEndPoint, s as curvePeriod, t as approximateCurve, u as curveTangentAt } from "./curveFns-CaEoZJFJ.js";
|
|
5
|
+
import { c as createMeshCache, n as exportSTEP, r as exportSTL, s as clearMeshCache, t as exportIGES } from "./meshFns-Bkcg1u5D.js";
|
|
6
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-Dcl1gZwH.js";
|
|
7
|
+
import { A as edgesOfFace, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, F as chamferDistAngle, I as toBufferGeometryData, L as toGroupedBufferGeometryData, M as sharedEdges, N as verticesOfEdge, O as getNurbsSurfaceData, P as wiresOfFace, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as facesOfEdge, k as adjacentFaces, l as solidFromShell, n as fixSelfIntersection, o as healSolid, r as fixShape, s as healWire, t as autoHeal, v as chamferWithEvolution, w as checkBoolean, x as fuseWithEvolution, y as cutWithEvolution, z as toLineGeometryData } from "./healingFns-BiChNtRz.js";
|
|
8
|
+
import { C as threePointArc, D as wireLoop, E as wire, S as tangentArc, T as vertex, _ as polygon, a as circle, b as sphere, c as cylinder, d as ellipsoid, f as face, g as offsetFace, h as line, i as bsplineApprox, l as ellipse, m as helix, n as bezier, o as compound, p as filledFace, r as box, s as cone, t as addHoles, u as ellipseArc, v as sewShells, w as torus, x as subFace, y as solid } from "./primitiveFns-DmF1hhYr.js";
|
|
9
9
|
export { addHoles, adjacentFaces, approximateCurve, asTopo, autoHeal, bezier, box, bsplineApprox, cast, chamferDistAngle as chamferDistAngleShape, chamferWithEvolution, checkBoolean, circle, classifyPointOnFace, clearMeshCache, compound, cone, createMeshCache, curveAxis, curveEndPoint, curveIsClosed, curveIsPeriodic, curveLength, curvePeriod, curvePointAt, curveStartPoint, curveTangentAt, cutAll, cutAllBisect, cutWithEvolution, cylinder, fromBREP as deserializeShape, downcast, edgesOfFace, ellipse, ellipseArc, ellipsoid, exportIGES, exportSTEP, exportSTL, face, faceAxis, faceCenter, faceGeomType, faceOrientation, facesOfEdge, filledFace, filletWithEvolution, fixSelfIntersection, fixShape, flipFaceOrientation, flipOrientation, fuseAll, fuseAllBisect, fuseWithEvolution, getBounds, getCurveType, getEdges, getFaces, getHashCode, getNurbsCurveData, getNurbsSurfaceData, getOrientation, getSurfaceType, getVertices, getWires, healFace, healSolid, healWire, helix, innerWires, interpolateCurve, intersectWithEvolution, invalidateShapeCache, isCompSolid, isEqualShape, isSameShape, iterEdges, iterFaces, iterTopo, iterVertices, iterWires, line, normalAt, offsetFace, offsetWire2D, outerWire, pointOnSurface, polygon, positionOnCurve, projectPointOnFace, sewShells, shapeType, sharedEdges, shellWithEvolution, solid, solidFromShell, sphere, subFace, tangentArc, threePointArc, toBufferGeometryData, toGroupedBufferGeometryData, toLineGeometryData, torus, uvBounds, uvCoordinates, variableFillet, vertex, vertexPosition, verticesOfEdge, wire, wireLoop, wiresOfFace };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-DQfoZt_L.cjs");
|
|
2
2
|
const require_errors = require("./errors-CXJtc4I7.cjs");
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-
|
|
1
|
+
import { N as getOrQueryType, R as DisposalScope, Y as _usingCtx, Z as getKernel, r as castShapeWithKnownType, t as castShape } from "./shapeTypes-z5bfGPVI.js";
|
|
2
2
|
import { A as ok, b as err, f as getSuggestionForCode, p as translateKernelError } from "./errors-DNWJsfVU.js";
|
|
3
3
|
//#region src/core/kernelCall.ts
|
|
4
4
|
function buildError(kind, code, message, cause, suggestion) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "18.100.
|
|
3
|
+
"version": "18.100.2",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -261,21 +261,21 @@
|
|
|
261
261
|
"@types/react": "19.2.17",
|
|
262
262
|
"@vitest/coverage-v8": "4.1.8",
|
|
263
263
|
"brepjs-opencascade": "*",
|
|
264
|
-
"brepkit-wasm": "2.
|
|
265
|
-
"eslint": "10.
|
|
264
|
+
"brepkit-wasm": "2.115.8",
|
|
265
|
+
"eslint": "10.5.0",
|
|
266
266
|
"fast-check": "4.8.0",
|
|
267
267
|
"husky": "9.1.7",
|
|
268
268
|
"knip": "6.16.1",
|
|
269
269
|
"lint-staged": "17.0.7",
|
|
270
270
|
"lz-string": "1.5.0",
|
|
271
271
|
"occt-wasm": "3.4.0",
|
|
272
|
-
"prettier": "3.8.
|
|
272
|
+
"prettier": "3.8.4",
|
|
273
273
|
"puppeteer": "25.1.0",
|
|
274
274
|
"size-limit": "12.1.0",
|
|
275
275
|
"sucrase": "3.35.1",
|
|
276
276
|
"typedoc": "0.28.19",
|
|
277
277
|
"typescript": "6.0.3",
|
|
278
|
-
"typescript-eslint": "8.
|
|
278
|
+
"typescript-eslint": "8.61.0",
|
|
279
279
|
"vite": "8.0.16",
|
|
280
280
|
"vite-plugin-dts": "5.0.2",
|
|
281
281
|
"vitest": "4.1.8"
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
}
|
|
302
302
|
},
|
|
303
303
|
"dependencies": {
|
|
304
|
-
"flatbush": "4.6.
|
|
304
|
+
"flatbush": "4.6.2",
|
|
305
305
|
"opentype.js": "1.3.4"
|
|
306
306
|
},
|
|
307
307
|
"overrides": {
|