[vtkusers] vtkSmartVolumeMapper ignoring clipping

Richard Whitehead richard.whitehead at vivosight.com
Fri Apr 11 06:28:48 EDT 2014


This looks like a bug in VTK?

I'm visualising a memory volume (vtkImageData) which is then connected to
a vtkImageClip so that only the valid parts of the volume are rendered.

Connecting that clipper into a vtkImageViewer2 to view slices works fine;
the invalid part of a slice is clipped off.

But connecting that same clipper into a vtkSmartVolumeMapper, which is set
as the mapper of a vtkVolume, the display always shows the whole extent of
my memory volume, ignoring the clipping.
I have set CroppingOn on the mapper, no effect.

If I set the mapper's clipping region with SetCroppingRegionPlanes then it
clips as expected, but I would have expected the mapper to take notice of
the "whole region" given by the clipper without me having to pass the clip
information around my program myself.

Please can someone tell me if this is wrong, or if not for now perhaps a
cheat so I can get the clipping region from the clipper and set it on the
mapper.

Many thanks,

Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140411/4a97a2d7/attachment.html>


More information about the vtkusers mailing list