[vtkusers] How to find out whether mouse is moving on Mesh?

rakesh patil prakeshofficial at gmail.com
Mon Sep 20 09:04:34 EDT 2010


Hello,

I have one interpolation function, which accepts three nodes of a triangle
and an arbitrary point inside triangle. Using these data, it computes the
depth/bathymetry value of the point inside the triangle. I mean, bathymetry
information is stored only at node points.

But this is done on mouse click. I click inside a triangle anywhere, and i
get the bathymetry value at that location. Now i want this to change this
behaviour from mouse click to mouse move.

The question is how can I come to know whether mouse is over the triangle or
not? Actually, it is a triangular mesh, how can i find out whether mouse is
moving over mesh or not?

Thanks

Regards
Rakesh Patil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100920/360bdd9b/attachment.htm>


More information about the vtkusers mailing list