brepjs 20.1.2 → 20.1.4
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-ej9hO9xZ.js → adjacencyFns-A1SikG3N.js} +2 -2
- package/dist/{adjacencyFns-zDv9Y_vQ.cjs → adjacencyFns-C_ZNyZRx.cjs} +2 -2
- package/dist/{blueprint-SRu61-iN.cjs → blueprint-BsaJ4TJW.cjs} +5 -5
- package/dist/{blueprint-Cmg-LbRn.js → blueprint-CAg8eRRu.js} +5 -5
- package/dist/{blueprintFns-C-oyZ7Zi.js → blueprintFns-BRXgJCA2.js} +2 -2
- package/dist/{blueprintFns-DkvwC3RT.cjs → blueprintFns-CCVf2Yat.cjs} +2 -2
- package/dist/{blueprintSketcher-BlZGYoPw.js → blueprintSketcher-CNbOLihr.js} +3 -3
- package/dist/{blueprintSketcher-BrM_Pw3f.cjs → blueprintSketcher-DobJgYX3.cjs} +3 -3
- package/dist/{boolean2D-De5gvlXc.js → boolean2D-C-TdmZUJ.js} +4 -4
- package/dist/{boolean2D-CV3aESVd.cjs → boolean2D-CB3xwM21.cjs} +4 -4
- package/dist/brepjs.cjs +28 -28
- package/dist/brepjs.js +28 -28
- package/dist/{cameraFns-CmF8UUHE.cjs → cameraFns-BSHErz3i.cjs} +3 -3
- package/dist/{cameraFns-Cc64fYYx.js → cameraFns-CdtviYur.js} +3 -3
- package/dist/core.cjs +2 -2
- package/dist/core.js +2 -2
- package/dist/{cornerFinder-Cs0EZ0Ne.cjs → cornerFinder-BdK6e9T-.cjs} +1 -1
- package/dist/{cornerFinder-BcUFKX9b.js → cornerFinder-DCXsZzIe.js} +1 -1
- package/dist/{curveFns-DuR-eBys.cjs → curveFns-BXGE1xHa.cjs} +1 -1
- package/dist/{curveFns-BKsD1ODV.js → curveFns-D_xfC1HQ.js} +1 -1
- package/dist/{drawFns-Dl8qMkEz.cjs → drawFns-B9JThnjT.cjs} +12 -12
- package/dist/{drawFns-lOJWjgrQ.js → drawFns-CIfCWrWw.js} +12 -12
- package/dist/{faceFns-Ce23Cb4Q.cjs → faceFns-CGXvMjno.cjs} +2 -2
- package/dist/{faceFns-BGhhLR-E.js → faceFns-CwweiLRC.js} +2 -2
- package/dist/{healingFns-DmIfO2cE.cjs → healingFns-D8_IZ8LC.cjs} +4 -4
- package/dist/{healingFns-C8NNkFcz.js → healingFns-DVH0JBpC.js} +4 -4
- package/dist/{helpers-CRSf_sid.cjs → helpers-BjKe6-M-.cjs} +6 -6
- package/dist/{helpers-D8YOkdnU.js → helpers-jV94RJf1.js} +6 -6
- package/dist/{importFns-COBw14C4.js → importFns-8OY0H66Q.js} +2 -2
- package/dist/{importFns-fdBP-Jna.cjs → importFns-C0WKTbbQ.cjs} +2 -2
- package/dist/io.cjs +2 -2
- package/dist/io.js +2 -2
- package/dist/kernel/brepkit/evolutionOps.d.ts +22 -0
- package/dist/kernel/brepkit/helpers.d.ts +6 -0
- package/dist/{loftFns-BOMgg6L-.cjs → loftFns-B3aEz87L.cjs} +1 -1
- package/dist/{loftFns-yMpD7BA9.js → loftFns-CS0JYNr4.js} +1 -1
- package/dist/{measureFns-CwgfqnSt.cjs → measureFns-CyU-fOaZ.cjs} +3 -3
- package/dist/{measureFns-BhqDp378.js → measureFns-LkW9r9Dm.js} +3 -3
- package/dist/measurement.cjs +1 -1
- package/dist/measurement.js +1 -1
- package/dist/{meshFns-BHGieABm.js → meshFns-BI_fEj-T.js} +3 -3
- package/dist/{meshFns-BEJgW3TE.cjs → meshFns-vO9xsIlB.cjs} +3 -3
- package/dist/operations.cjs +2 -2
- package/dist/operations.js +2 -2
- package/dist/{originTrackingFns-CO8e_LS7.js → originTrackingFns-BTBemULp.js} +2 -2
- package/dist/{originTrackingFns-W6ywaEKW.cjs → originTrackingFns-CuCeiMNZ.cjs} +2 -2
- package/dist/{primitiveFns-CuS1e3EQ.js → primitiveFns-CfxGT0nf.js} +4 -4
- package/dist/{primitiveFns-BDhSnM7w.cjs → primitiveFns-DSUL72Md.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-CBFzu4MO.cjs → refResolveFns-BleIGUVN.cjs} +6 -6
- package/dist/{refResolveFns-DAELSL_-.js → refResolveFns-BuS72b11.js} +6 -6
- package/dist/{shapeFns-Dkv5hQqS.cjs → shapeFns-BsuUPJR3.cjs} +2 -2
- package/dist/{shapeFns-CcYDq9w_.js → shapeFns-DTZ96dTc.js} +2 -2
- package/dist/shapeRef.cjs +1 -1
- package/dist/shapeRef.js +1 -1
- package/dist/{shapeTypes-K-8sOZJX.cjs → shapeTypes-CACpB7r3.cjs} +62 -37
- package/dist/{shapeTypes-DR09c_Mq.js → shapeTypes-CEFHrXNb.js} +62 -37
- package/dist/sketching.cjs +3 -3
- package/dist/sketching.js +3 -3
- package/dist/{solidBuilders-Js3NDrDt.cjs → solidBuilders-BdKU5bQ9.cjs} +5 -5
- package/dist/{solidBuilders-B93Vxsox.js → solidBuilders-De11-Gp-.js} +5 -5
- package/dist/{surfaceBuilders-BogUIjPP.cjs → surfaceBuilders-BaVNAtRf.cjs} +3 -3
- package/dist/{surfaceBuilders-lWeHYtC-.js → surfaceBuilders-QGhgel6X.js} +3 -3
- package/dist/text.cjs +2 -2
- package/dist/text.js +2 -2
- package/dist/{textBlueprints-CBgZxt_j.cjs → textBlueprints-BHOADZSh.cjs} +7 -7
- package/dist/{textBlueprints-DlDqZ1_L.js → textBlueprints-B_yfJn3S.js} +7 -7
- package/dist/{textMetrics-BDmGtyyR.js → textMetrics-C4I5t9jZ.js} +1 -1
- package/dist/{textMetrics-DIONpTho.cjs → textMetrics-DHWYuTUK.cjs} +1 -1
- package/dist/{threadFns-CpfBKRPw.js → threadFns-BVwQUwRJ.js} +7 -7
- package/dist/{threadFns-CQXZ4TG7.cjs → threadFns-P682L-Kg.cjs} +7 -7
- package/dist/topology.cjs +9 -9
- package/dist/topology.js +9 -9
- package/dist/{topologyQueryFns-D0QnCShx.js → topologyQueryFns-CFfTw0pA.js} +1 -1
- package/dist/{topologyQueryFns-xuTRkmJV.cjs → topologyQueryFns-Cp390rTF.cjs} +1 -1
- package/dist/{validityTypes-rF_6gey6.js → validityTypes-Biiyb5lR.js} +1 -1
- package/dist/{validityTypes-DHlUzxhk.cjs → validityTypes-DtfxKjGs.cjs} +1 -1
- package/package.json +11 -11
|
@@ -5393,6 +5393,16 @@ function unwrap$1(shape, expected) {
|
|
|
5393
5393
|
function toArray(ids) {
|
|
5394
5394
|
return Array.from(ids);
|
|
5395
5395
|
}
|
|
5396
|
+
/**
|
|
5397
|
+
* Solid ids inside a compound. A synthetic compound exists JS-side only, so the
|
|
5398
|
+
* kernel rejects its id as an invalid handle; its solid children are read from
|
|
5399
|
+
* `syntheticCompounds` instead.
|
|
5400
|
+
*/
|
|
5401
|
+
function compoundSolidIds(bk, id) {
|
|
5402
|
+
const synthetic = syntheticCompounds.get(id);
|
|
5403
|
+
if (synthetic) return synthetic.filter((h) => h.type === "solid").map((h) => h.id);
|
|
5404
|
+
return toArray(bk.getCompoundSolids(id));
|
|
5405
|
+
}
|
|
5396
5406
|
/** Unwrap a shape that must be a solid, with a descriptive error naming the method. */
|
|
5397
5407
|
function unwrapSolidOrThrow(shape, methodName) {
|
|
5398
5408
|
if (!isBrepkitHandle(shape)) throw new Error("brepkit: expected a BrepkitHandle, got " + typeof shape);
|
|
@@ -5408,7 +5418,7 @@ function unwrapSolidsForExport(bk, shape, methodName) {
|
|
|
5408
5418
|
if (!isBrepkitHandle(shape)) throw new Error("brepkit: expected a BrepkitHandle, got " + typeof shape);
|
|
5409
5419
|
if (shape.type === "solid") return [shape.id];
|
|
5410
5420
|
if (shape.type === "compound") {
|
|
5411
|
-
const ids =
|
|
5421
|
+
const ids = compoundSolidIds(bk, shape.id);
|
|
5412
5422
|
if (ids.length > 0) return ids;
|
|
5413
5423
|
throw new Error(`brepkit: ${methodName} received a compound with no solids.`);
|
|
5414
5424
|
}
|
|
@@ -6578,7 +6588,7 @@ function isEmptyBooleanError(e) {
|
|
|
6578
6588
|
}
|
|
6579
6589
|
function isEmptyCompound(bk, h) {
|
|
6580
6590
|
if (h.type !== "compound") return false;
|
|
6581
|
-
return
|
|
6591
|
+
return compoundSolidIds(bk, h.id).length === 0;
|
|
6582
6592
|
}
|
|
6583
6593
|
function emptyCompound(bk) {
|
|
6584
6594
|
return compoundHandle(bk.makeCompound([]));
|
|
@@ -6609,7 +6619,7 @@ function warnCompoundBaseSimplify(options, op) {
|
|
|
6609
6619
|
*/
|
|
6610
6620
|
function solidIdsOf(bk, shape, methodName) {
|
|
6611
6621
|
const h = shape;
|
|
6612
|
-
if (isBrepkitHandle(shape) && h.type === "compound") return
|
|
6622
|
+
if (isBrepkitHandle(shape) && h.type === "compound") return compoundSolidIds(bk, h.id);
|
|
6613
6623
|
return [unwrapSolidOrThrow(shape, methodName)];
|
|
6614
6624
|
}
|
|
6615
6625
|
function fuse(bk, shape, tool, _options) {
|
|
@@ -6627,7 +6637,7 @@ function fuse(bk, shape, tool, _options) {
|
|
|
6627
6637
|
const baseId = unwrapSolidOrThrow(shape, "fuse");
|
|
6628
6638
|
const toolHandle = tool;
|
|
6629
6639
|
if (toolHandle.type === "compound") {
|
|
6630
|
-
const toolSolidIds =
|
|
6640
|
+
const toolSolidIds = compoundSolidIds(bk, toolHandle.id);
|
|
6631
6641
|
let currentId = baseId;
|
|
6632
6642
|
for (const toolSolidId of toolSolidIds) currentId = kernelBoolean(bk, "fuse", currentId, toolSolidId, _options);
|
|
6633
6643
|
return solidHandle(currentId);
|
|
@@ -6643,7 +6653,7 @@ function cut(bk, shape, tool, _options) {
|
|
|
6643
6653
|
warnCompoundBaseSimplify(_options, "cut");
|
|
6644
6654
|
const toolIds = solidIdsOf(bk, tool, "cut");
|
|
6645
6655
|
const survivors = [];
|
|
6646
|
-
for (const childId of
|
|
6656
|
+
for (const childId of compoundSolidIds(bk, cutBase.id)) try {
|
|
6647
6657
|
survivors.push(bk.compoundCut(childId, new Uint32Array(toolIds)));
|
|
6648
6658
|
} catch (e) {
|
|
6649
6659
|
if (!isEmptyBooleanError(e)) throw e;
|
|
@@ -6654,7 +6664,7 @@ function cut(bk, shape, tool, _options) {
|
|
|
6654
6664
|
const baseId = unwrapSolidOrThrow(shape, "cut");
|
|
6655
6665
|
const toolHandle = tool;
|
|
6656
6666
|
if (toolHandle.type === "compound") {
|
|
6657
|
-
const toolSolidIds =
|
|
6667
|
+
const toolSolidIds = compoundSolidIds(bk, toolHandle.id);
|
|
6658
6668
|
let currentId = baseId;
|
|
6659
6669
|
for (const toolSolidId of toolSolidIds) try {
|
|
6660
6670
|
currentId = kernelBoolean(bk, "cut", currentId, toolSolidId, _options);
|
|
@@ -6720,14 +6730,14 @@ function cutAll(bk, shape, tools, options) {
|
|
|
6720
6730
|
const toolIds = [];
|
|
6721
6731
|
for (const tool of tools) {
|
|
6722
6732
|
const h = tool;
|
|
6723
|
-
if (h.type === "compound") toolIds.push(...
|
|
6733
|
+
if (h.type === "compound") toolIds.push(...compoundSolidIds(bk, h.id));
|
|
6724
6734
|
else toolIds.push(unwrapSolidOrThrow(tool, "cutAll"));
|
|
6725
6735
|
}
|
|
6726
6736
|
if (toolIds.length === 0) return shape;
|
|
6727
6737
|
const baseHandle = shape;
|
|
6728
6738
|
if (isBrepkitHandle(shape) && baseHandle.type === "compound") {
|
|
6729
6739
|
const survivors = [];
|
|
6730
|
-
for (const childId of
|
|
6740
|
+
for (const childId of compoundSolidIds(bk, baseHandle.id)) try {
|
|
6731
6741
|
survivors.push(bk.compoundCut(childId, toolIds));
|
|
6732
6742
|
} catch (e) {
|
|
6733
6743
|
if (!isEmptyBooleanError(e)) throw e;
|
|
@@ -7982,14 +7992,14 @@ function buildEvolution(bk, resultShape, inputFaceHashes, hashUpperBound, isTran
|
|
|
7982
7992
|
*/
|
|
7983
7993
|
function chainEvolutionMap(map, stepModified, stepDeleted, intermediateOutputs, deleteOnEmpty) {
|
|
7984
7994
|
for (const [origKey, prevOutputs] of map) {
|
|
7985
|
-
const chainedOutputs =
|
|
7995
|
+
const chainedOutputs = /* @__PURE__ */ new Set();
|
|
7986
7996
|
for (const prevOut of prevOutputs) {
|
|
7987
7997
|
intermediateOutputs.add(prevOut);
|
|
7988
7998
|
const nextOutputs = stepModified.get(prevOut);
|
|
7989
|
-
if (nextOutputs) chainedOutputs.
|
|
7990
|
-
else if (!stepDeleted.has(prevOut)) chainedOutputs.
|
|
7999
|
+
if (nextOutputs) for (const next of nextOutputs) chainedOutputs.add(next);
|
|
8000
|
+
else if (!stepDeleted.has(prevOut)) chainedOutputs.add(prevOut);
|
|
7991
8001
|
}
|
|
7992
|
-
if (chainedOutputs.
|
|
8002
|
+
if (chainedOutputs.size > 0) map.set(origKey, [...chainedOutputs]);
|
|
7993
8003
|
else {
|
|
7994
8004
|
map.delete(origKey);
|
|
7995
8005
|
deleteOnEmpty?.add(origKey);
|
|
@@ -8012,7 +8022,7 @@ function mergeCompoundChildStep(result, accum) {
|
|
|
8012
8022
|
for (const [k, v] of result.evolution.generated) {
|
|
8013
8023
|
if (intermediateOutputs.has(k)) continue;
|
|
8014
8024
|
const existing = accum.combinedGenerated.get(k) ?? [];
|
|
8015
|
-
accum.combinedGenerated.set(k, [...existing, ...v]);
|
|
8025
|
+
accum.combinedGenerated.set(k, [.../* @__PURE__ */ new Set([...existing, ...v])]);
|
|
8016
8026
|
}
|
|
8017
8027
|
for (const d of result.evolution.deleted) {
|
|
8018
8028
|
if (!accum.inputFaceHashSet.has(d)) continue;
|
|
@@ -8020,35 +8030,42 @@ function mergeCompoundChildStep(result, accum) {
|
|
|
8020
8030
|
}
|
|
8021
8031
|
}
|
|
8022
8032
|
/**
|
|
8023
|
-
* Iteratively apply native evolution for each solid
|
|
8024
|
-
*
|
|
8025
|
-
*
|
|
8033
|
+
* Iteratively apply native evolution for each tool solid, chaining evolution
|
|
8034
|
+
* maps so the original input face hashes resolve to final output hashes rather
|
|
8035
|
+
* than intermediates.
|
|
8026
8036
|
*/
|
|
8027
|
-
function applyCompoundBooleanWithHistory(
|
|
8028
|
-
const childSolidIds = toArray(bk.getCompoundSolids(compoundToolId));
|
|
8037
|
+
function applyCompoundBooleanWithHistory(shape, toolSolidIds, accum, hashUpperBound, nativeFn) {
|
|
8029
8038
|
let currentShape = shape;
|
|
8030
|
-
const
|
|
8031
|
-
combinedModified: /* @__PURE__ */ new Map(),
|
|
8032
|
-
combinedGenerated: /* @__PURE__ */ new Map(),
|
|
8033
|
-
combinedDeleted: /* @__PURE__ */ new Set(),
|
|
8034
|
-
inputFaceHashSet: new Set(inputFaceHashes)
|
|
8035
|
-
};
|
|
8036
|
-
for (const childId of childSolidIds) {
|
|
8039
|
+
for (const childId of toolSolidIds) {
|
|
8037
8040
|
const ch = currentShape;
|
|
8038
8041
|
if (ch.type !== "solid") break;
|
|
8039
8042
|
const result = parseNativeEvolution(nativeFn(ch.id, childId), hashUpperBound);
|
|
8040
8043
|
currentShape = result.shape;
|
|
8041
8044
|
mergeCompoundChildStep(result, accum);
|
|
8042
8045
|
}
|
|
8043
|
-
return
|
|
8044
|
-
|
|
8045
|
-
|
|
8046
|
-
|
|
8046
|
+
return currentShape;
|
|
8047
|
+
}
|
|
8048
|
+
/**
|
|
8049
|
+
* The union of a tool's solids, fused one at a time with history folded into
|
|
8050
|
+
* `accum`, so the tool's own faces still resolve to the faces they become.
|
|
8051
|
+
* `undefined` once a fuse leaves no single solid.
|
|
8052
|
+
*/
|
|
8053
|
+
function fuseToolWithHistory(bk, toolSolidIds, accum, hashUpperBound) {
|
|
8054
|
+
let union = toolSolidIds[0];
|
|
8055
|
+
for (const id of toolSolidIds.slice(1)) {
|
|
8056
|
+
if (union === void 0) return void 0;
|
|
8057
|
+
const step = parseNativeEvolution(bk.fuseWithEvolution(union, id), hashUpperBound);
|
|
8058
|
+
const fused = step.shape;
|
|
8059
|
+
if (fused.type !== "solid") return void 0;
|
|
8060
|
+
mergeCompoundChildStep(step, accum);
|
|
8061
|
+
union = fused.id;
|
|
8062
|
+
}
|
|
8063
|
+
return union;
|
|
8047
8064
|
}
|
|
8048
8065
|
/**
|
|
8049
8066
|
* Shared implementation for boolean-with-history operations (fuse, cut, intersect).
|
|
8050
8067
|
*/
|
|
8051
|
-
function booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, nativeFn, fallbackFn,
|
|
8068
|
+
function booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, nativeFn, fallbackFn, op) {
|
|
8052
8069
|
const noDiagnostics = {
|
|
8053
8070
|
hasErrors: false,
|
|
8054
8071
|
hasWarnings: false,
|
|
@@ -8065,10 +8082,18 @@ function booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound
|
|
|
8065
8082
|
} catch (e) {
|
|
8066
8083
|
if (!isEmptyBooleanError(e)) throw e;
|
|
8067
8084
|
}
|
|
8068
|
-
|
|
8069
|
-
|
|
8085
|
+
const toolSolidIds = th.type === "compound" ? compoundSolidIds(bk, th.id) : [];
|
|
8086
|
+
if (toolSolidIds.length > 0) {
|
|
8087
|
+
const accum = {
|
|
8088
|
+
combinedModified: /* @__PURE__ */ new Map(),
|
|
8089
|
+
combinedGenerated: /* @__PURE__ */ new Map(),
|
|
8090
|
+
combinedDeleted: /* @__PURE__ */ new Set(),
|
|
8091
|
+
inputFaceHashSet: new Set(inputFaceHashes)
|
|
8092
|
+
};
|
|
8093
|
+
let steps = toolSolidIds;
|
|
8094
|
+
if (op === "intersect" && toolSolidIds.length > 1) steps = [fuseToolWithHistory(bk, toolSolidIds, accum, hashUpperBound) ?? bk.fuseAll(toolSolidIds)];
|
|
8070
8095
|
return {
|
|
8071
|
-
shape:
|
|
8096
|
+
shape: applyCompoundBooleanWithHistory(shape, steps, accum, hashUpperBound, nativeFn),
|
|
8072
8097
|
evolution: {
|
|
8073
8098
|
modified: accum.combinedModified,
|
|
8074
8099
|
generated: accum.combinedGenerated,
|
|
@@ -8099,13 +8124,13 @@ function generalTransformWithHistory(bk, shape, linear, translation, isOrthogona
|
|
|
8099
8124
|
return buildEvolution(bk, generalTransform$1(bk, shape, linear, translation, isOrthogonal), inputFaceHashes, hashUpperBound, true);
|
|
8100
8125
|
}
|
|
8101
8126
|
function fuseWithHistory(bk, shape, tool, inputFaceHashes, hashUpperBound, options) {
|
|
8102
|
-
return booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, (a, b) => bk.fuseWithEvolution(a, b), (s, t, o) => fuse(bk, s, t, o), "
|
|
8127
|
+
return booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, (a, b) => bk.fuseWithEvolution(a, b), (s, t, o) => fuse(bk, s, t, o), "fuse");
|
|
8103
8128
|
}
|
|
8104
8129
|
function cutWithHistory(bk, shape, tool, inputFaceHashes, hashUpperBound, options) {
|
|
8105
|
-
return booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, (a, b) => bk.cutWithEvolution(a, b), (s, t, o) => cut(bk, s, t, o), "
|
|
8130
|
+
return booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, (a, b) => bk.cutWithEvolution(a, b), (s, t, o) => cut(bk, s, t, o), "cut");
|
|
8106
8131
|
}
|
|
8107
8132
|
function intersectWithHistory(bk, shape, tool, inputFaceHashes, hashUpperBound, options) {
|
|
8108
|
-
return booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, (a, b) => bk.intersectWithEvolution(a, b), (s, t, o) => intersect(bk, s, t, o), "
|
|
8133
|
+
return booleanWithHistoryImpl(bk, shape, tool, inputFaceHashes, hashUpperBound, options, (a, b) => bk.intersectWithEvolution(a, b), (s, t, o) => intersect(bk, s, t, o), "intersect");
|
|
8109
8134
|
}
|
|
8110
8135
|
function filletWithHistory(bk, shape, edges, radius, inputFaceHashes, hashUpperBound) {
|
|
8111
8136
|
return buildEvolution(bk, fillet(bk, shape, edges, radius), inputFaceHashes, hashUpperBound, false, shape);
|
|
@@ -16266,7 +16291,7 @@ async function init() {
|
|
|
16266
16291
|
throw new Error("brepjs: no kernel package found. Install one of:\n npm install occt-wasm (recommended, default)\n npm install brepjs-opencascade\n npm install brepkit-wasm");
|
|
16267
16292
|
}
|
|
16268
16293
|
//#endregion
|
|
16269
|
-
//#region \0@oxc-project+runtime@0.
|
|
16294
|
+
//#region \0@oxc-project+runtime@0.152.0/helpers/esm/usingCtx.js
|
|
16270
16295
|
function _usingCtx() {
|
|
16271
16296
|
var r = "function" == typeof SuppressedError ? SuppressedError : function(r, e) {
|
|
16272
16297
|
var n = Error();
|
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-DobJgYX3.cjs");
|
|
3
|
+
const require_drawFns = require("./drawFns-B9JThnjT.cjs");
|
|
4
|
+
const require_textBlueprints = require("./textBlueprints-BHOADZSh.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-CNbOLihr.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-CIfCWrWw.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-B_yfJn3S.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-CACpB7r3.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
|
-
const require_topologyQueryFns = require("./topologyQueryFns-
|
|
3
|
+
const require_topologyQueryFns = require("./topologyQueryFns-Cp390rTF.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-CpupTCRM.cjs");
|
|
7
|
-
const require_faceFns = require("./faceFns-
|
|
8
|
-
const require_originTrackingFns = require("./originTrackingFns-
|
|
7
|
+
const require_faceFns = require("./faceFns-CGXvMjno.cjs");
|
|
8
|
+
const require_originTrackingFns = require("./originTrackingFns-CuCeiMNZ.cjs");
|
|
9
9
|
const require_arrayAccess = require("./arrayAccess-e4H9cBfh.cjs");
|
|
10
|
-
const require_surfaceBuilders = require("./surfaceBuilders-
|
|
10
|
+
const require_surfaceBuilders = require("./surfaceBuilders-BaVNAtRf.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, D as getShapeKind, E as GeometryCleanupError, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { C as isSolid, D as getShapeKind, E as GeometryCleanupError, G as _usingCtx, S as isShell, d as createSolid, f as createVertex, h as disposeResultShape, n as castResultShape, q as getKernel, s as createCompound, x as isShape3D } from "./shapeTypes-CEFHrXNb.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-CTn8i3lY.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-CFfTw0pA.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-CkpMeheg.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-CwweiLRC.js";
|
|
8
|
+
import { n as propagateOriginsByHash, r as propagateOriginsFromEvolution, t as getFaceOrigins } from "./originTrackingFns-BTBemULp.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-QGhgel6X.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-CACpB7r3.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.cjs");
|
|
3
|
-
const require_validityTypes = require("./validityTypes-
|
|
4
|
-
const require_faceFns = require("./faceFns-
|
|
3
|
+
const require_validityTypes = require("./validityTypes-DtfxKjGs.cjs");
|
|
4
|
+
const require_faceFns = require("./faceFns-CGXvMjno.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 { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, N as DisposalScope, c as createEdge, l as createFace, p as createWire, q as getKernel, y as isFace } from "./shapeTypes-CEFHrXNb.js";
|
|
2
2
|
import { E as ok, d as validationError, g as err, i as kernelError, m as andThen } from "./errors-CTn8i3lY.js";
|
|
3
|
-
import { a as isPlanarFace } from "./validityTypes-
|
|
4
|
-
import { _ as cast, u as outerWire } from "./faceFns-
|
|
3
|
+
import { a as isPlanarFace } from "./validityTypes-Biiyb5lR.js";
|
|
4
|
+
import { _ as cast, u as outerWire } from "./faceFns-CwweiLRC.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-BHOADZSh.cjs");
|
|
3
|
+
const require_textMetrics = require("./textMetrics-DHWYuTUK.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-B_yfJn3S.js";
|
|
2
|
+
import { n as textMetrics, r as sketchText, t as fontMetrics } from "./textMetrics-C4I5t9jZ.js";
|
|
3
3
|
export { fontMetrics, getFont, loadFont, sketchText, textBlueprints, textMetrics };
|
|
@@ -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-CACpB7r3.cjs");
|
|
3
3
|
const require_bug = require("./bug-O02CsAmt.cjs");
|
|
4
4
|
const require_errors = require("./errors-DWezb9DI.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-CpupTCRM.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-CGXvMjno.cjs");
|
|
9
|
+
const require_solidBuilders = require("./solidBuilders-BdKU5bQ9.cjs");
|
|
10
|
+
const require_curveFns = require("./curveFns-BXGE1xHa.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-BaVNAtRf.cjs");
|
|
13
|
+
const require_blueprintSketcher = require("./blueprintSketcher-DobJgYX3.cjs");
|
|
14
|
+
const require_loftFns = require("./loftFns-B3aEz87L.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,16 +1,16 @@
|
|
|
1
|
-
import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { d as createSolid, h as disposeResultShape, l as createFace, m as disposeDowncastSource, n as castResultShape, p as createWire, q as getKernel, x as isShape3D } from "./shapeTypes-CEFHrXNb.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-CTn8i3lY.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-CkpMeheg.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-CwweiLRC.js";
|
|
8
|
+
import { o as makeSolid, p as cutAll, t as makeCompound } from "./solidBuilders-De11-Gp-.js";
|
|
9
|
+
import { l as curveStartPoint, u as curveTangentAt } from "./curveFns-D_xfC1HQ.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-QGhgel6X.js";
|
|
12
|
+
import { r as organiseBlueprints, t as BlueprintSketcher } from "./blueprintSketcher-CNbOLihr.js";
|
|
13
|
+
import { c as twistExtrude, r as complexExtrude, s as sweep, t as loft } from "./loftFns-CS0JYNr4.js";
|
|
14
14
|
import opentype from "opentype.js";
|
|
15
15
|
//#region src/operations/extrudeFns.ts
|
|
16
16
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { E as ok, d as validationError, g as err, t as BrepErrorCode } from "./errors-CTn8i3lY.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-B_yfJn3S.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-DWezb9DI.cjs");
|
|
2
|
-
const require_textBlueprints = require("./textBlueprints-
|
|
2
|
+
const require_textBlueprints = require("./textBlueprints-BHOADZSh.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 { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-
|
|
1
|
+
import { F as createKernelHandle, G as _usingCtx, N as DisposalScope, n as castResultShape, q as getKernel, x as isShape3D } from "./shapeTypes-CEFHrXNb.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-CTn8i3lY.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-CwweiLRC.js";
|
|
5
|
+
import { h as fuseAll } from "./solidBuilders-De11-Gp-.js";
|
|
6
|
+
import { E as wire, h as line } from "./primitiveFns-CfxGT0nf.js";
|
|
7
|
+
import { s as toBREP } from "./shapeFns-DTZ96dTc.js";
|
|
8
|
+
import { t as loft } from "./loftFns-CS0JYNr4.js";
|
|
9
|
+
import { c as resolveRefParams } from "./refResolveFns-BuS72b11.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-CACpB7r3.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.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-CGXvMjno.cjs");
|
|
5
|
+
const require_solidBuilders = require("./solidBuilders-BdKU5bQ9.cjs");
|
|
6
|
+
const require_primitiveFns = require("./primitiveFns-DSUL72Md.cjs");
|
|
7
|
+
const require_shapeFns = require("./shapeFns-BsuUPJR3.cjs");
|
|
8
|
+
const require_loftFns = require("./loftFns-B3aEz87L.cjs");
|
|
9
|
+
const require_refResolveFns = require("./refResolveFns-BleIGUVN.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-Cp390rTF.cjs");
|
|
3
|
+
const require_faceFns = require("./faceFns-CGXvMjno.cjs");
|
|
4
|
+
const require_solidBuilders = require("./solidBuilders-BdKU5bQ9.cjs");
|
|
5
|
+
const require_primitiveFns = require("./primitiveFns-DSUL72Md.cjs");
|
|
6
|
+
const require_shapeFns = require("./shapeFns-BsuUPJR3.cjs");
|
|
7
|
+
const require_curveFns = require("./curveFns-BXGE1xHa.cjs");
|
|
8
|
+
const require_meshFns = require("./meshFns-vO9xsIlB.cjs");
|
|
9
|
+
const require_healingFns = require("./healingFns-D8_IZ8LC.cjs");
|
|
10
|
+
const require_adjacencyFns = require("./adjacencyFns-C_ZNyZRx.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 clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-
|
|
8
|
-
import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } 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-CFfTw0pA.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-CwweiLRC.js";
|
|
3
|
+
import { h as fuseAll, p as cutAll } from "./solidBuilders-De11-Gp-.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-CfxGT0nf.js";
|
|
5
|
+
import { a as isSameShape, i as isEqualShape, n as getHashCode } from "./shapeFns-DTZ96dTc.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-D_xfC1HQ.js";
|
|
7
|
+
import { d as clearMeshCache, f as createMeshCache, n as exportSTEP, r as exportSTL, t as exportIGES } from "./meshFns-BI_fEj-T.js";
|
|
8
|
+
import { A as toBufferGeometryData, P as toLineGeometryData, S as chamferDistAngle, _ as checkBoolean, a as healFace, b as getNurbsCurveData, d as chamferWithEvolution, f as cutWithEvolution, g as shellWithEvolution, h as intersectWithEvolution, j as toGroupedBufferGeometryData, k as variableFillet, l as solidFromShell, m as fuseWithEvolution, n as fixSelfIntersection, o as healSolid, p as filletWithEvolution, r as fixShape, s as healWire, t as autoHeal, u as positionOnCurve, v as cutAllBisect, x as getNurbsSurfaceData, y as fuseAllBisect } from "./healingFns-DVH0JBpC.js";
|
|
9
|
+
import { i as facesOfEdge, l as wiresOfFace, n as adjacentFaces, o as sharedEdges, r as edgesOfFace, s as verticesOfEdge } from "./adjacencyFns-A1SikG3N.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 { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-
|
|
1
|
+
import { G as _usingCtx, N as DisposalScope, O as getOrQueryType, n as castResultShape, q as getKernel, r as castResultShapeWithKnownType } from "./shapeTypes-CEFHrXNb.js";
|
|
2
2
|
import { E as ok, g as err } from "./errors-CTn8i3lY.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-CACpB7r3.cjs");
|
|
2
2
|
const require_errors = require("./errors-DWezb9DI.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": "20.1.
|
|
3
|
+
"version": "20.1.4",
|
|
4
4
|
"description": "Web CAD library with pluggable geometry kernel",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cad",
|
|
@@ -265,31 +265,31 @@
|
|
|
265
265
|
"@emnapi/core": "1.11.3",
|
|
266
266
|
"@emnapi/runtime": "1.11.3",
|
|
267
267
|
"@eslint/js": "10.0.1",
|
|
268
|
-
"@size-limit/file": "
|
|
268
|
+
"@size-limit/file": "14.0.0",
|
|
269
269
|
"@types/opentype.js": "1.3.9",
|
|
270
270
|
"@types/react": "19.3.0",
|
|
271
271
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
272
|
-
"@vitest/coverage-v8": "5.0.
|
|
272
|
+
"@vitest/coverage-v8": "5.0.2",
|
|
273
273
|
"brepjs-opencascade": "*",
|
|
274
|
-
"brepkit-wasm": "3.
|
|
274
|
+
"brepkit-wasm": "3.6.0",
|
|
275
275
|
"eslint": "10.11.0",
|
|
276
276
|
"fast-check": "4.10.2",
|
|
277
277
|
"husky": "9.1.7",
|
|
278
278
|
"knip": "6.27.0",
|
|
279
|
-
"lint-staged": "17.
|
|
279
|
+
"lint-staged": "17.6.0",
|
|
280
280
|
"lz-string": "1.5.0",
|
|
281
281
|
"occt-wasm": "5.6.0",
|
|
282
|
-
"prettier": "3.9.
|
|
283
|
-
"puppeteer": "25.
|
|
284
|
-
"size-limit": "
|
|
282
|
+
"prettier": "3.9.9",
|
|
283
|
+
"puppeteer": "25.12.0",
|
|
284
|
+
"size-limit": "14.0.0",
|
|
285
285
|
"sucrase": "3.35.1",
|
|
286
286
|
"tsx": "4.23.15",
|
|
287
287
|
"typedoc": "0.28.20",
|
|
288
288
|
"typescript": "6.0.3",
|
|
289
|
-
"typescript-eslint": "8.70.
|
|
290
|
-
"vite": "8.3.
|
|
289
|
+
"typescript-eslint": "8.70.1",
|
|
290
|
+
"vite": "8.3.1",
|
|
291
291
|
"vite-plugin-dts": "5.1.1",
|
|
292
|
-
"vitest": "5.0.
|
|
292
|
+
"vitest": "5.0.2"
|
|
293
293
|
},
|
|
294
294
|
"peerDependencies": {
|
|
295
295
|
"brepjs-manifold": "^0.1.0",
|