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

Philippe Pebay philippe.pebay at kitware.com
Tue Dec 6 07:25:44 EST 2011


Hello Goodwin,

Yes indeed this was initially implemented as a performance feature, for the
initial purpose was picking. However it is now a limitation as we are
increasingly doing topological analysis.

Thanks for having sent the link to your code, at which I will look. The
case which we are looking at is that of line/triangle intersection, but the
fundamentals of the issue remain the same. In fact the triangle/triangle
intersection which you wrote can be viewed as a generalization of the
triangle/line one.

Best,
Philippe

On Tue, Dec 6, 2011 at 12:58 PM, Goodwin Lawlor <goodwin.lawlor at ucd.ie>wrote:

> 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<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<http://www.bioengineering-research.com>
> ______________________________**_________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/**
> opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/**listinfo/vtk-developers<http://www.vtk.org/mailman/listinfo/vtk-developers>
>
>


-- 
Philippe Pébay
Directeur de la Visualisation et du Calcul Haute Performance
Kitware SAS
26 rue Louis Guérin
69100 Villeurbanne
France
+33 (0)4.37.45.04.15
http://www.kitware.fr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20111206/d5cff44e/attachment.html>


More information about the vtk-developers mailing list