[vtkusers] How can I save to STL format?

David Doria daviddoria+vtk at gmail.com
Sat Jun 19 16:45:29 EDT 2010


2010/6/4 noc <hawkingyy at hotmail.com>:
> Thank u so much!
> You're right, The STLWriter only writes triangles. If I use the following
> code, it works!
> --code--
> vtkSTLWriter * writeSTL = vtkSTLWriter ::New();
>   writeSTL->SetFileName("D:/data/feet1.STL");
>   writeSTL->SetInput(marchingcubes->GetOutput());    //data directly from
> Marching Cubes
>   writeSTL->Write();
> --code--
>
> Thanks again!!!
>
> Daniel

FYI I posted a bug here:

http://public.kitware.com/Bug/view.php?id=10854

Thanks,

David



More information about the vtkusers mailing list