1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0032269: Visualization - update trinfo command with -lods option

This commit is contained in:
osa 2021-03-30 15:49:57 +03:00 committed by bugmaster
parent 20085dac44
commit cb766858b7

View File

@ -734,19 +734,30 @@ static Standard_Integer trianglesinfo (Draw_Interpretor& theDI, Standard_Integer
aDynTypeCounter = &aStats->TypeMap.ChangeFromIndex (aNewIndex);
}
(*aDynTypeCounter)++;
aStats->NbTriangles += aLOD->NbTriangles();
if (aLOD->HasDeferredData())
{
aStats->NbDeferredFaces++;
if (!aLOD->HasGeometry())
if (aLOD->HasGeometry())
{
aStats->NbTriangles += aLOD->NbTriangles();
}
else
{
aStats->NbUnloadedFaces++;
aStats->NbTriangles += aLOD->NbDeferredTriangles();
aStats->NbUnloadedTriangles += aLOD->NbDeferredTriangles();
}
}
else if (!aLOD->HasGeometry())
else
{
aStats->NbEmptyFaces++;
if (aLOD->HasGeometry())
{
aStats->NbTriangles += aLOD->NbTriangles();
}
else
{
aStats->NbEmptyFaces++;
}
}
}
}