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