WriteToOutputStringOn() not working in vtkSTLWriter
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
A CMake project demonstrating this issue can be found here: https://github.com/hrobeers/VTK_StlWriteToStringIssue
The detailed description can be found in the README file, or below:
This repository contains code to reproduce an issue with writing an STL file to a binary string.
To make the vtkSTLWriter object write to a string instead of a file, the following method is called: WriteToOutputStringOn().
When calling the Write() method, vtk produces the following error message: "vtkSTLWriter (0x823bac0): Please specify FileName to write". Why should a FileName be specified when writing to a binary string?
The GetOutputString() method returns a null pointer, so vtkSTLWriter didn't write to the OutputString.
How to reproduce?
Run the following scripts in the current folder:
- Arch Linux
- gcc 4.9.2