[vtkusers] how to store vtkPolyData using vtkSTLWriter

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed May 17 09:46:17 EDT 2017


Try SetInputData instead of SetInput

On Wed, May 17, 2017 at 4:38 AM, Kailu Shan <kailushan at 163.com> wrote:

> 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
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170517/ce7b60d8/attachment.html>


More information about the vtkusers mailing list