<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7638.1">
<TITLE>[vtkusers] Obtaining XYZ Coords</TITLE>
</HEAD>
<BODY>
<DIV id=idOWAReplyText92002 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>Hello,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I tried this:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2><FONT size=2>
<P>set points [PolyData GetPoints]</P>
<P>set pointnumber 12</P></FONT></FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2>
<P>set point [$points GetPoint $pointnumber]</P>
<P>set xp [lindex $point 0]</P>
<P>set yp [lindex $point 1]<BR>set zp [lindex $point 2]</P>
<P>puts stdout "$xp $yp $zp"</P>
<P>This prints the xyz coordinates of point number 12.</P>
<P>Btw. Do you know how to do the same with the polygons in tcl (e.g. getting
point numbers for polygon number i)</P>
<P>Tron Darvann<BR></P></FONT></DIV>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2></FONT> </DIV></DIV>
<DIV id=idSignature85907 dir=ltr>
<DIV><FONT face=Arial color=#000000 size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#000000 size=2>Tron Darvann</FONT></DIV>
<DIV><FONT face=Arial size=2>Research Engineer, 3D-Laboratory</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><U>Tel:</U> (+45) 35 32 67 58 (lab) / (+45) 28 20
03 12 (mobile)</FONT></DIV>
<DIV><FONT face=Arial size=2><U>E-mail:</U> <A
href="mailto:trd@odont.ku.dk">trd@odont.ku.dk</A> or <A
href="mailto:tdarvann@lab3d.odont.ku.dk">tdarvann@lab3d.odont.ku.dk</A></FONT></DIV>
<DIV><FONT face=Arial size=2><U>Mailing and Visiting Address:</U></FONT></DIV>
<DIV><FONT face=Arial size=2>3D-Lab, School of Dentistry</FONT></DIV>
<DIV><FONT face=Arial size=2>University of Copenhagen</FONT></DIV>
<DIV><FONT face=Arial size=2>Nørre Alle 20</FONT></DIV>
<DIV><FONT face=Arial size=2>DK-2200 Copenhagen N</FONT></DIV>
<DIV><FONT face=Arial size=2>Denmark</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Fra:</B> vtkusers-bounces+trd=odont.ku.dk@vtk.org på
vegne af B.J.Prosser@cs.cardiff.ac.uk<BR><B>Sendt:</B> to 30-03-2006
12:20<BR><B>Til:</B> vtkusers@vtk.org<BR><B>Emne:</B> [vtkusers] Obtaining XYZ
Coords<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Im trying to get the xyz coords (individually) from points in a
mesh (using tcl)<BR><BR>Ive got as far as:<BR>set points [[smoother GetOutput]
GetPoints]<BR>set point *[$points GetPoint $x]<BR><BR>but how do i then get from
the vtkPoint point to the x, y and z
numbers<BR><BR>thanks<BR><BR>_______________________________________________<BR>This
is the private VTK discussion list.<BR>Please keep messages on-topic. Check the
FAQ at: <A
href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow
this link to subscribe/unsubscribe:<BR><A
href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A><BR></FONT></P></DIV>
</BODY>
</HTML>