[vtkusers] some questions about cells, file formats, etc

David Doria daviddoria at gmail.com
Mon Jan 9 18:50:50 EST 2012


On Mon, Jan 9, 2012 at 5:43 PM, nuno.jf <nunofernandes7 at gmail.com> wrote:
> Can this happen due to the way I am writing the output file?
>
>        vtkPolyData * out = vtkPolyData::New();
>        out = mc->GetOutput();
>        out ->Update();
>
>        //Writer
>        vtkPolyDataWriter *writer =vtkPolyDataWriter::New();
>        writer ->SetInput(out);
>        writer->SetFileTypeToASCII();
>        writer ->SetFileName("saida.vtk");
>        writer ->Update();

Use vtkXMLPolyDataWriter to write a .vtp file.



More information about the vtkusers mailing list