This commit is contained in:
2026-05-16 17:40:39 +08:00
parent dd0ae155e4
commit c018649eb4
29 changed files with 13 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 475 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 550 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 363 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 676 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 718 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 730 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 729 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 944 KiB

View File

@ -509,14 +509,14 @@
if (result.code === 200) {
console.log(result.data);
sku = currentText;
await initPlacementZoneConfig();
await initPlacementZoneConfig();
const { enable_placement_zone, wall_divisions } = result.data;
// const {position_x, position_y, position_z} = data;
if (enable_placement_zone && wall_divisions != undefined) {
console.log(wall_divisions);
// await placementWall(wall_divisions);
// await placementWall(wall_divisions);
}
}
@ -799,13 +799,13 @@
});
// 初始化放置区域配置数据(只需设置一次)
const initPlacementZoneConfig = (divisions=1) => {
const initPlacementZoneConfig = (divisions=3) => {
// 只清除旧的放置区域网格,不清除模型
kernel.dropZone.clearZones();
// 调整 baseY 来控制整体高度(正数向上,负数向下)
const baseY = 0.09; // 修改这个值来调整整体高度
const height = 2.27;
const height = 2.2;
// 调整 offset 来控制每个面向外或向内的偏移
// 正数 = 向外移动,负数 = 向内移动
const wallOffset = 0; // 修改这个值来调整墙面偏移
@ -820,32 +820,33 @@
walls: [
{
name: 'front',
startPoint: [-1.85, baseY, -1.45],
endPoint: [1.85, baseY, -1.45],
startPoint: [-1.73, baseY, -1.45],
endPoint: [1.73, baseY, -1.45],
height: height,
divisions: divisions,
offset: wallOffset // 向外或向内偏移
},
{
name: 'back',
startPoint: [1.85, baseY, 1.45],
endPoint: [-1.85, baseY, 1.45],
startPoint: [1.37, baseY, 1.45],
endPoint: [-1.37, baseY, 1.45],
height: height,
divisions: divisions,
offset: wallOffset
},
{
name: 'left',
startPoint: [-2.9, baseY, 1.45],
endPoint: [-2.9, baseY, -1.45],
startPoint: [-1.75, baseY, 1.45],
endPoint: [-1.75, baseY, -1.45],
height: height,
divisions: divisions,
offset: wallOffset
},
{
name: 'right',
startPoint: [2.9, baseY, -1.45],
endPoint: [2.9, baseY, 1.45],
startPoint: [1.75, baseY, -1.45],
endPoint: [1.75, baseY, 1.45],
height: height,
divisions: divisions,
offset: wallOffset

Binary file not shown.

Before

Width:  |  Height:  |  Size: 702 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB