<div dir="ltr">You don't add the vtkPlaneCollection to the vtkPlanes. Don't use vtkPlanes at all, is what I was trying to say.<div><br></div><div>mapper->SetClippingPlanes(vtkPlaneCollection)</div><div><br></div><div>Forget that vtkPlanes even exists, please! That will make my life and your life a little bit easier, I think.</div><div><br></div><div> - David</div><div><br></div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 25, 2016 at 9:18 AM, Lonni Besançon <span dir="ltr"><<a href="mailto:lonni.besancon@gmail.com" target="_blank">lonni.besancon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok I solved the memory issue, It was just one pointer being freed later on in<br>
the code.<br>
<br>
However I don't see how to use the vtkPlaneCollection here. I can easily<br>
create it with:<br>
/vtkSmartPointer<vtkPlaneCollection> coll =<br>
vtkSmartPointer<vtkPlaneCollection>::New();<br>
coll->AddItem(plane);/<br>
<br>
Yet I don't know how to then set the collection (of just one but collection<br>
anyway I guess :D) to the vtkPlanes.<br>
Also the code I wrote so far compiles and run but I don't see the expected<br>
output, there's no clipping at all even though I do think that I can clearly<br>
see my plane move "through" my data<br></blockquote></div></div></div></div>