MantisBT - VTK
View Issue Details
0013436VTK(No Category)public2012-09-06 15:202014-10-06 14:16
Guillermo 
Will Schroeder 
normalminorhave not tried
closedfixed 
5.8.0 
 
Kitware
feature
0013436: vtkBandedPolyDataContourFilter -> ClipTolerance is not able to be modified.
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; i<this->NumberOfClipValues-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.
No tags attached.
Issue History
2012-09-06 15:20GuillermoNew Issue
2013-06-25 11:18Dave DeMarleNote Added: 0031042
2014-01-01 13:20Will SchroederNote Added: 0032103
2014-01-01 13:20Will SchroederAssigned To => Will Schroeder
2014-01-01 13:20Will SchroederStatusbacklog => active development
2014-01-08 06:33Will SchroederStatusactive development => gerrit review
2014-10-06 14:16Will SchroederStatusgerrit review => closed
2014-10-06 14:16Will SchroederResolutionopen => fixed

Notes
(0031042)
Dave DeMarle   
2013-06-25 11:18   
Try adding a SetGetMacro to vtkBandedPolyDataContourFilter whereby the tolerance can be controlled.
Submit that as a patch via gerrit for automated review and testing and we can get it in.
For details see http://www.vtk.org/Wiki/VTK/Git/Develop [^]
(0032103)
Will Schroeder   
2014-01-01 13:20   
Adding this feature in for our friends