[vtkusers] Show whole volume under a slice

David Gobbi david.gobbi at gmail.com
Thu Feb 25 11:23:52 EST 2016


You don't add the vtkPlaneCollection to the vtkPlanes. Don't use vtkPlanes
at all, is what I was trying to say.

mapper->SetClippingPlanes(vtkPlaneCollection)

Forget that vtkPlanes even exists, please!  That will make my life and your
life a little bit easier, I think.

 - David


On Thu, Feb 25, 2016 at 9:18 AM, Lonni Besançon <lonni.besancon at gmail.com>
wrote:

> Ok I solved the memory issue, It was just one pointer being freed later on
> in
> the code.
>
> However I don't see how to use the vtkPlaneCollection here. I can easily
> create it with:
>         /vtkSmartPointer<vtkPlaneCollection> coll =
> vtkSmartPointer<vtkPlaneCollection>::New();
>         coll->AddItem(plane);/
>
> Yet I don't know how to then set the collection (of just one but collection
> anyway I guess :D) to the vtkPlanes.
> Also the code I wrote so far compiles and run but I don't see the expected
> output, there's no clipping at all even though I do think that I can
> clearly
> see my plane move "through" my data
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160225/1776f925/attachment.html>


More information about the vtkusers mailing list