<html>
<body>
Tony,<br><br>
Yes, if you first do a:<br><br>
read>Update();<br><br>
Bill<br><br>
At 09:59 AM 12/30/2006, tony hakki wrote:<br>
<blockquote type=cite class=cite cite>hello;<br>
Can I use the following code for obtain STL file's all (x,y,z)
surface coordinates?Thanks in advance<br>
tony<br>
<br>
<font size=2 color="#0000FF"><br>
double</font><font size=2> X[3], Y[3], Z[3];<br><br>
vtkSTLReader *read = vtkSTLReader::New();<br><br>
<br><br>
..................<br><br>
<br><br>
tkPolyData *Source=read->GetOutput();<br>
</font><font size=2 color="#008000"><br>
// Put source points in SourcePoints<br>
</font><font size=2><br>
SourcePoints = Source->GetPoints();<br>
</font><font size=2 color="#008000"><br>
// For each cell i do:<br>
</font><font size=2><br>
</font><font size=2 color="#0000FF">for</font><font size=2> (i = 0; i
< ncells; i++) <br><br>
</font><font size=2 color="#008000">// Get the points belonging to this
cell.<br>
</font><font size=2><br>
Source->GetCellPoints(i,cells);<br>
</font><font size=2 color="#008000"><br>
<br>
</font><font size=2><br>
pId = cells->GetId(0);<br><br>
SourcePoints->GetPoint(pId,X);<br><br>
pId = cells->GetId(1);<br><br>
SourcePoints->GetPoint(pId,Y);<br><br>
pId = cells->GetId(2);<br><br>
SourcePoints->GetPoint(pId,Z);<br><br>
<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/" eudora="autourl">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" eudora="autourl">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" eudora="autourl">http://www.vtk.org/mailman/listinfo/vtkusers</a></blockquote></body>
</html>