[vtkusers] formatting
Amy Squillacote
amy.squillacote at kitware.com
Thu Jun 2 13:04:45 EDT 2005
Hi Justin,
Assuming your vtk data file contains polygonal data, do the following.
vtkPolyDataReader *reader = vtkPolyDataReader::New();
reader->SetFileName("foo.vtk");
vtkSTLWriter *writer = vtkSTLWriter::New();
writer->SetFileName("foo.stl");
writer->Write();
reader->Delete();
writer->Delete();
- Amy
At 12:04 PM 6/2/2005, Justin wrote:
>does anybody know how to change a file from vtk format to stl format
>
>Thanks,
>Justin
>_______________________________________________
>This is the private VTK discussion list. Please keep messages on-topic.
>Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list