| | |
| | | this.stats.end(); |
| | | // this.queryTask(); |
| | | this.queryCrn(); |
| | | this.modelMove(); |
| | | // this.modelMove(); |
| | | this.crnMove(); |
| | | } |
| | | this.initScene = function () { |
| | | this.scene = new THREE.Scene(); |
| | |
| | | for (let crnData of CrnDatas) { |
| | | let crnTask = getArrVal(this.crnTasks, "crnNo", crnData.crnNo); |
| | | if (null == crnTask) { |
| | | this.crnTasks.push(new CrnTask(crnData)); |
| | | this.crnTasks.push(new CrnTask(crnData, this)); |
| | | } else { |
| | | if(!crnTask.run) { |
| | | crnTask.modify(crnData); |
| | |
| | | } |
| | | } |
| | | } |
| | | this.crnMove = function (object) { |
| | | for (let crnTask of this.crnTasks) { |
| | | crnTask.move(this); |
| | | } |
| | | } |
| | | }, |
| | | |
| | | }; |