[vtkusers] how to store vtkPolyData using vtkSTLWriter

Kailu Shan kailushan at 163.com
Wed May 17 04:38:04 EDT 2017


hi,


Usually I use vtkPolyDataWriter to store my vtkPolyData, but now failed by trying vtkSTLWriter. Below is my code:


vtkPolyData   *pvtkData= = vtkPolyData::New();
...
vtkSTLWriter *pstlWriter =vtkSTLWriter::New();
pstlWriter->SetInput(pvtkData);
pstlWriter->SetFileName("out.stl"); 
pstlWriter->Write();


How to make it work?


Best Regards,
Kailu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170517/f50b58d7/attachment.html>


More information about the vtkusers mailing list