[vtk-developers] Possible bug for string output in vtkXMLPolyDataWriter

joaoroberto88 joaorobertojr88 at gmail.com
Tue Jun 23 13:03:07 EDT 2015


Hi Devs,

I'm using vtkXMLPolyDataWriter to record a poly data as string in a
database. I noticed that is mandatory to set the output file name (which
doesn't make sense for a string output). Below is my code:

vtkSmartPointer<vtkXMLPolyDataWriter> writer =
vtkSmartPointer<vtkXMLPolyDataWriter>::New();

writer->SetFileName("MeshPolyData");
writer->SetInputData(this->polyData);
writer->WriteToOutputStringOn();
writer->Write();
    
return QString::fromStdString(writer->GetOutputString());

If I remove SetFileName method call, an exception is thrown.

Could anyone confirm this?



--
View this message in context: http://vtk.1045678.n5.nabble.com/Possible-bug-for-string-output-in-vtkXMLPolyDataWriter-tp5732503.html
Sent from the VTK - Dev mailing list archive at Nabble.com.


More information about the vtk-developers mailing list