<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1528" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Thanks Randall,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Have that working now with:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>set numPoints [[cutterFilter GetOutput]
GetNumberOfPoints]</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>for {set i 0} {$i < $numPoints} {incr i}
{</FONT></DIV>
<DIV><FONT face=Arial size=2> set point
[[cutterFilter GetOutput] GetPoint $i]</FONT></DIV>
<DIV><FONT face=Arial size=2> puts "Point
$i: [lindex $point 0] [lindex $point1] [lindex $point 2]"</FONT></DIV>
<DIV><FONT face=Arial size=2>}</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Clare</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=randall.hand@gmail.com href="mailto:randall.hand@gmail.com">Randall
Hand</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=clare.fitzpatrick@ucd.ie
href="mailto:clare.fitzpatrick@ucd.ie">Clare Fitzpatrick</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, February 06, 2006 3:03
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] getting point
information from vtkCutter</DIV>
<DIV><BR></DIV>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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<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>
</BLOCKQUOTE></BODY></HTML>