<div>Thanks a lot Jerome,</div>
<div> </div>
<div>I get an errore:</div>
<div> </div>
<div>AttributeError GetPoints. </div>
<div> </div>
<div>May be I am doing something wrong; what i  am doing is the following:</div>
<div> </div>
<div>contour = vtk.vtkContourFilter()</div>
<div>contour.SetInput(grid) #grid is rectilineargrid()</div>
<div>contour.ComputeNormalOn()</div>
<div>contour.SetValue(0, 95) #my isovalue</div>
<div> </div>
<div>in contour i should have my polyData right?</div>
<div> </div>
<div>when i do what you suggested:</div>
<div> </div>
<div>contour.GetPoints( ).GetPoint( pointId, coord )</div>
<div> </div>
<div>I got the error.</div>
<div> </div>
<div>Any suggestion?</div>
<div> </div>
<div>Thanks again,</div>
<div>Alessandro.<br><br><br></div>
<div class="gmail_quote">On Mon, Oct 26, 2009 at 1:11 PM, Jérôme <span dir="ltr">&lt;<a href="mailto:jerome.velut@gmail.com">jerome.velut@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br>vtkPolyData is a vtkPointSet : you can access points coordinates through <br><br>polydata-&gt;GetPoints( )-&gt;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">&lt;<a href="mailto:artusialessandro4@googlemail.com" target="_blank">artusialessandro4@googlemail.com</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>
<div></div>
<div class="h5">
<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></div></div>_______________________________________________<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></blockquote></div><br>