[vtkusers] Get normal vector of the closest polydata cell to a given test point
David Doria
daviddoria at gmail.com
Wed Jan 11 12:25:38 EST 2017
>
> Hello,
>
> i have a test point p[x,y,z] and a polydata.
> I use vtkCellLocator to get the closest cell of the polydata to this
> point.
>
> I get:
> - the closest point
> - the squared distance to the closest point
> - cell ID
>
> Now I want to get the normal vector of the cell. I know the cell ID but I
> don't know how to get the
> normal vector from it.
>
> Thank you!
>
This example shows how to retrieve cell normals:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataCellNormals
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170111/d97375a2/attachment.html>
More information about the vtkusers
mailing list