xzw 1 year ago
parent
commit
83ea8f13df
1 changed files with 1 additions and 6 deletions
  1. 1 6
      service/PanoBoxFrame.js

+ 1 - 6
service/PanoBoxFrame.js

@@ -2959,12 +2959,7 @@ async compute(dataList) {
             {//KJ-iUrPonbhCQo 大的场景有很多柜子时,groups的前两个元素很可能相隔很远,导致匹配不到柜子。 
             
             
-                let disScores = [], bestDisSquared = 2
-                for (let i = 0; i < groups.length - 1; i++) {
-                    let dis = groups[i][0].pano.position.distanceToSquared(groups[i+1][0].pano.position)
-                    let score = 1/Math.max(dis - bestDisSquared, 0.05) + (groups[i].length + groups[i+1].length)
-                    disScores.push()
-                }
+                 
                 
             
                 for (let i = 0; i < groups.length - 1; i++) {