<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div id="gmail-m_-2039286646039819697divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:calibri,arial,helvetica,sans-serif" dir="ltr"><p>Hello,<br>
<br>
i have a test point p[x,y,z] and a polydata.<br>
I use <span>vtkCellLocator to get the closest cell of the polydata to this point.<br>
<br>
</span>I get:<br>
- the closest point<br>
- the squared distance to the closest point<br>
- cell ID<br>
<br>
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
<br>
normal vector from it.<br>
<br>
Thank you!</p></div></div></blockquote><div><br></div><div>This example shows how to retrieve cell normals:</div><div><br></div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataCellNormals">http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataCellNormals</a></div><div><br></div><div>DavidĀ </div></div></div></div>