Skip to content

16842: Fix reslice SplitMode, Stencil incompatibility

David Gobbi requested to merge dgobbi/vtk:16842-reslice-block-stencil into master

This commit fixes #16842 (closed) for vtkImageReslice. If GenerateStencilOutput is On, then stencil->InsertNextExtent() is called when vtkImageReslice's execute method completes a row, but if a row has been split among more than one piece, the stencil will be corrupted. It's only when SplitMode is "Block" that this is likely to occur. The fix used here is to detect when rows might be split, and to adjust the split mode so that it won't occur if GenerateStencilOutput is On.

Closes #16842 (closed)

Merge request reports