#
luxiaotao1123
2022-06-30 18bd54d17c3d09e48b14fcb0cc0fc74758a920b2
static/js/object/StoreGoods.js
@@ -1,14 +1,12 @@
import {MTLLoader} from "../lib/MTLLoader.js";
import {OBJLoader} from "../lib/OBJLoader.js";
import * as THREE from '../three.module.js';
import * as BufferGeometryUtils from '../utils/BufferGeometryUtils.js';
const palletX = -2;
const palletY = 23 - 20 - 3;
const palletY = 0;
const palletZ = -25;
const goodsX = -2;
const goodsY = 40 - 18;
const goodsY = 22;
const goodsZ = -25;
/**
@@ -63,11 +61,6 @@
                positionZ = (item.bay1-1)*-ref.binHeight || 0;
                clone.name = item.loc_no + "-" + "Pallet";
                clone.traverse (function (child) {
                    if (child instanceof THREE.Mesh) {
                        child.name = item.loc_no + "-" + child.name;
                    }
                })
                break;
            case 2:
                positionX = ref.position.x || 0;
@@ -79,11 +72,6 @@
                positionZ -= 138 + 20;
                clone.name = item.wrkNo + "-" + "Pallet";
                clone.traverse (function (child) {
                    if (child instanceof THREE.Mesh) {
                        child.name = item.wrkNo + "-" + child.name;
                    }
                })
                break;
            default:
                console.error("InitPallet param[type] error ===>> " + type);
@@ -124,11 +112,6 @@
                positionZ = (item.bay1-1)*-ref.binHeight || 0;
                clone.name = item.loc_no + "-" + "Goods";
                clone.traverse (function (child) {
                    if (child instanceof THREE.Mesh) {
                        child.name = item.loc_no + "-" + child.name;
                    }
                })
                break;
            case 2:
                positionX = ref.position.x || 0;
@@ -140,11 +123,6 @@
                positionZ -= 138 + 20;
                clone.name = item.wrkNo + "-" + "Goods";
                clone.traverse (function (child) {
                    if (child instanceof THREE.Mesh) {
                        child.name = item.wrkNo + "-" + child.name;
                    }
                })
                break;
            default:
                console.error("InitGoods param[type] error ===>> " + type);