<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi all,<BR>
<BR>
Now, I'm doing marching cubes. I wanna save the resault(the 3D image) to STL format, <BR>
I tried this:<BR>
--code--<BR>
vtkSTLWriter * writeSTL = vtkSTLWriter ::New();<BR> writeSTL->SetFileName("D:/data/feet.stl");<BR> writeSTL->SetInput(stripper->GetOutput()); //data from vtkStripper<BR> writeSTL->Write();<BR>
--code--<BR>
<BR>
but it didn't work. The feet.stl is only 1KB.<BR>
However, I can see the 3D surface in RenderWindow. I don't konw why.<BR>
Could any one help me, please?<BR>
<BR>
Thanks so much!!!<BR>
<BR>
Regards,<BR>
<BR>
Danile<BR>                                            <br /><hr />使用新一代 Windows Live Messenger 轻松交流和共享! <a href='http://www.windowslive.cn/messenger/' target='_new'>立刻下载!</a></body>
</html>