BandedContours - Maximum clip value is not set correctly.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I am assuming that the last clip value should be the larger of the RH scalar range or contour range. If this is the case, the less than should be replaced by a greater than.
Also, the index of the last contour value is after the end of the contour list. The last contour value is at GetNumberOfContours() - 1 = (NumberOfClipValues-2) - 1.
vtkBandedPolyDataContourFilter.cxx, Revision: 1.42
At about line 239
Replace
this->ClipValues[this->NumberOfClipValues - 1] =
(range[1]<this->ContourValues->GetValue(this->NumberOfClipValues-2))? (range[1]): (this->ContourValues->GetValue(this->NumberOfClipValues-2)); By
this->ClipValues[this->NumberOfClipValues - 1] =
(range[1]>this->ContourValues->GetValue(this->NumberOfClipValues-2-1))? (range[1]): (this->ContourValues->GetValue(this->NumberOfClipValues-2-1));