[vtkusers] How can I save to STL format?

noc hawkingyy at hotmail.com
Fri Jun 4 09:39:09 EDT 2010


Hi all,

 

Now, I'm doing marching cubes. I wanna save the resault(the 3D image) to STL format, 

I tried this:

--code--

vtkSTLWriter * writeSTL = vtkSTLWriter ::New();
  writeSTL->SetFileName("D:/data/feet.stl");
  writeSTL->SetInput(stripper->GetOutput());   //data from vtkStripper
  writeSTL->Write();

--code--

 

but it didn't work. The feet.stl is only 1KB.

However, I can see the 3D surface in RenderWindow. I don't konw why.

Could any one help me, please?

 

Thanks so much!!!

 

Regards,

 

Danile
 		 	   		  
_________________________________________________________________
MSN十年回馈,每位用户可免费获得价值25元的卡巴斯基反病毒软件2010激活码,快来领取!
http://kaba.msn.com.cn/?k=1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100604/e7eb96cb/attachment.htm>


More information about the vtkusers mailing list