MantisBT - VTK
View Issue Details
0000183VTK(No Category)public2003-09-22 19:012004-01-21 19:32
Clinton Stimpson 
Mathieu Malaterre 
normalminoralways
closedfixed 
 
 
0000183: vtkPolygon::IntersectWithLine tolerance problem
Can't intersect with polygons within a tolerance.
If the intersection was within the polygon, it works fine.

In vtkPolygon::IntersectWithLine(...)
there is a
if( EvaluatePosition(...) )
{ ... }

If I compare that to vtkTriangle's it is a bit different.

It should be
if( EvaluatePosition(...) >= 0 )
{ ... }
 so if '0' is returned, we can still check if it
is within tolerance and say the ray intersected.
No tags attached.
Issue History
2011-06-16 13:11Zack GalbreathCategory => (No Category)

Notes
(0000545)
Mathieu Malaterre   
2004-01-21 19:03   
Already fixed in CVS:

http://vtk.org/cgi-bin/cvsweb.cgi/VTK/Common/vtkPolygon.cxx.diff?r1=1.99&r2=1.100 [^]

Do we need to merge this in VTK 4.2 branch ?
(0000547)
Clinton Stimpson   
2004-01-21 19:24   
That would be wonderful if it was put in the 4.2 branch. I keep patching 4.2 code I download and build for different platforms because it is a big deal in my app.
(0000550)
Mathieu Malaterre   
2004-01-21 19:32   
Ken, do I need to merge this in VTK 4.2 branch ?