Deprecated isosurface extraction in VTK 8 with OpenGL2 support

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Deprecated isosurface extraction in VTK 8 with OpenGL2 support

terminator via vtkusers
I can perform ray cast isosurface extraction using the following method in
VTK <= 8.0.1 with Legacy OpenGL support. I can visualize the extracted
surface without any issue, everything works perfect.

Now I want to port the same code with VTK 8.1.1 OpenGL2 (3.2) support. In
this version both vtkVolumeRayCastIsosurfaceFunction and
vtkVolumeRayCastMapper classes are deprecated. I have tried vtkContourFilter
instead of using these classes but never worked. How can I achieve the same
output using the new GPU mapper vtkOpenGLGPUVolumeRayCastMapper or

    void IsoExtraction::create(double _iso, vtkImageData* _data)
    p_iso_surf_func = vtkVolumeRayCastIsosurfaceFunction::New();
    p_mapper = vtkVolumeRayCastMapper::New();
    p_mapper->SetVolumeRayCastFunction(p_iso_surf_func); // Set volume ray
cast function
    // … addToLOD (p_mapper)
    // …
    void IsoExtraction::setIsoValue(double _iso)

Sent from:
Powered by

Visit other Kitware open-source projects at

Please keep messages on-topic and check the VTK FAQ at:

Search the list archives at:

Follow this link to subscribe/unsubscribe: