vtkCutter can't handle VTK_EMPTY_CELLs
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
vtkCutter fails on a vtkUnstructuredGrid containing one or more vtkEmptyCells, since it assumes that each cell has at least one point. In vtkCutter.cxx, lines 740-746:
numCellPts = cellArrayPtr[cellArrayIt]; cellArrayIt++;
//find min and max values in scalar data range[0] = scalarArrayPtr[cellArrayPtr[cellArrayIt]]; range[1] = scalarArrayPtr[cellArrayPtr[cellArrayIt]]; cellArrayIt++;
After cellArrayIt is advanced the first time (line 740), the code should check to make sure numCellPts is greater than 0.