[vtkusers] volume cropping

qlizhi qlizhi at gmail.com
Mon Sep 3 23:16:26 EDT 2012


Hi All,
I'm trying to take a vtkImageData volume and crop it with the below codes: (the volume data is headsq/quarter)

  vtkSmartPointer<vtkVolumeRayCastMapper> volumeMapper =
    vtkSmartPointer<vtkVolumeRayCastMapper>::New();
  volumeMapper->SetInput(v16->GetOutput());
  volumeMapper->SetVolumeRayCastFunction(rayCastFunction);
  volumeMapper->CroppingOn();
  volumeMapper->SetCroppingRegionPlanes(10,33,10,33,10,33);
  volumeMapper->SetCroppingRegionFlagsToSubVolume();

But what i get is an black widget ???
Best Regards,



qlizhi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120904/c78021b1/attachment.htm>


More information about the vtkusers mailing list