2026-05-07-17-05-43 增加3D实体显示档位

This commit is contained in:
2026-05-07 17:09:18 +08:00
parent bbc7d215e9
commit 97f5c78907
6 changed files with 188 additions and 8 deletions

View File

@@ -701,7 +701,7 @@ function createStlPreview(filePath: string, fileName: string, limit: number) {
throw new Error('当前仅支持二进制 STL 预览');
}
const sampleLimit = Math.max(100, Math.min(limit, 72000));
const sampleLimit = Math.max(100, Math.min(limit, 200000));
const step = Math.max(1, Math.ceil(triangleCount / sampleLimit));
const vertices: number[] = [];
let sampledTriangles = 0;