<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 <amy.squillacote@kitware.com><BR>To: tony hakki <tony2007vtk@yahoo.com>; VTK Users <vtkusers@vtk.org><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>> Dear Amy;<BR>> thanks for kind help , really, I am ver happy. One more little <BR>> question. I would like to show this coordinates on the screen . For <BR>> this , what should I do.<BR>> Thanks in advance<BR>> tony<BR>> <BR>> <BR>> <BR>> <BR>> ----- Original Message ----<BR>> From: Amy Squillacote <amy.squillacote@kitware.com><BR>> To: tony hakki <tony2007vtk@yahoo.com><BR>> Cc: VTK Ortak mail hesabi <vtkusers@vtk.org><BR>> Sent:
Thursday, December 28, 2006 7:50:40 PM<BR>> Subject: Re: [vtkusers] STL file surface coordinate<BR>><BR>> Hi Tony,<BR>><BR>> Do something like the following.<BR>><BR>> vtkSTLReader *reader = vtkSTLReader::New();<BR>> ...<BR>> vtkPoints *points = reader->GetOutput()->GetPoints();<BR>> int numPts = points->GetNumberOfPoints();<BR>> int i;<BR>> double *pt;<BR>><BR>> for (i = 0; i < numPts; i++)<BR>> {<BR>> pt = points->GetPoint(i);<BR>> // Now you have the point coordinates as a double[3].<BR>> }<BR>><BR>><BR>> - Amy<BR>><BR>> tony hakki wrote:<BR>> > hi all;<BR>> > I would like to get surface coordinate of a STL data. how can I do<BR>> > that? Now I just read the stl data<BR>> > thanks in advance<BR>> > <BR>> > tony<BR>> ><BR>> > __________________________________________________<BR>> > Do You
Yahoo!?<BR>> > Tired of spam? Yahoo! Mail has the best spam protection around<BR>> > <A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com</A> <<A href="http://mail.yahoo.com/" target=_blank>http://mail.yahoo.com/</A>><BR>> > ------------------------------------------------------------------------<BR>> ><BR>> > _______________________________________________<BR>> > This is the private VTK discussion list.<BR>> > Please keep messages on-topic. Check the FAQ at: <BR>> <A 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 href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>> ><BR>><BR>><BR>> __________________________________________________<BR>> Do You Yahoo!?<BR>> Tired of spam? Yahoo! Mail has the best spam
protection around<BR>> <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>