vtkCellCenters VTK_EMPTY_CELL incorrect implementation
vtkCellCenters has a specific implementation for VTK_EMPTY_CELL.
It is buggy and let data uninitialized, while not copying cell data to point data when it could.
cell = input->GetCell(cellId);
if (cell->GetCellType() != VTK_EMPTY_CELL)
{
subId = cell->GetParametricCenter(pcoords);
cell->EvaluateLocation(subId, pcoords, x, weights);
newPts->SetPoint(cellId,x);
}
else
{
hasEmptyCells = 1;
}
}
Edited by Mathieu Westphal (Kitware)