vtkUnstructuredGridGeometryFilter does not handle VTK_CUBIC_LINE, may cause crash in vtkDataSetSurfaceFilter
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The if-statement at line 988 of vtkUnstructuredGridGeometryFilter should include cells of type VTK_CUBIC_LINE but it doesn't. As a result these cells are dealt with in the else-branch of the if-statement. There the cell-type switch at line 1042 does not include a default case that issues a vtkError when an unexpected cell type is encountered, so the cells are not handled at all.
When the vtkUnstructuredGrid consists only of these cells as in my case, the resulting vtkUnstructuredGrid is empty. This in turn causes a crash in vtkDataSetSurfaceFilter which uses vtkUnstructuredGridGeometryFilter at line 1279. The crash occurs at line 1815 because the quad hash has not been populated as expected.
I think the solution in vtkUnstructuredGridGeometryFilter would be to test for the cell dimension rather than for specific cell types. Also including a default statement in the switch helps to identify missing cells.