BUG: wrong sizing index for VTK legacy polyhedrals (closes #829)

This commit is contained in:
Mark Olesen
2018-05-16 15:57:49 +01:00
parent c18a2a6370
commit 1844ce5ab2

View File

@ -574,7 +574,8 @@ void Foam::vtk::vtuSizing::populateArrays
if (output == contentType::LEGACY)
{
// Update size for legacy face stream
faceOutput[startLabel] = (faceIndexer - startLabel);
// (subtract 1 to avoid counting the storage location)
faceOutput[startLabel] = (faceIndexer - 1 - startLabel);
}
else
{