|  |  |  | 
|---|
|  |  |  | this.positionZ = option.position.z||0;//库位位置 | 
|---|
|  |  |  | this.rackLengh = 3;//支架的长度,默认设动为3 | 
|---|
|  |  |  | this.rackWidth = 3;//支架的宽度,默认设定为3 | 
|---|
|  |  |  | this.mesh = null; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 材质 | 
|---|
|  |  |  | let shelfMat = new THREE.MeshLambertMaterial({ | 
|---|
|  |  |  | let shelfMat = new THREE.MeshPhysicalMaterial({ | 
|---|
|  |  |  | color: 0x175EC0, | 
|---|
|  |  |  | transparent: true, | 
|---|
|  |  |  | opacity: 0.6 | 
|---|
|  |  |  | transparent: false, | 
|---|
|  |  |  | opacity: 0.7 | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | //定义一个组合体 | 
|---|
|  |  |  | let group = new THREE.Group(); | 
|---|
|  |  |  | // let group = new THREE.Group(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 货架总高 | 
|---|
|  |  |  | let shelfHeight=this.bottomHight+(this.binYNum)*this.binHeight; | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | let mergedGeometry = BufferGeometryUtils.mergeBufferGeometries(geometries); | 
|---|
|  |  |  | return  new THREE.Mesh(mergedGeometry, shelfMat); | 
|---|
|  |  |  | let mesh = new THREE.Mesh(mergedGeometry, shelfMat); | 
|---|
|  |  |  | mesh.castShadow = true; | 
|---|
|  |  |  | this.mesh = mesh; | 
|---|
|  |  |  | return this; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | export {StoreShelf} | 
|---|