Hi,<br>vtkPolyData is a vtkPointSet : you can access points coordinates through <br><br>polydata->GetPoints( )->GetPoint( pointId, coord )<br><br>where polydata is your... polydata, pointId is the point Id you want to get (from 0 to NumberOfPoints - 1) and coord is double coord[3] filled by the point coordinate.<br>
<br>HTH<br>Jerome<br><br><div class="gmail_quote">2009/10/26 Alessandro Artusi <span dir="ltr"><<a href="mailto:artusialessandro4@googlemail.com">artusialessandro4@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Dear All,</div>
<div> </div>
<div>I have a vtkPolyData from the vtkContourFilter and I need to get the X,Y,Z coordinates of each point in the PolyData. This because I need to convert them.</div>
<div>How can i get this info?</div>
<div> </div>
<div>Thanks a lot for teh help,</div>
<div>Alessandro.</div><font color="#888888">
<div><br><br> </div>
</font><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>
<br></blockquote></div><br>