vtkPolyData.cxx reports an Error for EmptyCell
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
On line 1362 of vtkPolyData.cxx a vtkErrorMacro is reported if cell type == 0, i.e vtkEmptyCell.
Yet, that is not an error. It is a feature of the vtkHierarchicalBoxDataSet to return vtkEmptyCell in places where adaptive meshes overlap each other. I have implemented a Surface Display class for 2D AMR which uses vtkGeometryFilter for its vtkCompositeDataVisitor. vtkGeometryFilter correctly sents out vtkEmptyCell to vtkPolyData (many of them for large AMR data) and the error messages (many of them) are a big pain.
I suggest to add a case statement
case VTK_EMPTY_CELL:
id = -1;
// do nothing
break;
}