xzw hace 1 año
padre
commit
d76c886d39
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      service/PanoBoxFrame.js

+ 4 - 3
service/PanoBoxFrame.js

@@ -16,6 +16,7 @@ const convertTool = {
 
 //----------------------复制以下内容--------------------------------- 
 
+ 
 let player,
     skyBoxTight,
     meshGroup,
@@ -307,7 +308,7 @@ class Box {
                 let k = this.infos.reduce((w,c)=>{return w+c.k},0)
                 xProp = k>1 ? 'width' : 'thick' 
             }else{ //直接使用别的多box的row的方向 ,大多数都相同(会有例外,无所谓了)
-                let rows = boxesSolid.filter(e=>e.boxType == 'cabinet' && e.name.includes('row'))
+                let rows = boxesSolid.filter(e=>e.boxType == 'cabinet' && e.name.includes('row') && e.dirQua)
                 rows.sort((a,b)=>b.infos.box.length - a.infos.box.length) 
                 let box = rows[0] 
                 if(box){
@@ -3450,7 +3451,7 @@ export default class PanoBoxFrame extends THREE.Group {
                 const minScore = -500 * minScorePercent //调试 3MnIWabM6ne Tmo1vLp9Q13
                 let a = getPoseScore(info.boxposes, box.boxType /* true */)
                 if (!standards[box.boxType].bottom && box.btmPos) {
-                    a -= (box.btmPos.y - groundY) * 3000 //底部被遮住一部分
+                    a -= (box.btmPos.y - groundY) * 3000 //底部被遮住一部分(但是像vHC1GfkdKtD在户外,容易底部变高到bound外去怎么办)
                 }
                 let failed = a < minScore
 
@@ -4069,4 +4070,4 @@ export default class PanoBoxFrame extends THREE.Group {
     
     
     
-}
+}