<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Thank u so much!<BR>
I tried vtkXMLPolyDataWriter and vtkSTLWriter, it showed that the output in vtp format is much smaller than stl format.<BR>
Thanks again!!!<BR> <BR>> Date: Fri, 4 Jun 2010 13:30:30 -0400<BR>> Subject: Re: [vtkusers] How can I save to STL format?<BR>> From: daviddoria+vtk@gmail.com<BR>> To: hawkingyy@hotmail.com<BR>> CC: vtkusers@vtk.org<BR>> <BR>> 2010/6/4 noc <hawkingyy@hotmail.com>:<BR>> > Hi all,<BR>> ><BR>> > Now, I'm doing marching cubes. I wanna save the resault(the 3D image) to STL<BR>> > 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>> Try using vtkXMLPolyDataWriter to write a .vtp file and open it in<BR>> Paraview. If this result is also incorrect, then there is some problem<BR>> upstream in the pipeline. It doesn't look like you are doing anything<BR>> wrong with the vtkSTLWriter.<BR>> <BR>> David<BR>                                            <br /><hr />使用Messenger保护盾V2,支持多账号登录! <a href='http://www.windowslive.cn/safe/' target='_new'>现在就下载!</a></body>
</html>