[vtkusers] volume cropping

Bill Lorensen bill.lorensen at gmail.com
Thu Sep 6 08:35:24 EDT 2012


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/e7a78ba5/attachment.htm>


More information about the vtkusers mailing list