vtkRibbonFilter can cause subsequent filters to crash
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
This problem was reported by Christopher Bruns in [vtkusers], along with a C++ program to reproduce the crash: http://public.kitware.com/pipermail/vtkusers/2006-June/085755.html
There is a typo in vtkRibbonFilter.cxx, which leads to some bad results copying point and cell data. The following patch seems to correct this:
----BEGIN---- diff -u -r1.80 vtkRibbonFilter.cxx --- Graphics/vtkRibbonFilter.cxx 21 Apr 2005 13:42:16 -0000 1.80 +++ Graphics/vtkRibbonFilter.cxx 24 Jun 2006 04:21:38 -0000 @@ -176,7 +176,7 @@ // numNewCells = inLines->GetNumberOfCells(); outCD->CopyNormalsOff();
// Create points along each polyline that are connected into NumberOfSides // triangle strips. Texture coordinates are optionally generated. ----END----