vtkBandedPolyDataContourFilter -> ClipTolerance is not able to be modified.
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Hi,
I am Guillermo from Synopsys and we use VTK for a visualization product. Doing refactoring work we are trying to be as close as possible to vanilla VTK so it makes the life easier for us when updating the library. Unfortunately the ClipTolerance is hardcoded to the overall input scalar range on this sentence:
this->ClipTolerance = FLT_EPSILON*(range[1] - range[0]);
We use the smallest difference between two contour levels to set the tolerance, after the calculation of the clip values:
for(int i=0; iNumberOfClipValues-1; i++) { double dist = this->ClipValues[i+1] - this->ClipValues[i]; if(dist < this->ClipTolerance) { this->ClipTolerance = dist; } }
Is there a way to have an option to select the clip tolerance for future versions of VTK? Or a built in way to change from the default method availble now to other? It would help us a lot.
Thanks, Guillermo.