This commit is contained in:
2026-05-16 14:18:06 +08:00
parent b41c3e80bf
commit 25c193b35a
4 changed files with 75 additions and 66 deletions

View File

@ -32,8 +32,16 @@ const data = await response.json()
const models = data.data // 这就是模型列表
models.forEach(model => {
console.log(model);
// kernel.dropZone.setData(model.placement_zone);
const { alpha, border_color, color, show_border, thickness, walls } = model.placement_zone
kernel.dropZone.setData({
color: color,
alpha: +alpha,
thickness: thickness,
showBorder: !show_border,
borderColor: border_color,
walls: walls
});
kernel.model.add({
modelId: model.id,
modelUrl: model.file_url,