[vtk-developers] [VTK 0013436]: vtkBandedPolyDataContourFilter -> ClipTolerance is not able to be modified.

Mantis Bug Tracker mantis at public.kitware.com
Thu Sep 6 15:20:44 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.vtk.org/Bug/view.php?id=13436 
====================================================================== 
Reported By:                Guillermo
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   13436
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    Kitware 
Type:                       feature 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2012-09-06 15:20 EDT
Last Modified:              2012-09-06 15:20 EDT
====================================================================== 
Summary:                    vtkBandedPolyDataContourFilter -> ClipTolerance is
not able to be modified.
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-09-06 15:20 Guillermo      New Issue                                    
======================================================================




More information about the vtk-developers mailing list