| | |
| | | this.firstTime = 1; |
| | | this.stats = null; |
| | | this.goodTypes=[];//存储所有的库位类型 |
| | | this.wrkNo = 0; |
| | | this.wrkTasks = [];// 任务列表 |
| | | |
| | | this.start = function () { |
| | | this.initMain(); |
| | |
| | | this.initLight(); |
| | | this.initFloor(); |
| | | this.initModel(); |
| | | this.initModel0(); |
| | | this.queryTask(); |
| | | this.initStoreObjects(this); |
| | | } |
| | | this.animate = function () { |
| | |
| | | this.stats.begin(); |
| | | this.renderer.render(this.scene, this.camera); |
| | | this.stats.end(); |
| | | this.modelMove(); |
| | | // this.modelMove(); |
| | | } |
| | | this.initScene = function () { |
| | | this.scene = new THREE.Scene(); |
| | |
| | | // |
| | | // } |
| | | // } |
| | | this.firstTime = 0; |
| | | // this.firstTime = 0; |
| | | } |
| | | } |
| | | } |
| | | this.initModel0 = function () { |
| | | |
| | | this.queryTask = function () { |
| | | if (this.firstTime === 1) { |
| | | queryTaskCurrent(); |
| | | this.wrkTasks = TaskData; |
| | | } |
| | | } |
| | | this.getExistedGoodType=function(state){ |
| | | for (let i=0;i<this.goodTypes.length;i++) { |
| | |
| | | }); |
| | | } |
| | | this.modelMove = function () { |
| | | for (var wrkMast of this.wrkTasks) { |
| | | console.log(wrkMast) |
| | | let crnBody = getArrVal(this.objects, "name", wrkMast.crnNo + "-body"); |
| | | |
| | | console.log(crnBody.position); |
| | | } |
| | | } |
| | | }, |
| | | |