fix: parameters
This commit is contained in:
@@ -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, // 不需要描边
|
||||
|
||||
@@ -49,7 +49,7 @@ export async function generateSTL(
|
||||
// 创建挤压几何体 - Three.js 支持直接传入 shape 数组
|
||||
const extrudeSettings: THREE.ExtrudeGeometryOptions = {
|
||||
depth: layerSetting.thickness,
|
||||
curveSegments: 36,
|
||||
curveSegments: 12,
|
||||
bevelEnabled: false,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user