Refer to the documentation for vtkPointSet, the parent class for vtkPolyData. <a href="http://www.vtk.org/doc/release/5.0/html/a01876.html">http://www.vtk.org/doc/release/5.0/html/a01876.html</a><br><br>Then do something like:
<br><br>double *point;<br>vtkPointSet *dataset = cutterFilter->GetOutput();<br>for(i=0; i<dataset->GetNumberOfPoints(); i++) {<br> point = dataset->GetPoint(i);<br> printf("Point %i: %lf, %lf, %lf\n", i, point[0], point[1], point[2]);
<br>}<br><br><div><span class="gmail_quote">On 2/6/06, <b class="gmail_sendername">Clare Fitzpatrick</b> <<a href="mailto:clare.fitzpatrick@ucd.ie">clare.fitzpatrick@ucd.ie</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><font face="Arial" size="2">Hi All,</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">From what i understand, an instance of vtkCutter
gives a PolyData output, which is basically a list of points or lines. So where
is this list stored and is it possible to access the coordinates of these
points? </font></div>
<div><font face="Arial" size="2">I am intersecting two cutting planes and i want to
extract the points of intersection. So far i have been able to use vtkGlyph3D to
apply spheres (or whatever) onto the intersecting points but I dont know how
to get their coordinates (without using vtkPicker - i want to do this
automatically!).</font></div>
<div><font face="Arial" size="2"></font> </div>
<div><font face="Arial" size="2">Thanks,</font></div><span class="sg">
<div><font face="Arial" size="2">Clare</font></div>
<div><font face="Arial" size="2"></font> </div>
</span><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br></blockquote></div><br><br clear="all"><br>-- <br>Randall Hand<br>Visualization Scientist, <br>ERDC-MSRC Vicksburg, MS<br>Homepage: <a href="http://www.yeraze.com">http://www.yeraze.com</a>