[vtkusers] volume visualization with vtk

David Gobbi david.gobbi at gmail.com
Mon Oct 29 16:55:18 EDT 2012


The example is for VTK 5.10 and later.  You might be using an older
version of VTK.

To make it work for you, remove "#include <vtkImageMapper3D.h>
and then replace this line:

 actor->GetMapper()->SetInputConnection(reader->GetOutputPort());

with the following:

 actor->SetInput(reader->GetOutput());

That should be enough to make the example compile with VTK 5.8
or older versions of VTK.

 - David


On Mon, Oct 29, 2012 at 2:45 PM, Sidou_3D <draoua.ahmed at gmail.com> wrote:
> Hello
> thank you for your answer
> My 3D object was read by Paraview
> The example I tested is as follows:
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/MetaImageReader
> but the "vtkImageMapper3D.h" does not exists
> I download it but the problem remains during compilation
>
> Ahmed
>
>
>
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/volume-visualization-with-vtk-tp5716849p5716888.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list