vtkThresholdPoints ThresholdByLower,Upper,Between
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
ThresholdByLower, ThresholdByUpper and ThresholdBetween have only partial test to figure out if some modification is required.
It should also test if the function pointer match For instance, in ThresholdByLower, there should be:
if((this->ThresholdFunction!=&vtkThresholdPoints::Lower)||(this->LowerThreshold!=lower)) { ... }
Otherwise the following scenario should fail:
vtkThresholdPoints *t=vtkThreholdPoints::New(); // the function is Upper, lower value is 0, upper // value is 1
t->ThresholdByLower(0.5); // the function is changed to Lower t->ThresholdByUpper(1.0); // the function is still Lower because the upper did not changed!