Announcement

Collapse
No announcement yet.

Convert Slicer-3D VTK files into STL files

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Convert Slicer-3D VTK files into STL files

    Hello,


    for a couple of days now I've tried to convert the output files of Slicer 3D
    into another format (preferably STL) with the VTK.exe program. Unfortunately
    I always get the same error message (unable to open the vtk-file). Has
    anybody a hint where I made the mistake? Below I copied the commands I've
    used, which can be found on the Slicer 3D homepage.

    vtkPolyDataReader pdr
    pdr SetFileName in.vtk
    vtkCleanPolyData clean
    clean SetInput [pdr GetOutput]
    vtkTriangleFilter triangles
    triangles SetInput [clean GetOutput]
    vtkSTLWriter sw
    sw SetFileName out.stl
    sw SetInput [triangles GetOutput]
    sw SetFileTypeToBinary
    sw Write

    Thank you in advance for an answer,
    best regards,
    Andreas Gömmel


    --
    Dipl.-Ing.
    Andreas Gömmel
    RWTH Aachen University
    Lehrstuhl für Baustatik und Baudynamik
    (Structural Statics and Dynamics)
    Mies-van-der-Rohe-Str. 1
    D-52074 Aachen
    Tel: +49 - 241 - 80 25 870
    Fax: +49 - 241 - 80 22 303
    Web: www.lbb.rwth-aachen.de
Working...
X