Skip to content

Resolve "The vtkImageResliceMapper shows a black polygon when slice is out of bounds."

David Gobbi requested to merge dgobbi/vtk:17265-reslicemapper-render into release

For OpenGL2, the vtkOpenGLImageSliceMapper:RenderPolygon was being called even if the slice specified by vtkImageResliceMapper was beyond the volume bounds. This caused a regression: specifically, when the slice moved out-of-bounds the old polygon would be reused even though no polygon should be displayed at all. The fix is for RenderPolygon to return early if no polygon should be displayed.

Closes #17265 (closed)

Edited by David E. DeMarle

Merge request reports