[vtkusers] Non-orthogonal volume cropping

David Gobbi david.gobbi at gmail.com
Mon Jun 24 21:19:28 EDT 2013


On Mon, Jun 24, 2013 at 12:13 PM, Brock Toews <brock.toews at gmail.com> wrote:
> The subject line is fairly self explanatory. Does anyone know how one might be able to crop a vtkVolume with non-orthogonal planes?

Make a vtkPlaneCollection object and add up to six vtkPlane objects to
it (one for each desired clipping plane).  Then call this on the mapper:

mapper->SetClippingPlanes(planeCollection)

Try it on one of the older volume mappers first, for example on the
vtkFixedPointVolumeRayCastMapper or vtkVolumeTextureMapper3D,
before trying it on the newer GPU volume mappers.

 - David



More information about the vtkusers mailing list