| | |
| | | function StoreShelf0(option) { |
| | | this.binLength = option.BinLength||50;//库位长度 |
| | | this.binWidth = option.BinWidth||50;//库位宽 |
| | | this.binHeight = option.BinHeight||50;//库位高 |
| | | this.binXNum = option.BinXNum||1;//库位X轴方向库位数量 |
| | | this.binZNum = option.BinZNum||10;//库位Z轴方向库位数量 |
| | | this.binYNum = option.BinYNum||10;//库位Y轴库位数量 |
| | | this.bottomHight = option.BottomHeight||20;//底层高度,底层 |
| | | this.positionX = option.Position.X||0;//库位位置 |
| | | this.positionY = option.Position.Y||0;//库位位置 |
| | | this.positionZ = option.Position.Z||0;//库位位置 |
| | | this.binLength = option.binLength||50;//库位长度 |
| | | this.binWidth = option.binWidth||50;//库位宽 |
| | | this.binHeight = option.binHeight||50;//库位高 |
| | | this.binXNum = option.binXNum||1;//库位X轴方向库位数量 |
| | | this.binZNum = option.binZNum||10;//库位Z轴方向库位数量 |
| | | this.binYNum = option.binYNum||10;//库位Y轴库位数量 |
| | | this.bottomHight = option.bottomHeight||20;//底层高度,底层 |
| | | this.positionX = option.position.x||0;//库位位置 |
| | | this.positionY = option.position.y||0;//库位位置 |
| | | this.positionZ = option.position.z||0;//库位位置 |
| | | this.rackLengh = 3;//支架的长度,默认设动为3 |
| | | this.rackWidth = 3;//支架的宽度,默认设定为3 |
| | | |
| | | // 材质 |
| | | let shelfMat = new THREE.MeshPhysicalMaterial({ |
| | | color:0xfc8c00, |
| | | metalness: 1.0, |
| | | roughness: 0.6, |
| | | }) |
| | | |
| | | let shelfMat = new THREE.MeshLambertMaterial({color:0x175EC0});//定义支架和托盘的材质 |
| | | //定义一个组合体 |
| | | let group = new THREE.Group(); |
| | | |