brepjs 18.124.1 → 18.124.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/dist/2d.cjs +6 -6
- package/dist/2d.js +6 -6
- package/dist/{adjacencyFns-Dxx7ftVV.cjs → adjacencyFns-CpKlADYt.cjs} +2 -2
- package/dist/{adjacencyFns-Syimhi5A.js → adjacencyFns-DECdcer5.js} +2 -2
- package/dist/{blueprint-DvJhiSQF.js → blueprint-CaY00-X2.js} +5 -5
- package/dist/{blueprint-BxwG1Gza.cjs → blueprint-CpJLcUJV.cjs} +5 -5
- package/dist/{blueprintFns-CURJa6gK.cjs → blueprintFns-B5nFaJI0.cjs} +2 -2
- package/dist/{blueprintFns-CiOJiPIw.js → blueprintFns-vgwEIgI0.js} +2 -2
- package/dist/{blueprintSketcher-COLNJfbg.cjs → blueprintSketcher-4e0yYtCY.cjs} +3 -3
- package/dist/{blueprintSketcher-CfgOzgxc.js → blueprintSketcher-BjBjj2cK.js} +3 -3
- package/dist/{boolean2D-BQqC_nps.cjs → boolean2D-7heWA1co.cjs} +4 -4
- package/dist/{boolean2D-Cdh2qVf6.js → boolean2D-Bk-VrRyQ.js} +4 -4
- package/dist/brepjs.cjs +27 -27
- package/dist/brepjs.js +27 -27
- package/dist/{cameraFns-CFVDwvGj.cjs → cameraFns-CGwrxgqB.cjs} +3 -3
- package/dist/{cameraFns-USpwGr6_.js → cameraFns-DKEilV2v.js} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-CIiXl5Kq.js → cornerFinder-C4s6pVZ-.js} +1 -1
- package/dist/{cornerFinder-DyWf9i1I.cjs → cornerFinder-zEgIFMnk.cjs} +1 -1
- package/dist/{curveFns-CSY23hP9.cjs → curveFns-BZZYHVow.cjs} +1 -1
- package/dist/{curveFns-F4E56Inv.js → curveFns-RczIU30U.js} +1 -1
- package/dist/{drawFns-r8PNRpEn.cjs → drawFns-BcXzWFfn.cjs} +12 -12
- package/dist/{drawFns-BiTlyKMy.js → drawFns-BjT3RaeQ.js} +12 -12
- package/dist/{faceFns-D9LdZArB.cjs → faceFns-C4xNv2zn.cjs} +2 -2
- package/dist/{faceFns-Dy4lA0f_.js → faceFns-fvp_zfuI.js} +2 -2
- package/dist/{healingFns-B6tDq40C.js → healingFns-AE5182Ds.js} +4 -4
- package/dist/{healingFns-jxoJQApv.cjs → healingFns-SxSiVPQa.cjs} +4 -4
- package/dist/{helpers-CeX5zwCS.cjs → helpers-CHYzwQMk.cjs} +6 -6
- package/dist/{helpers-ClZ_C5nP.js → helpers-CyLQ07aD.js} +6 -6
- package/dist/{importFns-CR3k4ct3.cjs → importFns-90S7P_7P.cjs} +2 -2
- package/dist/{importFns-DpbQ02xU.js → importFns-DdXOAX6k.js} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/{loftFns-Bd6Qs7uB.cjs → loftFns-B3mbh5RA.cjs} +1 -1
- package/dist/{loftFns-sILTLlrA.js → loftFns-CyY4qfvC.js} +1 -1
- package/dist/{measureFns-B9CjOY97.js → measureFns-B1uLQugf.js} +3 -3
- package/dist/{measureFns-D3wAgSGr.cjs → measureFns-Cx2XJVVC.cjs} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-C5Mni6NE.cjs → meshFns-2ZxW-X9I.cjs} +3 -3
- package/dist/{meshFns-BWgXP2-7.js → meshFns-DrO3d03M.js} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-BVmoGfxj.cjs → originTrackingFns-D3rUK08B.cjs} +2 -2
- package/dist/{originTrackingFns-CgXHRXve.js → originTrackingFns-DIAwMSih.js} +2 -2
- package/dist/{primitiveFns-CSOkiKA7.js → primitiveFns-CDPqVTcc.js} +4 -4
- package/dist/{primitiveFns-BI3xR_wX.cjs → primitiveFns-c7wqS-K2.cjs} +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/{refResolveFns-D_RnidoD.cjs → refResolveFns-Cm8ZHPl5.cjs} +6 -6
- package/dist/{refResolveFns-DxjdVw1p.js → refResolveFns-o3-Gdnjn.js} +6 -6
- package/dist/{shapeFns-XPAVA2ZZ.cjs → shapeFns-CJ6mph9b.cjs} +2 -2
- package/dist/{shapeFns-lw5Mzj__.js → shapeFns-DEpbxB9Z.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-7_c5mEYb.js → shapeTypes-BHRboc_x.js} +210 -3
- package/dist/{shapeTypes-Dm6f4xsN.cjs → shapeTypes-D5Y41q7x.cjs} +210 -3
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-D0dqmSE6.cjs → solidBuilders-CsUkRC69.cjs} +5 -5
- package/dist/{solidBuilders-Cyfx4vIB.js → solidBuilders-DQQ0re9T.js} +5 -5
- package/dist/{surfaceBuilders-DEMrBvXW.cjs → surfaceBuilders-BXNZydNl.cjs} +3 -3
- package/dist/{surfaceBuilders-BCDBd5Ii.js → surfaceBuilders-C8k0K7DR.js} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-DnCz3w4s.js → textBlueprints-BAyLXffK.js} +7 -7
- package/dist/{textBlueprints-B-7POKfB.cjs → textBlueprints-t8MdWfki.cjs} +7 -7
- package/dist/{textMetrics-m_H1URz5.js → textMetrics-CefI-bMN.js} +1 -1
- package/dist/{textMetrics-4a8KfRbQ.cjs → textMetrics-DUEI9s5M.cjs} +1 -1
- package/dist/{threadFns-CJDOHziO.js → threadFns-Bau5Sqad.js} +7 -7
- package/dist/{threadFns-ZrJsQtPC.cjs → threadFns-OVYAleOH.cjs} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-Bihcwoz0.js → topologyQueryFns-QvPyCF-7.js} +1 -1
- package/dist/{topologyQueryFns-RjAzu76K.cjs → topologyQueryFns-gah07J7-.cjs} +1 -1
- package/dist/{validityTypes-C1GMwI9t.js → validityTypes-DokbYKzd.js} +1 -1
- package/dist/{validityTypes-DeiK-KFO.cjs → validityTypes-Dx-04qO0.cjs} +1 -1
- package/package.json +3 -3
|
@@ -6689,8 +6689,6 @@ function fuseAll(bk, shapes, options) {
|
|
|
6689
6689
|
}
|
|
6690
6690
|
function cutAll(bk, shape, tools, options) {
|
|
6691
6691
|
if (tools.length === 0) return shape;
|
|
6692
|
-
if (tools.length === 1) return cut(bk, shape, tools[0], options);
|
|
6693
|
-
const baseId = unwrapSolidOrThrow(shape, "cutAll");
|
|
6694
6692
|
const toolIds = [];
|
|
6695
6693
|
for (const tool of tools) {
|
|
6696
6694
|
const h = tool;
|
|
@@ -6698,7 +6696,24 @@ function cutAll(bk, shape, tools, options) {
|
|
|
6698
6696
|
else toolIds.push(unwrapSolidOrThrow(tool, "cutAll"));
|
|
6699
6697
|
}
|
|
6700
6698
|
if (toolIds.length === 0) return shape;
|
|
6701
|
-
|
|
6699
|
+
const baseHandle = shape;
|
|
6700
|
+
if (isBrepkitHandle(shape) && baseHandle.type === "compound") {
|
|
6701
|
+
const survivors = [];
|
|
6702
|
+
for (const childId of toArray(bk.getCompoundSolids(baseHandle.id))) try {
|
|
6703
|
+
survivors.push(bk.compoundCut(childId, toolIds));
|
|
6704
|
+
} catch (e) {
|
|
6705
|
+
if (!isEmptyBooleanError(e)) throw e;
|
|
6706
|
+
}
|
|
6707
|
+
return compoundHandle(bk.makeCompound(survivors));
|
|
6708
|
+
}
|
|
6709
|
+
if (tools.length === 1) return cut(bk, shape, tools[0], options);
|
|
6710
|
+
const baseId = unwrapSolidOrThrow(shape, "cutAll");
|
|
6711
|
+
try {
|
|
6712
|
+
return solidHandle(bk.compoundCut(baseId, new Uint32Array(toolIds)));
|
|
6713
|
+
} catch (e) {
|
|
6714
|
+
if (isEmptyBooleanError(e)) return emptyCompound(bk);
|
|
6715
|
+
throw e;
|
|
6716
|
+
}
|
|
6702
6717
|
}
|
|
6703
6718
|
function split(bk, shape, tools) {
|
|
6704
6719
|
if (tools.length === 0) throw new Error("brepkit: split requires at least one tool");
|
|
@@ -10474,7 +10489,181 @@ function affineMatrix(linear, translation) {
|
|
|
10474
10489
|
m[14] = translation[2];
|
|
10475
10490
|
return m;
|
|
10476
10491
|
}
|
|
10492
|
+
/**
|
|
10493
|
+
* Profile shapes — edges, wires and faces — have no Manifold counterpart, so
|
|
10494
|
+
* they carry a placeholder value and live purely as op-graph nodes holding
|
|
10495
|
+
* their points. Calling Manifold's solid transform on one throws
|
|
10496
|
+
* `solid.transform is not a function`.
|
|
10497
|
+
*
|
|
10498
|
+
* Transform them by baking the matrix into the recorded points and emitting a
|
|
10499
|
+
* node of the same kind. `ringOrPts` reads points off the node and does not
|
|
10500
|
+
* walk inputs, so a transform-shaped node would read as an empty profile;
|
|
10501
|
+
* replay rebuilds profile nodes from those same points, so a baked transform
|
|
10502
|
+
* applies exactly once.
|
|
10503
|
+
*/
|
|
10504
|
+
var PROFILE_POINT_KEYS = [
|
|
10505
|
+
"pts",
|
|
10506
|
+
"ring",
|
|
10507
|
+
"outline"
|
|
10508
|
+
];
|
|
10509
|
+
function isVec3(v) {
|
|
10510
|
+
return Array.isArray(v) && v.length === 3 && v.every((n) => typeof n === "number");
|
|
10511
|
+
}
|
|
10512
|
+
function applyMat4(m, v) {
|
|
10513
|
+
const g = (i) => m[i] ?? 0;
|
|
10514
|
+
return [
|
|
10515
|
+
g(0) * v[0] + g(4) * v[1] + g(8) * v[2] + g(12),
|
|
10516
|
+
g(1) * v[0] + g(5) * v[1] + g(9) * v[2] + g(13),
|
|
10517
|
+
g(2) * v[0] + g(6) * v[1] + g(10) * v[2] + g(14)
|
|
10518
|
+
];
|
|
10519
|
+
}
|
|
10520
|
+
function numOf(v, fallback = 0) {
|
|
10521
|
+
return typeof v === "number" ? v : fallback;
|
|
10522
|
+
}
|
|
10523
|
+
function transformDir(matrix, v) {
|
|
10524
|
+
const o = applyMat4(matrix, [
|
|
10525
|
+
0,
|
|
10526
|
+
0,
|
|
10527
|
+
0
|
|
10528
|
+
]);
|
|
10529
|
+
const p = applyMat4(matrix, v);
|
|
10530
|
+
return [
|
|
10531
|
+
p[0] - o[0],
|
|
10532
|
+
p[1] - o[1],
|
|
10533
|
+
p[2] - o[2]
|
|
10534
|
+
];
|
|
10535
|
+
}
|
|
10536
|
+
function unit3(v) {
|
|
10537
|
+
const n = Math.hypot(v[0], v[1], v[2]);
|
|
10538
|
+
return n < 1e-12 ? v : [
|
|
10539
|
+
v[0] / n,
|
|
10540
|
+
v[1] / n,
|
|
10541
|
+
v[2] / n
|
|
10542
|
+
];
|
|
10543
|
+
}
|
|
10544
|
+
function similarityScale(m) {
|
|
10545
|
+
const g = (i) => m[i] ?? 0;
|
|
10546
|
+
const cx = [
|
|
10547
|
+
g(0),
|
|
10548
|
+
g(1),
|
|
10549
|
+
g(2)
|
|
10550
|
+
];
|
|
10551
|
+
const cy = [
|
|
10552
|
+
g(4),
|
|
10553
|
+
g(5),
|
|
10554
|
+
g(6)
|
|
10555
|
+
];
|
|
10556
|
+
const cz = [
|
|
10557
|
+
g(8),
|
|
10558
|
+
g(9),
|
|
10559
|
+
g(10)
|
|
10560
|
+
];
|
|
10561
|
+
const len = (v) => Math.hypot(v[0], v[1], v[2]);
|
|
10562
|
+
const dot = (a, b) => a[0] * b[0] + a[1] * b[1] + a[2] * b[2];
|
|
10563
|
+
const nx = len(cx);
|
|
10564
|
+
const ny = len(cy);
|
|
10565
|
+
const nz = len(cz);
|
|
10566
|
+
if (nx < 1e-12 || ny < 1e-12 || nz < 1e-12) return void 0;
|
|
10567
|
+
const tol = 1e-9 * nx;
|
|
10568
|
+
if (Math.abs(nx - ny) > tol || Math.abs(nx - nz) > tol) return void 0;
|
|
10569
|
+
if (Math.abs(dot(cx, cy)) > tol * ny) return void 0;
|
|
10570
|
+
if (Math.abs(dot(cx, cz)) > tol * nz) return void 0;
|
|
10571
|
+
if (Math.abs(dot(cy, cz)) > tol * nz) return void 0;
|
|
10572
|
+
return nx;
|
|
10573
|
+
}
|
|
10574
|
+
function transformCurveDesc(desc, matrix) {
|
|
10575
|
+
const kind = desc["k"];
|
|
10576
|
+
if (kind === "line") {
|
|
10577
|
+
const p1 = desc["p1"];
|
|
10578
|
+
const p2 = desc["p2"];
|
|
10579
|
+
if (!isVec3(p1) || !isVec3(p2)) return void 0;
|
|
10580
|
+
return {
|
|
10581
|
+
...desc,
|
|
10582
|
+
p1: applyMat4(matrix, p1),
|
|
10583
|
+
p2: applyMat4(matrix, p2)
|
|
10584
|
+
};
|
|
10585
|
+
}
|
|
10586
|
+
if (kind === "bezier") {
|
|
10587
|
+
const pts = desc["points"];
|
|
10588
|
+
if (!Array.isArray(pts)) return void 0;
|
|
10589
|
+
return {
|
|
10590
|
+
...desc,
|
|
10591
|
+
points: pts.map((p) => isVec3(p) ? applyMat4(matrix, p) : p)
|
|
10592
|
+
};
|
|
10593
|
+
}
|
|
10594
|
+
const s = similarityScale(matrix);
|
|
10595
|
+
if (s === void 0) return void 0;
|
|
10596
|
+
if (kind === "conic") {
|
|
10597
|
+
const c = desc["center"];
|
|
10598
|
+
const x = desc["x"];
|
|
10599
|
+
const y = desc["y"];
|
|
10600
|
+
if (!isVec3(c) || !isVec3(x) || !isVec3(y)) return void 0;
|
|
10601
|
+
return {
|
|
10602
|
+
...desc,
|
|
10603
|
+
center: applyMat4(matrix, c),
|
|
10604
|
+
x: unit3(transformDir(matrix, x)),
|
|
10605
|
+
y: unit3(transformDir(matrix, y)),
|
|
10606
|
+
rx: numOf(desc["rx"]) * s,
|
|
10607
|
+
ry: numOf(desc["ry"]) * s
|
|
10608
|
+
};
|
|
10609
|
+
}
|
|
10610
|
+
if (kind === "helix") {
|
|
10611
|
+
const c = desc["center"];
|
|
10612
|
+
const ax = desc["axis"];
|
|
10613
|
+
const x = desc["x"];
|
|
10614
|
+
const y = desc["y"];
|
|
10615
|
+
if (!isVec3(c) || !isVec3(ax) || !isVec3(x) || !isVec3(y)) return void 0;
|
|
10616
|
+
return {
|
|
10617
|
+
...desc,
|
|
10618
|
+
center: applyMat4(matrix, c),
|
|
10619
|
+
axis: unit3(transformDir(matrix, ax)),
|
|
10620
|
+
x: unit3(transformDir(matrix, x)),
|
|
10621
|
+
y: unit3(transformDir(matrix, y)),
|
|
10622
|
+
radius: numOf(desc["radius"]) * s,
|
|
10623
|
+
pitch: numOf(desc["pitch"]) * s
|
|
10624
|
+
};
|
|
10625
|
+
}
|
|
10626
|
+
}
|
|
10627
|
+
function transformProfileNode(node, matrix, input) {
|
|
10628
|
+
const src = node.params ?? {};
|
|
10629
|
+
const params = { ...src };
|
|
10630
|
+
for (const k of PROFILE_POINT_KEYS) {
|
|
10631
|
+
const pts = src[k];
|
|
10632
|
+
if (!Array.isArray(pts)) continue;
|
|
10633
|
+
params[k] = pts.map((v) => isVec3(v) ? applyMat4(matrix, v) : v);
|
|
10634
|
+
}
|
|
10635
|
+
for (const k of ["origin"]) {
|
|
10636
|
+
const v = src[k];
|
|
10637
|
+
if (isVec3(v)) params[k] = applyMat4(matrix, v);
|
|
10638
|
+
}
|
|
10639
|
+
for (const k of ["xAxis", "yAxis"]) {
|
|
10640
|
+
const v = src[k];
|
|
10641
|
+
if (!isVec3(v)) continue;
|
|
10642
|
+
const a = applyMat4(matrix, [
|
|
10643
|
+
0,
|
|
10644
|
+
0,
|
|
10645
|
+
0
|
|
10646
|
+
]);
|
|
10647
|
+
const b = applyMat4(matrix, v);
|
|
10648
|
+
params[k] = [
|
|
10649
|
+
b[0] - a[0],
|
|
10650
|
+
b[1] - a[1],
|
|
10651
|
+
b[2] - a[2]
|
|
10652
|
+
];
|
|
10653
|
+
}
|
|
10654
|
+
const curve = src["curve"];
|
|
10655
|
+
if (curve !== null && typeof curve === "object") {
|
|
10656
|
+
const moved = transformCurveDesc(curve, matrix);
|
|
10657
|
+
if (moved === void 0) delete params["curve"];
|
|
10658
|
+
else params["curve"] = moved;
|
|
10659
|
+
}
|
|
10660
|
+
return wrap({
|
|
10661
|
+
delete: () => {},
|
|
10662
|
+
isEmpty: () => false
|
|
10663
|
+
}, makeNode(node.op ?? "profileWire", params, [input]));
|
|
10664
|
+
}
|
|
10477
10665
|
function applyMatrix(solid, matrix, op, params, input) {
|
|
10666
|
+
if (typeof solid.transform !== "function") return transformProfileNode(input, matrix, input);
|
|
10478
10667
|
return wrap(solid.transform(matrix), makeNode(op, params, [input]));
|
|
10479
10668
|
}
|
|
10480
10669
|
function translate(shape, x, y, z) {
|
|
@@ -12762,6 +12951,14 @@ var HANDLERS = {
|
|
|
12762
12951
|
0,
|
|
12763
12952
|
0
|
|
12764
12953
|
];
|
|
12954
|
+
if (pts.length > 2) {
|
|
12955
|
+
const through = pts.map((q) => [
|
|
12956
|
+
q[0],
|
|
12957
|
+
q[1],
|
|
12958
|
+
q[2]
|
|
12959
|
+
]);
|
|
12960
|
+
return t.interpolatePoints(through);
|
|
12961
|
+
}
|
|
12765
12962
|
const b = pts.length > 1 ? pts[pts.length - 1] ?? a : [
|
|
12766
12963
|
a[0] + .001,
|
|
12767
12964
|
a[1],
|
|
@@ -13261,6 +13458,16 @@ function makeMeasureOps(_module) {
|
|
|
13261
13458
|
if (e && e.__nativeEdge && typeof e.length === "number") return e.length;
|
|
13262
13459
|
const node = asManifoldShape(shape)?.node;
|
|
13263
13460
|
if (node?.op === "profileEdge" && node.params?.curve) return descLength(node.params.curve);
|
|
13461
|
+
const pts = node?.op === "profileEdge" ? node.params?.pts : void 0;
|
|
13462
|
+
if (pts && pts.length > 1) {
|
|
13463
|
+
let total = 0;
|
|
13464
|
+
for (let i = 1; i < pts.length; i++) {
|
|
13465
|
+
const a = pts[i - 1] ?? [];
|
|
13466
|
+
const b = pts[i] ?? [];
|
|
13467
|
+
total += Math.hypot((b[0] ?? 0) - (a[0] ?? 0), (b[1] ?? 0) - (a[1] ?? 0), (b[2] ?? 0) - (a[2] ?? 0));
|
|
13468
|
+
}
|
|
13469
|
+
return total;
|
|
13470
|
+
}
|
|
13264
13471
|
return notImplemented("length");
|
|
13265
13472
|
},
|
|
13266
13473
|
centerOfMass: (shape) => centerOfMass(shape),
|
package/dist/sketching.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
3
|
-
const require_drawFns = require("./drawFns-
|
|
4
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_blueprintSketcher = require("./blueprintSketcher-4e0yYtCY.cjs");
|
|
3
|
+
const require_drawFns = require("./drawFns-BcXzWFfn.cjs");
|
|
4
|
+
const require_textBlueprints = require("./textBlueprints-t8MdWfki.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-BjBjj2cK.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-BjT3RaeQ.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-BAyLXffK.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
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-gah07J7-.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-VlFxtvzY.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-C4xNv2zn.cjs");
|
|
8
|
+
const require_originTrackingFns = require("./originTrackingFns-D3rUK08B.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BXNZydNl.cjs");
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, E as getShapeKind, K as getKernel, S as isShell, W as _usingCtx, d as createSolid, f as createVertex, h as disposeResultShape, i as castShape, m as disposeDowncastSource, n as castResultShape, s as createCompound, x as isShape3D } from "./shapeTypes-BHRboc_x.js";
|
|
2
2
|
import { E as ok, P as unwrap, b as isErr, d as validationError, g as err, i as kernelError, l as typeCastError, m as andThen, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-
|
|
3
|
+
import { S as subShapeHashes, c as getFaces, f as getVertices, p as getWires, s as getEdges } from "./topologyQueryFns-QvPyCF-7.js";
|
|
4
4
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
5
5
|
import { a as vecDot, g as vecSub, h as vecScale, t as vecAdd } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { o as resolvePlane } from "./planeOps-CQahLrCx.js";
|
|
7
|
-
import { _ as cast, y as downcast } from "./faceFns-
|
|
8
|
-
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-
|
|
7
|
+
import { _ as cast, y as downcast } from "./faceFns-fvp_zfuI.js";
|
|
8
|
+
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-DIAwMSih.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-C8k0K7DR.js";
|
|
11
11
|
//#region src/topology/metadata/faceTagFns.ts
|
|
12
12
|
var shapeTagStore = /* @__PURE__ */ new WeakMap();
|
|
13
13
|
var tagMetadataStore = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-Dx-04qO0.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-C4xNv2zn.cjs");
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
function range(len) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, M as DisposalScope, W as _usingCtx, c as createEdge, l as createFace, p as createWire, y as isFace } from "./shapeTypes-BHRboc_x.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-MHLiNE-C.js";
|
|
3
|
-
import { a as isPlanarFace } from "./validityTypes-
|
|
4
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { a as isPlanarFace } from "./validityTypes-DokbYKzd.js";
|
|
4
|
+
import { _ as cast, u as outerWire } from "./faceFns-fvp_zfuI.js";
|
|
5
5
|
//#region src/utils/range.ts
|
|
6
6
|
/** Generate an array of integers `[0, 1, …, len - 1]`. */
|
|
7
7
|
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-t8MdWfki.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-DUEI9s5M.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-BAyLXffK.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-CefI-bMN.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { K as getKernel, d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, x as isShape3D } from "./shapeTypes-BHRboc_x.js";
|
|
2
2
|
import { n as bug } from "./bug-BdOHwn_e.js";
|
|
3
3
|
import { E as ok, P as unwrap, d as validationError, g as err, i as kernelError, l as typeCastError, r as ioError, t as BrepErrorCode } from "./errors-MHLiNE-C.js";
|
|
4
4
|
import { r as toVec3 } from "./types-D24Y27N0.js";
|
|
5
5
|
import { c as vecLength, d as vecNormalize, h as vecScale, r as vecCross } from "./vecOps-SKPRvPH-.js";
|
|
6
6
|
import { n as createPlane } from "./planeOps-CQahLrCx.js";
|
|
7
|
-
import { v as copyShape } from "./faceFns-
|
|
8
|
-
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-
|
|
9
|
-
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-
|
|
7
|
+
import { v as copyShape } from "./faceFns-fvp_zfuI.js";
|
|
8
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-DQQ0re9T.js";
|
|
9
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-RczIU30U.js";
|
|
10
10
|
import { n as getAtOrThrow, t as firstOrThrow } from "./arrayAccess-DrUGPADn.js";
|
|
11
|
-
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-
|
|
12
|
-
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-
|
|
13
|
-
import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-
|
|
11
|
+
import { i as makeNewFaceWithinFace, r as makeFace, t as addHolesInFace } from "./surfaceBuilders-C8k0K7DR.js";
|
|
12
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-BjBjj2cK.js";
|
|
13
|
+
import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-CyY4qfvC.js";
|
|
14
14
|
import opentype from "opentype.js";
|
|
15
15
|
//#region src/operations/extrudeFns.ts
|
|
16
16
|
/**
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
const require_rolldown_runtime = require("./rolldown-runtime-C0BPl7ul.cjs");
|
|
2
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
2
|
+
const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
|
|
3
3
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
4
4
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
5
5
|
const require_types = require("./types-KjA8tY4Y.cjs");
|
|
6
6
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
7
7
|
const require_planeOps = require("./planeOps-VlFxtvzY.cjs");
|
|
8
|
-
const require_faceFns = require("./faceFns-
|
|
9
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
10
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
+
const require_faceFns = require("./faceFns-C4xNv2zn.cjs");
|
|
9
|
+
const require_solidBuilders = require("./solidBuilders-CsUkRC69.cjs");
|
|
10
|
+
const require_curveFns = require("./curveFns-BZZYHVow.cjs");
|
|
11
11
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
12
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
13
|
-
const require_blueprintSketcher = require("./blueprintSketcher-
|
|
14
|
-
const require_loftFns = require("./loftFns-
|
|
12
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BXNZydNl.cjs");
|
|
13
|
+
const require_blueprintSketcher = require("./blueprintSketcher-4e0yYtCY.cjs");
|
|
14
|
+
const require_loftFns = require("./loftFns-B3mbh5RA.cjs");
|
|
15
15
|
let opentype_js = require("opentype.js");
|
|
16
16
|
opentype_js = require_rolldown_runtime.__toESM(opentype_js, 1);
|
|
17
17
|
//#region src/operations/extrudeFns.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-MHLiNE-C.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-BAyLXffK.js";
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-t8MdWfki.cjs");
|
|
3
3
|
//#region src/text/sketchText.ts
|
|
4
4
|
/**
|
|
5
5
|
* Render text as 3D sketch outlines on a plane.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { K as getKernel, M as DisposalScope, P as createKernelHandle, W as _usingCtx, n as castResultShape, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { K as getKernel, M as DisposalScope, P as createKernelHandle, W as _usingCtx, n as castResultShape, x as isShape3D } from "./shapeTypes-BHRboc_x.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, n as computationError, r as ioError, t as BrepErrorCode, x as isOk } from "./errors-MHLiNE-C.js";
|
|
3
3
|
import { d as vecNormalize, s as vecIsZero } from "./vecOps-SKPRvPH-.js";
|
|
4
|
-
import { b as fromBREP } from "./faceFns-
|
|
5
|
-
import { h as fuseAll } from "./solidBuilders-
|
|
6
|
-
import { E as wire, h as line } from "./primitiveFns-
|
|
7
|
-
import { s as toBREP } from "./shapeFns-
|
|
8
|
-
import { t as loft } from "./loftFns-
|
|
9
|
-
import { c as resolveRefParams } from "./refResolveFns-
|
|
4
|
+
import { b as fromBREP } from "./faceFns-fvp_zfuI.js";
|
|
5
|
+
import { h as fuseAll } from "./solidBuilders-DQQ0re9T.js";
|
|
6
|
+
import { E as wire, h as line } from "./primitiveFns-CDPqVTcc.js";
|
|
7
|
+
import { s as toBREP } from "./shapeFns-DEpbxB9Z.js";
|
|
8
|
+
import { t as loft } from "./loftFns-CyY4qfvC.js";
|
|
9
|
+
import { c as resolveRefParams } from "./refResolveFns-o3-Gdnjn.js";
|
|
10
10
|
//#region src/utils/uuid.ts
|
|
11
11
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
12
12
|
function uuidv() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
3
|
const require_vecOps = require("./vecOps-CCnJt-yH.cjs");
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
5
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
6
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
7
|
-
const require_shapeFns = require("./shapeFns-
|
|
8
|
-
const require_loftFns = require("./loftFns-
|
|
9
|
-
const require_refResolveFns = require("./refResolveFns-
|
|
4
|
+
const require_faceFns = require("./faceFns-C4xNv2zn.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-CsUkRC69.cjs");
|
|
6
|
+
const require_primitiveFns = require("./primitiveFns-c7wqS-K2.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-CJ6mph9b.cjs");
|
|
8
|
+
const require_loftFns = require("./loftFns-B3mbh5RA.cjs");
|
|
9
|
+
const require_refResolveFns = require("./refResolveFns-Cm8ZHPl5.cjs");
|
|
10
10
|
//#region src/utils/uuid.ts
|
|
11
11
|
/** Generate a v4-style UUID string using `crypto.getRandomValues`. */
|
|
12
12
|
function uuidv() {
|
package/dist/topology.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
-
const require_faceFns = require("./faceFns-
|
|
4
|
-
const require_solidBuilders = require("./solidBuilders-
|
|
5
|
-
const require_primitiveFns = require("./primitiveFns-
|
|
6
|
-
const require_shapeFns = require("./shapeFns-
|
|
7
|
-
const require_curveFns = require("./curveFns-
|
|
8
|
-
const require_meshFns = require("./meshFns-
|
|
9
|
-
const require_healingFns = require("./healingFns-
|
|
10
|
-
const require_adjacencyFns = require("./adjacencyFns-
|
|
2
|
+
const require_topologyQueryFns = require("./topologyQueryFns-gah07J7-.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-C4xNv2zn.cjs");
|
|
4
|
+
const require_solidBuilders = require("./solidBuilders-CsUkRC69.cjs");
|
|
5
|
+
const require_primitiveFns = require("./primitiveFns-c7wqS-K2.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-CJ6mph9b.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-BZZYHVow.cjs");
|
|
8
|
+
const require_meshFns = require("./meshFns-2ZxW-X9I.cjs");
|
|
9
|
+
const require_healingFns = require("./healingFns-SxSiVPQa.cjs");
|
|
10
|
+
const require_adjacencyFns = require("./adjacencyFns-CpKlADYt.cjs");
|
|
11
11
|
exports.addHoles = require_primitiveFns.addHoles;
|
|
12
12
|
exports.adjacentFaces = require_adjacencyFns.adjacentFaces;
|
|
13
13
|
exports.approximateCurve = require_curveFns.approximateCurve;
|
package/dist/topology.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C 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 { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, 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, x as isCompSolid, y as downcast } from "./faceFns-
|
|
3
|
-
import { h as fuseAll, p as cutAll } from "./solidBuilders-
|
|
4
|
-
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-
|
|
5
|
-
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-
|
|
6
|
-
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-
|
|
7
|
-
import { d as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES, u as clearMeshCache } from "./meshFns-
|
|
8
|
-
import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as toGroupedBufferGeometryData, k as chamferDistAngle, 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 } from "./healingFns-
|
|
9
|
-
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-
|
|
1
|
+
import { C 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-QvPyCF-7.js";
|
|
2
|
+
import { C as shapeType, S as iterTopo, _ as cast, a as faceOrientation, b as fromBREP, 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, x as isCompSolid, y as downcast } from "./faceFns-fvp_zfuI.js";
|
|
3
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-DQQ0re9T.js";
|
|
4
|
+
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-CDPqVTcc.js";
|
|
5
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-DEpbxB9Z.js";
|
|
6
|
+
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-RczIU30U.js";
|
|
7
|
+
import { d as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES, u as clearMeshCache } from "./meshFns-DrO3d03M.js";
|
|
8
|
+
import { A as toBufferGeometryData, C as shellWithEvolution, D as getNurbsCurveData, E as fuseAllBisect, O as getNurbsSurfaceData, P as toLineGeometryData, S as intersectWithEvolution, T as cutAllBisect, _ as positionOnCurve, a as healFace, b as filletWithEvolution, g as variableFillet, j as toGroupedBufferGeometryData, k as chamferDistAngle, 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 } from "./healingFns-AE5182Ds.js";
|
|
9
|
+
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-DECdcer5.js";
|
|
10
10
|
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
|
-
import { D as getOrQueryType, K as getKernel, M as DisposalScope, W as _usingCtx, n as castResultShape, r as castResultShapeWithKnownType } from "./shapeTypes-
|
|
1
|
+
import { D as getOrQueryType, K as getKernel, M as DisposalScope, W as _usingCtx, n as castResultShape, r as castResultShapeWithKnownType } from "./shapeTypes-BHRboc_x.js";
|
|
2
2
|
import { E as ok, g as err } from "./errors-MHLiNE-C.js";
|
|
3
3
|
import { n as HASH_CODE_MAX } from "./constants-ITRzCnCp.js";
|
|
4
4
|
//#region src/core/kernelErrorTranslation.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_shapeTypes = require("./shapeTypes-
|
|
1
|
+
const require_shapeTypes = require("./shapeTypes-D5Y41q7x.cjs");
|
|
2
2
|
const require_errors = require("./errors-RHkKO5bZ.cjs");
|
|
3
3
|
const require_constants = require("./constants-BOVyEYGH.cjs");
|
|
4
4
|
//#region src/core/kernelErrorTranslation.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brepjs",
|
|
3
|
-
"version": "18.124.
|
|
3
|
+
"version": "18.124.2",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
"@emnapi/core": "1.11.3",
|
|
260
260
|
"@emnapi/runtime": "1.11.3",
|
|
261
261
|
"@eslint/js": "10.0.1",
|
|
262
|
-
"@size-limit/file": "
|
|
262
|
+
"@size-limit/file": "13.0.3",
|
|
263
263
|
"@types/opentype.js": "1.3.9",
|
|
264
264
|
"@types/react": "19.2.18",
|
|
265
265
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
@@ -275,7 +275,7 @@
|
|
|
275
275
|
"occt-wasm": "4.2.0",
|
|
276
276
|
"prettier": "3.9.6",
|
|
277
277
|
"puppeteer": "25.4.0",
|
|
278
|
-
"size-limit": "
|
|
278
|
+
"size-limit": "13.0.3",
|
|
279
279
|
"sucrase": "3.35.1",
|
|
280
280
|
"tsx": "4.23.4",
|
|
281
281
|
"typedoc": "0.28.20",
|