MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012331 | VTK | (No Category) | public | 2011-07-03 21:44 | 2013-12-13 10:05 |
Reporter | Peter Wood | ||||
Assigned To | Dave DeMarle | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | 6.1.0 | |||
Project | TBD | ||||
Type | incorrect functionality | ||||
Summary | 0012331: Tolerance problem in 'vtkImplicitDataSet::EvaluateFunction': 'tol2' set as 0.0, which appears to be too tight | ||||
Description | Tolerance problem in 'vtkImplicitDataSet.cxx' in method 'EvaluateFunction' line 81, as follows """ // Find the cell that contains xyz and get it cell = this->DataSet->FindAndGetCell(x,NULL,-1,0.0,subId,pcoords,this->Weights); ^^^ """ Note 4th parameter '0.0'. This is 'tol2' in API, which is used in 'vtkPointSet.cxx' in method 'FindCellWalk' """ double dist2; if ( (cell->EvaluatePosition(x, closestPoint, subId, pcoords, dist2, weights) == 1) && (dist2 <= tol2) ) { return cellId; } """ The problem is that 'tol2' is 0.0, but often 'dist2' may be calculated to be approx 1e-032 to 1e-029, a very small number, but still greater than 0.0! (NB: I adapted vtkPointSet.cxx to report 'dist2') To fix this problem, when calling 'FindAndGetCell' in 'vtkImplicitDataSet' replace '0.0' with an appropriate small positive tolerance value, e.g. '1e-16'. This could be user-configurable? | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/8970/test_vtkImplicitDataSet_tol2_problem.py | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-07-03 21:44 | Peter Wood | New Issue | |||
2011-07-03 21:44 | Peter Wood | File Added: test_vtkImplicitDataSet_tol2_problem.py | |||
2011-07-03 22:43 | Peter Wood | Note Added: 0026947 | |||
2013-06-05 13:20 | Jean-Christophe Fillion-Robin | Note Added: 0030898 | |||
2013-12-13 10:05 | Dave DeMarle | Note Added: 0031928 | |||
2013-12-13 10:05 | Dave DeMarle | Status | backlog => closed | ||
2013-12-13 10:05 | Dave DeMarle | Assigned To | => Dave DeMarle | ||
2013-12-13 10:05 | Dave DeMarle | Resolution | open => fixed | ||
2013-12-13 10:05 | Dave DeMarle | Fixed in Version | => 6.1.0 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|