<div dir="ltr">Hi there,<br>already solved the issue.<br><br>Basically, once the <span style="font-family:courier new,monospace">vtkPlane </span>and <span style="font-family:courier new,monospace">vtkClipVolume </span>created, calling the <span style="font-family:courier new,monospace">AddClippingPlane(plane)</span> method of the <span style="font-family:courier new,monospace">vtkVolumeRayCastMapper </span>object made the trick.<br>
<br>I finally used the <span style="font-family:courier new,monospace">vtkImplicitPlaneWidget </span>class, and made the <span style="font-family:courier new,monospace">vtkClipVolume<span style="font-family:arial,helvetica,sans-serif"> object's output be its </span></span><span style="font-family:arial,helvetica,sans-serif">input.</span><br>
<br>Finally, it turned out that memory use did not rise dramatically using VTK directly.<br><br>HTH,<br>JON HAITZ<br><br><br><div class="gmail_extra"><br><div class="gmail_quote">On 11 June 2014 13:24, Jon Haitz Legarreta <span dir="ltr"><<a href="mailto:jhlegarreta@vicomtech.org" target="_blank">jhlegarreta@vicomtech.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5"><div dir="ltr"><div><div>Hi,<br></div>I was trying to build a scene where both <span>surface</span>
 and volume rendering are used, and the volume rendered dataset is cut 
thanks to a clipping plane. Although I guess this is perfectly 
possible with VTK, I was finding it a little bit complicated. <br></div>

<div><br>Thus, I decided to try with Paraview. A screenshot of what I have in mind is attached.<br><br></div><div>So
 based on the skull stripping contribution [1], I'd like to be able to 
load the original brainweb.mha dataset for that contribution, render the
 volume, then load the output of the segmentation, apply a contour 
filter, render the <span>surface</span>, and be able to apply a clipping
 plane (through the vtkImplicitPlaneWidget [2] or the 
vtkImplicitPlaneWidget2 [3]) to this last.<br>

<br>Basically, I'm finding it difficult to apply the 
vtkImplicitPlaneWidget or vtkImplicitPlaneWidget2 to the volume rendered
 object (the wiki examples [4] [5] act on PolyData types). <br><br>Can anyone cast some light on this, please?<br>
<br></div><div>Thank you,<br>JON HAITZ<br><br><br></div><div>P.S.:
 Although at this stage I'm not concerned with memory optimization, it 
looks like I'll need to, since for the brainweb dataset (~7 MB) and the 
corresponding skull stripping/brain segmentation (~10 MB) Paraview 
allocates between 6 and 10 GB of memory, with some peaks at 16 GB :-S. I
 don't know whether I'm missing some important information regarding 
this issue.<br>

</div><br><br>[1] <a href="http://www.insight-journal.org/browse/publication/859" target="_blank">http://www.insight-journal.org/browse/publication/859</a><br>[2] <a href="http://www.vtk.org/doc/nightly/html/classvtkImplicitPlaneWidget.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImplicitPlaneWidget.html</a><br>


[3] <a href="http://www.vtk.org/doc/nightly/html/classvtkImplicitPlaneWidget2.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImplicitPlaneWidget2.html</a><br>[4] <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImagePlaneWidget" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImagePlaneWidget</a><br>


[5] <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImplicitPlaneWidget2" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Widgets/ImplicitPlaneWidget2</a><br>
<div><div dir="ltr"><table cellpadding="0" cellspacing="0" align="center" border="0"><tbody><tr><td></td></tr><tr><td><table cellpadding="0" align="center" border="0"><tbody><tr><td><br></td></tr></tbody></table></td></tr>

</tbody></table></div></div>
</div>
</div></div></blockquote></div><br></div></div>