vtkBandedPolyDataContourFilter::RequestData enters infinite loop for specific dataset
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Reference issue on mayavi: https://github.com/enthought/mayavi/issues/67
The problem is that the following data
[-2.0, 4.7, 4.1] [ 23.9, 27.4, nan] [ 28.2, 26.6, nan]
produce an infinite loop in the following part of the BandedPolyDataContourFilter
for ( mR=idx, intersectionPoint=0; !intersectionPoint; ) { numPointsToAdd++; mR = (mR + 1) % numFullPts; if ( isContourValue[mR] && s[mR] != s[idx] ) intersectionPoint = 1; }
Both the negative value and the nans are necessary to trigger the infinite loop.
Present also in vtk 7.1