fix: parameters

This commit is contained in:
2026-03-16 09:39:43 +08:00
parent cde2134b4b
commit 342cf97a50
4 changed files with 4 additions and 13 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export async function traceImage(
// 默认配置 - 使用 detailed preset 作为基础
const defaultOptions: Partial<Options> = {
...Options.Presets.curvy,
...Options.Presets.default,
numberOfColors: 8, // 限制颜色数量以控制图层数
minColorQuota: 0.01, // 降低最小颜色占比阈值
strokeWidth: 0, // 不需要描边
+1 -1
View File
@@ -49,7 +49,7 @@ export async function generateSTL(
// 创建挤压几何体 - Three.js 支持直接传入 shape 数组
const extrudeSettings: THREE.ExtrudeGeometryOptions = {
depth: layerSetting.thickness,
curveSegments: 36,
curveSegments: 12,
bevelEnabled: false,
};