[vtkusers] creating a vtkPolyDataReader object from a string representation of a vtkPolyDataWriter
oregonduckman
oregonduckman at gmail.com
Mon Aug 15 14:50:33 EDT 2016
I am trying to convert the char * returned by
vtkPolyDataWriter::GetOutputString() as follows
polyDataString is a char * that points to a valid string from
vtkPolyDataWriter::GetOutputString() .
vtkSmartPointer<vtkPolyDataReader> transportedDataSetReader =
vtkSmartPointer<vtkPolyDataReader>::New();
transportedDataSetReader->DebugOn();
transportedDataSetReader->ReadFromInputStringOn();
transportedDataSetReader->SetInputString(polyDataString);
transportedDataSetReader->Update();
*** Update seems to fail with the following debug output.
Generic Warning: In
/builddir/build/BUILD/VTK-6.1.0/IO/Legacy/vtkDataReader.cxx, line 1388
Error reading ascii data. Possible mismatch of datasize with declaration.
Generic Warning: In
/builddir/build/BUILD/VTK-6.1.0/IO/Legacy/vtkDataReader.cxx, line 1388
Error reading ascii data. Possible mismatch of datasize with declaration.
Generic Warning: In
/builddir/build/BUILD/VTK-6.1.0/IO/Legacy/vtkDataReader.cxx, line 1388
Error reading ascii data. Possible mismatch of datasize with declaration.
Generic Warning: In
/builddir/build/BUILD/VTK-6.1.0/IO/Legacy/vtkDataReader.cxx, line 1388
--
View this message in context: http://vtk.1045678.n5.nabble.com/creating-a-vtkPolyDataReader-object-from-a-string-representation-of-a-vtkPolyDataWriter-tp5739765.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list