<div dir="ltr">Cool! Thanks for reporting your findings back to the list.<div><br></div><div>Cory</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 4, 2016 at 3:15 AM, Miorelli, Federico <span dir="ltr"><<a href="mailto:Federico.Miorelli@cgg.com" target="_blank">Federico.Miorelli@cgg.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">Cory,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">I did some digging and it turns out I can obtain what I want with clipping planes applied to actors.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">I have a vtkBoxWidget that controls the position of the 6 clipping planes and on every EndInteractionEvent I cycle on the visible actors and call SetClippingPlanes on them.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">Cheers,<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d">Federico<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:Consolas;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#0093d0">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#8cc63f">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#fcb034">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b"><u></u><u></u></span></b></p>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#404040">Federico Miorelli</span><span lang="IT" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="IT" style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Senior R&D Geophysicist<u></u><u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Subsurface Imaging - General Geophysics
</span></b><b><span style="font-size:9.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Italy</span></b><span style="font-size:8.0pt;font-family:"Calibri","sans-serif";color:#404040"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Calibri","sans-serif";color:#404040"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</span><p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Cory Quammen [mailto:<a href="mailto:cory.quammen@kitware.com" target="_blank">cory.quammen@kitware.<wbr>com</a>]
<br><span class="">
<b>Sent:</b> lunedì 3 ottobre 2016 15:04<br>
<b>To:</b> Miorelli, Federico<br>
<b>Cc:</b> <a href="mailto:vtkusers@vtk.org" target="_blank">vtkusers@vtk.org</a><br>
<b>Subject:</b> Re: [vtkusers] Clipping multiple actors in scene<u></u><u></u></span></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
</font></span><div><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal">Federico,<u></u><u></u></p></font></span><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">If all your actors will have the same display properties, such as surface color or coloring by the same data array, you could group your data sets together with vtkMultiBlockDataGroupFilter [1] and then use a single vtkClipDataSet on the
 multiblock data set it produces. If different actors have different display properties, I don't believe there is a solution that avoids doing it the hard way.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Alternately, some planar cutting can be done by changing vtkCamera's clipping range. This would not require grouping the data sets together.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">HTH,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Cory<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">[1] <a href="http://www.vtk.org/doc/nightly/html/classvtkMultiBlockDataGroupFilter.html" target="_blank">http://www.vtk.org/doc/<wbr>nightly/html/<wbr>classvtkMultiBlockDataGroupFil<wbr>ter.html</a><u></u><u></u></p>
</div>
</div></div></div><div><div class="h5">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Oct 3, 2016 at 6:41 AM, Miorelli, Federico <<a href="mailto:Federico.Miorelli@cgg.com" target="_blank">Federico.Miorelli@cgg.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:Consolas">Dear All,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas">I have a 3D scene with several actors coming from different sources.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas">I would like to introduce a global clipping tool to cut with a box or a plane all the currently active objects, in order to "see through" the
 scene.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas">I understand I can cut a single dataset with vtkClipDataSet, but I could not find a way to do it globally for the scene, except by manually iterating
 on my datasets and doing it the hard way.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas">Is there a way to obtain something like this?</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas">Thanks,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas">Regards</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas">Federico</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#0093d0">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#8cc63f">______</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#6a737b">
</span></b><b><span lang="IT" style="font-size:18.5pt;font-family:"Arial","sans-serif";color:#fcb034">______</span></b><u></u><u></u></p>
<p class="MsoNormal"><span lang="IT" style="color:#404040">Federico Miorelli</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="IT" style="color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span lang="IT" style="color:#1f497d">Senior R&D Geophysicist</span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;color:#1f497d">Subsurface Imaging - General Geophysics
</span></b><b><span style="font-size:9.0pt;color:#1f497d">Italy</span></b><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:8.0pt;color:#404040"> </span><u></u><u></u></p>
</div>
<p class="MsoNormal"><i><span lang="EN-GB" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#6a737b">This email and any accompanying attachments are confidential. If you received this email
 by mistake, please delete<br>
it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited.</span></i><u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_<wbr>FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">
http://markmail.org/search/?q=<wbr>vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/vtkusers</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal">Cory Quammen<br>
Staff R&D Engineer<br>
Kitware, Inc.<u></u><u></u></p>
</div>
</div>
</div></div></div><div><div class="h5">
<p class="MsoNormal"><i><span lang="EN-GB" style="font-size:7.0pt;font-family:"Arial","sans-serif";color:#6a737b">This email and any accompanying attachments are confidential. If you received this email by mistake, please delete<br>
it from your system. Any review, disclosure, copying, distribution, or use of the email by others is strictly prohibited.<u></u><u></u></span></i></p>
</div></div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Cory Quammen<br>Staff R&D Engineer<br>Kitware, Inc.</div>
</div>