Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 740
    • Issues 740
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 198
    • Merge requests 198
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #15314
Closed
Open
Created Feb 09, 2015 by Kitware Robot@kwrobotOwner

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:

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
Assignee
Assign to
Time tracking