|
@@ -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++) {
|