[vtkusers] volume cropping

qlizhi qlizhi at gmail.com
Thu Sep 6 09:44:41 EDT 2012


If i remove the code :
volumeMapper->CroppingOn();
volumeMapper->SetCroppingRegionPlanes(10,33,10,33,10,33);
volumeMapper->SetCroppingRegionFlagsToSubVolume();

i can see the entire volume.  And i test it in VTK's example medical4, the result is the same.



qlizhi

From: Bill Lorensen
Date: 2012-09-06 20:35
To: qlizhi
CC: vtkusers
Subject: Re: [vtkusers] volume cropping
If you remove the cropping, do you see the entire volume?


On Thu, Sep 6, 2012 at 8:18 AM, qlizhi <qlizhi at gmail.com> wrote:

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

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers







-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120906/5740fbdf/attachment.htm>


More information about the vtkusers mailing list