View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013436VTK(No Category)public2012-09-06 15:202014-10-06 14:16
ReporterGuillermo 
Assigned ToWill Schroeder 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0013436: vtkBandedPolyDataContourFilter -> ClipTolerance is not able to be modified.
DescriptionHi,

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.
TagsNo tags attached.
ProjectKitware
Typefeature
Attached Files

 Relationships

  Notes
(0031042)
Dave DeMarle (administrator)
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 (manager)
2014-01-01 13:20

Adding this feature in for our friends

 Issue History
Date Modified Username Field Change
2012-09-06 15:20 Guillermo New Issue
2013-06-25 11:18 Dave DeMarle Note Added: 0031042
2014-01-01 13:20 Will Schroeder Note Added: 0032103
2014-01-01 13:20 Will Schroeder Assigned To => Will Schroeder
2014-01-01 13:20 Will Schroeder Status backlog => active development
2014-01-08 06:33 Will Schroeder Status active development => gerrit review
2014-10-06 14:16 Will Schroeder Status gerrit review => closed
2014-10-06 14:16 Will Schroeder Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team