mirror of
https://github.com/CNCKitchen/stlTexturizer.git
synced 2026-04-07 22:11:32 +00:00
feat: increase triangle safety cap to 20M and enhance progress reporting during subdivision
This commit is contained in:
+6
-1
@@ -1701,7 +1701,12 @@ async function handleExport() {
|
||||
|
||||
const { geometry: subdivided, safetyCapHit } = await subdivide(
|
||||
currentGeometry, settings.refineLength,
|
||||
(p) => setProgress(0.02 + p * 0.35, t('progress.subdividing')),
|
||||
(p, triCount, longestEdge) => {
|
||||
const label = triCount != null
|
||||
? t('progress.refining', { cur: triCount.toLocaleString(), edge: longestEdge.toFixed(2) })
|
||||
: t('progress.subdividing');
|
||||
setProgress(0.02 + p * 0.35, label);
|
||||
},
|
||||
faceWeights
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user