[vtkusers] vtkExtractVOI and volume raycast
Richard Layman
mdl_126 at hotmail.com
Thu Dec 22 14:57:55 EST 2005
Thanks for the suggestion. However, it doesn't seem to do anything with
VTK4.2. :(
>From: "Jean M. Favre" <jfavre at cscs.ch>
>To: Richard Layman <mdl_126 at hotmail.com>
>CC: vtkusers at vtk.org
>Subject: Re: [vtkusers] vtkExtractVOI and volume raycast
>Date: Thu, 22 Dec 2005 12:05:40 +0100
>
>Richard Layman wrote:
>
> >>> I made some changes to the VolumeRendering/SimpleRayCast example.
> >>> Basically what I wanted to do is to dynamically select a subvolume
> >>> within a given data volume to render. I use vtkExtractVOI to get the
> >>> subvolume I want and feed this to the rendering pipeline. An outline
> >>> is added for reference.
> >>>
>
>I can suggest an alternative which works very well for me. I do not use
>a vtkExtractVOI, but rather tell directly the mappers to do cropping. In
>my application, I use three different mappers (vtkVolumeTextureMapper2D,
> vtkVolumeTextureMapper3D, and vtkFixedPointVolumeRayCastMapper) which
>all support the following options:
>
> vm2 SetCroppingRegionFlagsToSubVolume
> vm2 SetCroppingRegionPlanes $xminslice $xmaxslice $yminslice
>$ymaxslice $zminslice $zmaxslice
>
>the last call takes the same 6 plane indices which you are using with
>your ExtractVOI.
>
>
>--
>Dr. Jean M. Favre, email:favre @ cscs.ch
>http://www.cscs.ch/about/Favre.php
>CSCS, Swiss National Supercomputing Centre | Tel: +41 (91) 610.82.40
>Via Cantonale, 6928 Manno, Switzerland | Fax: +41 (91) 610.82.82
_________________________________________________________________
Dont just search. Find. Check out the new MSN Search!
http://search.msn.click-url.com/go/onm00200636ave/direct/01/
More information about the vtkusers
mailing list