| | |
| | | initStore(); |
| | | if (Store3DData !== null) { |
| | | for(var group of Store3DData.data.store.groups) { |
| | | let crn = new StoreCrn(group.crn, object); |
| | | new StoreCrn(group.crn, object); |
| | | for (var line of group.lines) { |
| | | let shelf = new StoreShelf(line); |
| | | object.addObject(shelf); |
| | |
| | | ]) |
| | | }) |
| | | } |
| | | |
| | | curves.map((value, index) => { |
| | | console.log(value.part + " --> " + JSON.stringify(value.route.points)) |
| | | }); |
| | | |
| | | curves[0].start = true; |
| | | |
| | | console.log(curves); |
| | | |
| | | // new Route(); // load |
| | | // console.log(that.curve); |
| | | // console.log("pre" + JSON.stringify(that.prePosition)); |
| | | // console.log(JSON.stringify(that.position)); |
| | | |
| | | } |
| | | } |
| | |
| | | } |
| | | } else { |
| | | let point = curves[i].route.getPoint(curves[i].progress); |
| | | console.log(point) |
| | | if ( point && point.x ) { |
| | | switch (curves[i].part) { |
| | | case 'body': |
| | |
| | | this.crnLoadLength = option.crnLoad.length||60;//库位长度 |
| | | this.crnLoadWidth = option.crnLoad.width||60;//库位宽 |
| | | this.crnLoadHeight = option.crnLoad.height||40;//库位高 |
| | | this.crnForkLength = option.crnFork.length||80;//库位长度 |
| | | this.crnForkLength = option.crnFork.length||50;//库位长度 |
| | | this.crnForkWidth = option.crnFork.width||20;//库位宽 |
| | | this.crnForkHeight = option.crnFork.height||30;//库位高 |
| | | |
| | |
| | | this.rackWidth = 3;//支架的宽度,默认设定为3 |
| | | |
| | | // 材质 |
| | | let shelfMat = new THREE.MeshLambertMaterial({color:0x175EC0});//定义支架和托盘的材质 |
| | | let shelfMat = new THREE.MeshLambertMaterial({ |
| | | color: 0x175EC0, |
| | | transparent: true, |
| | | opacity: .2 |
| | | });//定义支架和托盘的材质 |
| | | //定义一个组合体 |
| | | let group = new THREE.Group(); |
| | | |