[vtkusers] Argh ~~ FindCell

John Biddiscombe jbiddiscombe at skippingmouse.co.uk
Wed Nov 7 19:37:31 EST 2001


>Thank you to Berk and Amy for your helpful advice.  I am currently using the
>findcell and it seems that this function does not always work on my mesh.
>Is there a method that locates a cell based on the shortest distance between
>a point and the plane created by the vertices of that cell?

If you create cell normals for the mesh and then did a dot product between 
a test point and the normals, you ought to get the distance. You could then 
search for the minimum resulting scalar...the Id would correspond to the 
cell...

thinking aloud...

JB




More information about the vtkusers mailing list