[vtk-developers] Bug or feature in vtkPlane::IntersectWithLine ?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Tue Dec 6 06:58:02 EST 2011


Hi Philippe,

I hit this feature/bug a while back writing a collision detection filter 
- I presumed is was a performance feature.

Have a look from line 646 here:
https://github.com/glawlor/VTK/blob/collision/Graphics/vtkCollisionDetectionFilter.cxx

Basically,

1. Check if intersecting
2. If not intersecting then edge is parallel to plane
3. If two edges of triangle are parallel to plane then triangle is coplanar
3. If coplanar then check if the triangles are overlapping.



Hth in some way,

Goodwin

-- 
Bioengineering Research Group
Dept. Mechanical Engineering
University College Dublin, Ireland
http://www.bioengineering-research.com



More information about the vtk-developers mailing list