[vtkusers] Bug in vtkPolyData

Johnny Norris jnorris at mcs.anl.gov
Thu Sep 13 16:49:36 EDT 2001


Hi,

vtkPolyData::GetCellPoints(vtkIdType cellId, vtkIdList* ptIds) will crash if
the cell referenced by cellId is of type VTK_EMPTY_CELL.

lines 1054-1055 of vtkPolyData.cxx:

  this->vtkPolyData::GetCellPoints(cellId, npts, pts);
  ptIds->InsertId (npts-1,pts[npts-1]);
                              ^^^^^^
npts will be zero if the cell is an empty cell.

John
-- 
John Norris
Research Programmer
Center for Simulation of Advanced Rockets
http://www.uiuc.edu/ph/www/jnorris



More information about the vtkusers mailing list