vtkDataSet::GetPoint(i) returns the corrdinates of the i'th point. That normal at that point is the i'th entry in the normals attribute array.<br><br clear="all">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>
28 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-371-3971 x109<br>
<br><br><div class="gmail_quote">On Thu, Sep 17, 2009 at 5:25 PM, <span dir="ltr"><<a href="mailto:niccolo.camarlinghi@pi.infn.it">niccolo.camarlinghi@pi.infn.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Dear all,<br>
<br>
I'm a not a good vtk user so please forgive me if i'm asking a stupid<br>
question.<br>
I'm trying to use the normals computed by vtkPolydataNormals.<br>
<br>
My aim is to obtain a correspondence between the coordinates of a point<br>
and its normal , i.e. point x,y,z normal nx,ny,nz and so on..<br>
I was able to access to all the normals using<br>
GetPointData()->GetNormals() but i cannot figure out how to access to<br>
the corresponding point coordinates.<br>
<br>
Best Regards<br>
<br>
Niccolo' Camarlinghi<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>