View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015314VTK(No Category)public2015-02-10 05:362015-08-12 13:46
Reporterhrobeers 
Assigned ToT.J. Corona 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.10.1 
Target VersionFixed in Version 
Summary0015314: WriteToOutputStringOn() not working in vtkSTLWriter
DescriptionA 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:


# StlWriteIssue
This repository contains code to reproduce an issue with writing an STL file to a binary string.


## The issue
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:

$ ./build.sh

$ ./run.sh


## Details
Tested on:

- Arch Linux
- vtk-5.10
- gcc 4.9.2
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0034202)
hrobeers (reporter)
2015-02-10 06:58

It's very confusing that vtkSTLWriter doesn't support the full vtkWriter interface without any documentation or NotImplemented exception.
(0034977)
T.J. Corona (developer)
2015-08-12 13:46

This issue is fixed in VTK6.

 Issue History
Date Modified Username Field Change
2015-02-10 05:36 hrobeers New Issue
2015-02-10 06:58 hrobeers Note Added: 0034202
2015-08-12 13:42 T.J. Corona Assigned To => T.J. Corona
2015-08-12 13:46 T.J. Corona Note Added: 0034977
2015-08-12 13:46 T.J. Corona Status backlog => closed
2015-08-12 13:46 T.J. Corona Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team