[vtkusers] how to export volume?

shinaji t_shinaji at chiba-u.jp
Mon Dec 3 01:53:15 EST 2012


Hi Abhishek,

If you want to get a volume data file, take try vtkXMLImageDataWriter.
Here is an example.

        writer = vtk.vtkXMLImageDataWriter()
        writer.SetFileName(FileName)
        writer.SetInputConnection(imageData.GetProducerPort())
        writer.Write()

If you want to render a volume data, see 
http://vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/VolumeRendering/Cxx/FixedPointVolumeRayCastMapperCT.cxx

Regards
Shinaji








--
View this message in context: http://vtk.1045678.n5.nabble.com/how-to-export-volume-tp5717372p5717373.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list