#
luxiaotao1123
2022-06-28 092e566b1c5f076d598f4ceac80956a6adbb8a2e
static/js/object/StoreShelf.js
@@ -13,6 +13,7 @@
    this.positionZ = option.position.z||0;//库位位置
    this.rackLengh = 3;//支架的长度,默认设动为3
    this.rackWidth = 3;//支架的宽度,默认设定为3
    this.mesh = null;
    // 材质
    let shelfMat = new THREE.MeshPhysicalMaterial({
@@ -92,9 +93,10 @@
    }
    let mergedGeometry = BufferGeometryUtils.mergeBufferGeometries(geometries);
    var mesh = new THREE.Mesh(mergedGeometry, shelfMat);
    let mesh = new THREE.Mesh(mergedGeometry, shelfMat);
    mesh.castShadow = true;
    return mesh;
    this.mesh = mesh;
    return this;
}
export {StoreShelf}