[vtkusers] volume cropping

qlizhi qlizhi at gmail.com
Thu Sep 6 08:18:14 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/20120906/4c81111d/attachment.htm>


More information about the vtkusers mailing list