<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">Thank you for your kind reply</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">tony<BR><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: Bill Lorensen &lt;wlorens1@nycap.rr.com&gt;<BR>To: tony hakki &lt;tony2007vtk@yahoo.com&gt;; Amy Squillacote &lt;amy.squillacote@kitware.com&gt;<BR>Cc: VTK Ortak mail hesabi &lt;vtkusers@vtk.org&gt;<BR>Sent: Saturday, December 30, 2006 8:06:08 PM<BR>Subject: Re: [vtkusers] STL file surface coordinate<BR><BR>Tony,<BR><BR>Yes, if you first do a:<BR><BR>read&gt;Update();<BR><BR>Bill<BR><BR>At 09:59 AM 12/30/2006, tony hakki wrote:<BR>
<BLOCKQUOTE class=cite cite="" type="cite">hello;<BR>Can I use the following code for obtain STL file's&nbsp; all (x,y,z) surface coordinates?Thanks in advance<BR>tony<BR>&nbsp;<BR><FONT color=#0000ff size=2><BR>double</FONT><FONT size=2> X[3], Y[3], Z[3];<BR><BR>vtkSTLReader *read = vtkSTLReader::New();<BR><BR>&nbsp;<BR><BR>..................<BR><BR>&nbsp;<BR><BR>tkPolyData *Source=read-&gt;GetOutput();<BR></FONT><FONT color=#008000 size=2><BR>// Put source points in SourcePoints<BR></FONT><FONT size=2><BR>SourcePoints = Source-&gt;GetPoints();<BR></FONT><FONT color=#008000 size=2><BR>// For each cell i do:<BR></FONT><FONT size=2><BR></FONT><FONT color=#0000ff size=2>for</FONT><FONT size=2> (i = 0; i &lt; ncells; i++) <BR><BR></FONT><FONT color=#008000 size=2>// Get the points belonging to this cell.<BR></FONT><FONT size=2><BR>Source-&gt;GetCellPoints(i,cells);<BR></FONT><FONT color=#008000 size=2><BR>&nbsp;<BR></FONT><FONT size=2><BR>pId =
 cells-&gt;GetId(0);<BR><BR>SourcePoints-&gt;GetPoint(pId,X);<BR><BR>pId = cells-&gt;GetId(1);<BR><BR>SourcePoints-&gt;GetPoint(pId,Y);<BR><BR>pId = cells-&gt;GetId(2);<BR><BR>SourcePoints-&gt;GetPoint(pId,Z);<BR><BR>&nbsp;<BR></FONT><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 rel=nofollow>http://mail.yahoo.com</A> <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" target=_blank rel=nofollow>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 rel=nofollow>http://www.vtk.org/mailman/listinfo/vtkusers</A></BLOCKQUOTE></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><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>