An update will be applied December 9th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 7943ebf0 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

ERR: Array bounds exceeded in DecomposeStrips.

parent ef348515
......@@ -285,9 +285,9 @@ void vtkTriangleStrip::DecomposeStrips(vtkCellArray *strips, vtkCellArray *polys
{
p1 = pts[0];
p2 = pts[1];
p3 = pts[2];
for (i=0; i<(npts-2); i++)
{
p3 = pts[i+2];
polys->InsertNextCell(3);
if ( (i % 2) ) // flip ordering to preserve consistency
{
......@@ -303,7 +303,6 @@ void vtkTriangleStrip::DecomposeStrips(vtkCellArray *strips, vtkCellArray *polys
}
p1 = p2;
p2 = p3;
p3 = pts[3+i];
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment