浏览代码

Update 'src/app/core/parser/parser-orchestrator.js'

Fixed error that was breaking the (reading of) GEO file with circumference intersection:
   parser-orchestrator.js!orchestrate(): error TypeError: this.list[i] is undefined
+ orchestrate (vec_dynamic_obj): changed line: aux3 += "listID[" + i + "]=" + id + "=" + this.list[i].id + "?; ";
    now, with: aux3 += "listID[" + i + "]=" + id; //DEBUG: see array listID[i]
leo 5 月之前
父节点
当前提交
bb88b5645f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/app/core/parser/parser-orchestrator.js

+ 1 - 1
src/app/core/parser/parser-orchestrator.js

@@ -56,7 +56,7 @@ export class ParserOrchestrator {
         result = this.do(id, this.mapArr[i], vec_dynamic_obj); // create the GeometricObject, build this.list[]
         // parser-orchestrator.js: orchestrate(): #this.mapArr[]=6, listID[]=listID[0]=1; listID[1]=2; listID[2]=3;, with ii=1, 3, 5 
         listID[i] = id; // Security: PointIntersection ("intersection-model.js") usually create ID=1 when use "og1.getIntersection(og2);", bellow "do(id, map, vecOD)" must fix it - if it also fail...
-        aux3 += "listID[" + i + "]=" + id + "=" + this.list[i].id + "?; ";
+        aux3 += "listID[" + i + "]=" + id; //DEBUG: see array listID[i]
         ii++;
 
         if (result==-1) console.log("parser-orchestrator.js: orchestrate(): error 1: i=" + i + ", ii=" + ii + ", this.mapArr["+i+"]=" + ParserOrchestrator.printMap_po(this.mapArr[i]));