<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">You are right ,I am trying to print the coordinates as text on the screen.<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Amy Squillacote &lt;amy.squillacote@kitware.com&gt;<BR>To: tony hakki &lt;tony2007vtk@yahoo.com&gt;; VTK Users &lt;vtkusers@vtk.org&gt;<BR>Sent: Thursday, December 28, 2006 8:40:34 PM<BR>Subject: Re: [vtkusers] STL file surface coordinate<BR><BR>
<DIV>Hi Tony,<BR><BR>Please keep the discussion on the mailing list so other people can help <BR>answer your questions and so any answers are archived.<BR><BR>What do you mean by "show the coordinates on the screen"? Are you trying <BR>to print the coordinates as text on the screen? Or are you trying to <BR>display the dataset (a vtkPolyData) you read in using the vtkSTLReader?<BR><BR>- Amy<BR><BR>tony hakki wrote:<BR>&gt; Dear Amy;<BR>&gt; thanks for kind help&nbsp;&nbsp;, really, I am ver happy. One more little <BR>&gt; question. I would like to show this coordinates on the screen . For <BR>&gt; this , what should I do.<BR>&gt;&nbsp;&nbsp;Thanks in advance<BR>&gt; tony<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;<BR>&gt;&nbsp;&nbsp;<BR>&gt; ----- Original Message ----<BR>&gt; From: Amy Squillacote &lt;amy.squillacote@kitware.com&gt;<BR>&gt; To: tony hakki &lt;tony2007vtk@yahoo.com&gt;<BR>&gt; Cc: VTK Ortak mail hesabi &lt;vtkusers@vtk.org&gt;<BR>&gt; Sent:
 Thursday, December 28, 2006 7:50:40 PM<BR>&gt; Subject: Re: [vtkusers] STL file surface coordinate<BR>&gt;<BR>&gt; Hi Tony,<BR>&gt;<BR>&gt; Do something like the following.<BR>&gt;<BR>&gt; vtkSTLReader *reader = vtkSTLReader::New();<BR>&gt; ...<BR>&gt; vtkPoints *points = reader-&gt;GetOutput()-&gt;GetPoints();<BR>&gt; int numPts = points-&gt;GetNumberOfPoints();<BR>&gt; int i;<BR>&gt; double *pt;<BR>&gt;<BR>&gt; for (i = 0; i &lt; numPts; i++)<BR>&gt; {<BR>&gt;&nbsp;&nbsp; pt = points-&gt;GetPoint(i);<BR>&gt;&nbsp;&nbsp; // Now you have the point coordinates as a double[3].<BR>&gt; }<BR>&gt;<BR>&gt;<BR>&gt; - Amy<BR>&gt;<BR>&gt; tony hakki wrote:<BR>&gt; &gt; hi all;<BR>&gt; &gt; I would like to get surface coordinate of a STL data. how can I do<BR>&gt; &gt; that? Now I just read the stl data<BR>&gt; &gt; thanks in advance<BR>&gt; &gt;&nbsp;&nbsp;<BR>&gt; &gt; tony<BR>&gt; &gt;<BR>&gt; &gt; __________________________________________________<BR>&gt; &gt; Do You
 Yahoo!?<BR>&gt; &gt; Tired of spam? Yahoo! Mail has the best spam protection around<BR>&gt; &gt; <A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com</A> &lt;<A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com/</A>&gt;<BR>&gt; &gt; ------------------------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________<BR>&gt; &gt; This is the private VTK discussion list.<BR>&gt; &gt; Please keep messages on-topic. Check the FAQ at: <BR>&gt; <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>&gt; &gt; Follow this link to subscribe/unsubscribe:<BR>&gt; &gt; <A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>&gt; &gt;<BR>&gt;<BR>&gt;<BR>&gt; __________________________________________________<BR>&gt; Do You Yahoo!?<BR>&gt; Tired of spam? Yahoo! Mail has the best spam
 protection around<BR>&gt; <A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com</A></DIV></DIV><BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>