[vtkusers] BUG in vtkCellLocator::FindCellsAlongLine

Bryn Lloyd lloyd at itis.ethz.ch
Sat Oct 15 17:40:03 EDT 2011


Dear VTK developers


I think I have found a bug in vtkCellLocator, which is very similar to the 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.
 

This bug was fixed in the function IntersectWithLine in September 2008, by Zhanping Liu. But the fix was not applied to the function FindCellsAlongLine. The obvious symptom was that some (candidate) intersections were not found. In my case the line (p1,p2) was partially outside the bounding box of the surface.

I have filed a bug report.
http://vtk.org/Bug/view.php?id=12659


Best regards
Bryn





More information about the vtkusers mailing list