import {MTLLoader} from "../lib/MTLLoader.js"; import {OBJLoader} from "../lib/OBJLoader.js"; import * as THREE from '../three.module.js'; function StoreGoods(object, data, shelf) { let that = this; that.data = data; that.object = object; that.shelf = shelf; let palletList = []; let goodsList = []; for (let i=0;i { var clone = obj.clone(); let positionX = that.shelf.positionX || 0; let positionY = that.shelf.positionY || 0; let positionZ = that.shelf.positionZ || 0; clone.position.x = -18 + positionX; clone.position.y = 22 + positionY; clone.position.z = -46 + positionZ; that.object.addObject(clone); }) }, null, null ); }); } export {StoreGoods}