| | |
| | | this.initLight(); |
| | | this.initFloor(); |
| | | this.initModel(); |
| | | this.queryTask(); |
| | | this.initStoreObjects(this); |
| | | } |
| | | this.animate = function () { |
| | |
| | | this.stats.begin(); |
| | | this.renderer.render(this.scene, this.camera); |
| | | this.stats.end(); |
| | | this.modelMove(); |
| | | this.queryTask(); |
| | | // this.modelMove(); |
| | | } |
| | | this.initScene = function () { |
| | | this.scene = new THREE.Scene(); |
| | |
| | | } |
| | | } |
| | | this.queryTask = function () { |
| | | if (this.firstTime === 1) { |
| | | queryTaskCurrent(); |
| | | this.wrkTasks = TaskData; |
| | | if (TaskDatas !== null) { |
| | | for (let TaskData of TaskDatas) { |
| | | let wrkTask = getArrVal(this.wrkTasks, "wrkNo", TaskData.wrkNo); |
| | | if (null == wrkTask) { |
| | | this.wrkTasks.push(TaskData); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | this.getExistedGoodType=function(state){ |
| | |
| | | }); |
| | | } |
| | | this.initModelMove = function () { |
| | | console.log(this.wrkTasks) |
| | | for (var wrkMast of this.wrkTasks) { |
| | | let crnBody = getArrVal(this.objects, "name", wrkMast.crnNo + "-body"); |
| | | console.log(crnBody) |
| | | // 取货点定位 |
| | | let sourceLocPosition = getBinPosition(wrkMast.sourceLocNo); |
| | | let points = [crnBody.position, sourceLocPosition]; |
| | |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | }; |
| | | |