Browse Source

解决线上问题

master
hesuicong 1 month ago
parent
commit
f9e7f3f18b
  1. 9
      libs/MVS/SceneTexture.cpp

9
libs/MVS/SceneTexture.cpp

@ -1115,16 +1115,17 @@ bool MeshTexture::ListCameraFaces(FaceDataViewArr& facesDatas, float fOutlierThr @@ -1115,16 +1115,17 @@ bool MeshTexture::ListCameraFaces(FaceDataViewArr& facesDatas, float fOutlierThr
skipVisibilityCheck = true;
}
if (skipVisibilityCheck || scene.is_face_visible(strName.c_str(), idxFace))
if (scene.is_face_visible(strName.c_str(), idxFace))
// if (skipVisibilityCheck || scene.is_face_visible(strName.c_str(), idxFace))
{
rasterer.Project(facet, triangleRasterizer);
if (!rasterer.validFace)
rasterer.Project(facet, triangleRasterizer);
// 如果投影成功,增加面片覆盖率计数
if (rasterer.validFace) {
faceViewCount[idxFace]++;
}
// if (rasterer.validFace) {
// faceViewCount[idxFace]++;
// }
}
}

Loading…
Cancel
Save