<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">thanks your advance bur, they don't include any example ,how to get (x,y,z)coordinates of a stl data. I tried the following but compiler gives that error: <FONT size=1>
<P>static functions with block scope are illegal</P>
<P>1>Build log was saved at "file://c:\Documents and Settings\aydemir\Desktop\nfinity_basic\nfinity\Win32\Debug\BuildLog.htm"</P>
<P>1>nfinity - 1 error(s), 0 warning(s) </P></FONT></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">static</FONT><FONT color=#000000 size=2> vtkPoints *GetXYZPoints(</FONT><FONT color=#0000ff size=2>const</FONT><FONT color=#000000 size=2> </FONT><FONT color=#0000ff size=2>char</FONT><FONT size=2><FONT color=#000000>* filename);</FONT></P>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">vtkPoints *XYZPoints;</P>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">vtkSTLReader *read = vtkSTLReader::New();</P>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">read->SetFileName(filename);</P>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">read->Update();</P>
<P style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"></FONT><FONT size=2>XYZPoints = GetXYZPoints(filename);</P></FONT></FONT><FONT size=2></FONT>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>What is the wrong, do you think?</DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR> </DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: PAUL <polinzhuo@163.com><BR>To: tony hakki <tony2007vtk@yahoo.com>; VTK Ortak mail hesabi <vtkusers@vtk.org><BR>Sent: Thursday, January 4, 2007 3:01:59 PM<BR>Subject: 答复: [vtkusers] xyz Coordinates<BR><BR>
<STYLE>
<!--
_filtered {font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
_filtered {font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
_filtered {font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
text-decoration:underline;}
p
        {
margin-right:0cm;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
tt
        {font-family:SimSun;}
span.EmailStyle18
        {
font-family:Arial;
color:navy;}
_filtered {
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {}
_filtered {
}
_filtered {
text-indent:-18.0pt;
font-family:Symbol;}
_filtered {
text-indent:-18.0pt;
font-family:"Courier New";
}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</STYLE>
<DIV class=Section1>
<P class=MsoNormal style="LINE-HEIGHT: 12pt"><TT><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">You may look into the examples:</SPAN></FONT></TT></P>
<P class=MsoNormal style="MARGIN-LEFT: 53.85pt; LINE-HEIGHT: 12pt"><TT><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">/Examples/IO/Tcl/stl.tcl</SPAN></FONT></TT><SPAN lang=EN-US> <IMG id=_x0000_i1026 height=32 src="cid:1.3466039626@web58904.mail.re1.yahoo.com" width=32 align=top></SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 53.85pt; LINE-HEIGHT: 12pt"><TT><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">/Examples/Rendering/Tcl/CADPart.tcl</SPAN></FONT></TT><SPAN lang=EN-US> <IMG id=_x0000_i1027 height=32 src="cid:1.3466039626@web58904.mail.re1.yahoo.com" width=32 align=top></SPAN></P>
<P class=MsoNormal style="MARGIN-LEFT: 53.85pt; LINE-HEIGHT: 12pt"><TT><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">/Examples/Rendering/Tcl/FilterCADPart.tcl</SPAN></FONT></TT><SPAN lang=EN-US> <IMG id=_x0000_i1028 height=32 src="cid:1.3466039626@web58904.mail.re1.yahoo.com" width=32 align=top></SPAN></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=1><SPAN lang=EN-US style="FONT-SIZE: 9pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=宋体 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: SimSun">发件人<SPAN lang=EN-US>:</SPAN></SPAN></FONT></B><FONT face=宋体 size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun"> vtkusers-bounces+polinzhuo=163.com@vtk.org [mailto:vtkusers-bounces+polinzhuo=163.com@vtk.org] </SPAN></FONT><B><FONT face=宋体 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: SimSun">代表 </SPAN></FONT></B><FONT face=宋体 size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun">tony hakki<BR></SPAN></FONT><B><FONT face=宋体 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: SimSun">发送时间<SPAN lang=EN-US>:</SPAN></SPAN></FONT></B><FONT face=宋体 size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun"> 2007<SPAN lang=EN-US><SPAN lang=EN-US>年1</SPAN></SPAN><SPAN lang=EN-US><SPAN lang=EN-US>月4</SPAN></SPAN><SPAN lang=EN-US><SPAN
lang=EN-US>日</SPAN></SPAN> 21:53<BR></SPAN></FONT><B><FONT face=宋体 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: SimSun">收件人<SPAN lang=EN-US>:</SPAN></SPAN></FONT></B><FONT face=宋体 size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun"> VTK Ortak mail hesabi<BR></SPAN></FONT><B><FONT face=宋体 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: SimSun">主题<SPAN lang=EN-US>:</SPAN></SPAN></FONT></B><FONT face=宋体 size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt; FONT-FAMILY: SimSun"> [vtkusers] xyz Coordinates</SPAN></FONT><SPAN lang=EN-US></SPAN></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt"> </SPAN></FONT></P>
<DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt">Hello;</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt"> I would like to read whole x,y,z coordinates of a stl dataset. </SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt"> </SPAN></FONT></P></DIV>
<DIV>
<P><FONT face="Times New Roman" size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt">vtkSTLReader *read = vtkSTLReader::New();</SPAN></FONT></P>
<P><FONT face="Times New Roman" size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt">read->SetFileName(filename);</SPAN></FONT></P>
<P><FONT face="Times New Roman" size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt">read->Update();</SPAN></FONT></P>
<P><FONT face="Times New Roman" size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P><FONT face="Times New Roman" size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt"> </SPAN></FONT></P>
<P><FONT face="Times New Roman" size=2><SPAN lang=EN-US style="FONT-SIZE: 10pt">how can I continue to do this? Thank you</SPAN></FONT></P></DIV></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN lang=EN-US style="FONT-SIZE: 12pt"><BR>__________________________________________________<BR>Do You Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around <BR>http://mail.yahoo.com </SPAN></FONT></P></DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV></div></body></html>