2026-05-04-05-41-22 增强3D实体预览和位姿控制

This commit is contained in:
2026-05-04 05:50:06 +08:00
parent 4922c2d991
commit 1cc750b7e4
7 changed files with 444 additions and 24 deletions

View File

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