[vtk-developers] [VTK 0012659]: BUG in vtkCellLocator::FindCellsAlongLine

Mantis Bug Tracker mantis at public.kitware.com
Sat Oct 15 17:35:07 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://vtk.org/Bug/view.php?id=12659 
====================================================================== 
Reported By:                Bryn Lloyd
Assigned To:                
====================================================================== 
Project:                    VTK
Issue ID:                   12659
Category:                   (No Category)
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     backlog
Project:                    Release 
Type:                       incorrect functionality 
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-10-15 17:35 EDT
Last Modified:              2011-10-15 17:35 EDT
====================================================================== 
Summary:                    BUG in vtkCellLocator::FindCellsAlongLine
Description: 
I think I have found a bug in vtkCellLocator, which is very similar to a bug,
which already was fixed previously at a different location:

http://www.vtk.org/gitweb?p=VTK.git;a=commitdiff;h=07a9667a44194de355ece2380d00436c0d528bcf

There is a missing "tMax = sqrt( tMax );" after the for loop, which computes
tMax (around line 1850)
 

This bug was fixed in the function IntersectWithLine in September 2008, by
Zhanping Liu. But the fix was not applied to the function FindCellsAlongLine.


I was searching for the reason why a cell intersection was not found, even
though there should have been several intersections. It seemed unlikely to be
related to numerical accuracy (nearly equilateral triangles, intersection nearly
in center of triangle, perpendicular to triangle). After adding the missing
sqrt, the intersections were found correctly.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-10-15 17:35 Bryn Lloyd     New Issue                                    
======================================================================




More information about the vtk-developers mailing list