<div dir="ltr"><div>Hi Andrea,<br><br></div>This is achievable using a Programmable Filter, with the following script : <br><br>

<pre style="margin:12px 0px 0px;text-indent:0px"><span style="font-family:"monospace"">inpMain </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";color:rgb(0,128,0)">self</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">GetInputDataObject( </span><span style="font-family:"monospace";color:rgb(102,102,102)">0</span><span style="font-family:"monospace"">, </span><span style="font-family:"monospace";color:rgb(102,102,102)">0</span><span style="font-family:"monospace""> )</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">inpCut </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";color:rgb(0,128,0)">self</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">GetInputDataObject( </span><span style="font-family:"monospace";color:rgb(102,102,102)">0</span><span style="font-family:"monospace"">, </span><span style="font-family:"monospace";color:rgb(102,102,102)">1</span><span style="font-family:"monospace""> )</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">out </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> </span><span style="font-family:"monospace";color:rgb(0,128,0)">self</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">GetOutput()</span></pre>
<pre style="margin:0px;text-indent:0px;font-family:"monospace""><br></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">cutter </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> vtk</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">vtkCutter()</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">cutter</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">SetInputDataObject( inpMain )</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">cutFunction </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> vtk</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">vtkImplicitPolyDataDistance()</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">cutFunction</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">SetInput( inpCut )</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">cutter</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">SetCutFunction( cutFunction )</span></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">cutter</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">Update()</span></pre>
<pre style="margin:0px;text-indent:0px;font-family:"monospace""><br></pre>
<pre style="margin:0px;text-indent:0px"><span style="font-family:"monospace"">outData </span><span style="font-family:"monospace";color:rgb(102,102,102)">=</span><span style="font-family:"monospace""> cutter</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">GetOutputDataObject( </span><span style="font-family:"monospace";color:rgb(102,102,102)">0</span><span style="font-family:"monospace""> )</span></pre>
<pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:"monospace"">out</span><span style="font-family:"monospace";color:rgb(102,102,102)">.</span><span style="font-family:"monospace"">DeepCopy(outData)<br><br></span></pre><pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:"monospace""><span style="font-family:arial,helvetica,sans-serif">(thanks @Yves Roger for providing it here :  <a href="https://public.kitware.com/pipermail/paraview/2015-April/033903.html">https://public.kitware.com/pipermail/paraview/2015-April/033903.html</a>)</span><br><br></span></pre><pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:"monospace""><font face="arial,helvetica,sans-serif">In case you do not know how to use the programmable filter in this case, I have included a StateFile that demonstrate it.<br>Notice that we are using an "output data type : vtkPolyData".<br><br></font></span></pre><pre style="margin:0px 0px 12px;text-indent:0px"><span style="font-family:"monospace""><font face="arial,helvetica,sans-serif">Best regards,<br></font></span></pre><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mathieu Westphal<br></div></div></div>
<br><div class="gmail_quote">On Wed, Apr 25, 2018 at 7:49 AM, Caffagni, Andrea <span dir="ltr"><<a href="mailto:Andrea.Caffagni@ferrari.com" target="_blank">Andrea.Caffagni@ferrari.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div class="m_-3525935612041135106WordSection1">
<p class="MsoNormal"><span style="color:#1f497d">Nobody has had to face this problem in the past? Is it an impassable obstacle to paraview at the moment?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d">Andrea<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p>
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<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""> ParaView [mailto:<a href="mailto:paraview-bounces@public.kitware.com" target="_blank">paraview-bounces@<wbr>public.kitware.com</a>]
<b>On Behalf Of </b>Caffagni, Andrea<br>
<b>Sent:</b> Sunday, April 22, 2018 12:32<br>
<b>To:</b> <a href="mailto:paraview@public.kitware.com" target="_blank">paraview@public.kitware.com</a><br>
<b>Subject:</b> [Paraview] Clip a domain using a close surface<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dear users,<u></u><u></u></p>
<p class="MsoNormal">I need to clip a domain with a close surface.<u></u><u></u></p>
<p class="MsoNormal">More in details I have a cfd domain with pressure and velocity field, I import a table of point and I create a closed surface using delunay3d filters.<u></u><u></u></p>
<p class="MsoNormal">At this stage, I would clip the computational domain using the close surface dividing the cfd domain or in the internal part of the close surface or in the external part.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have tried using clip with scalars, but I am not able to understand how use it properly.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks for the suggestions,<u></u><u></u></p>
<p class="MsoNormal">Andrea<u></u><u></u></p>
<p>______________________________<wbr>______________________________<wbr>______________________________<wbr>_______________________<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>Questo messaggio è da intendersi esclusivamente ad uso del destinatario e può contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non è il destinatario designato,
 o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione è vietata anche ai sensi della normativa vigente in materia di protezione dei
 dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema.<u></u><u></u></p>
<p>______________________________<wbr>______________________________<wbr>______________________________<wbr>_______________________<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent
 responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake,
 please notify us immediately by return e-mail and delete this e-mail and all attachments from your system.<u></u><u></u></p>
<p> <u></u><u></u></p>
<p>______________________________<wbr>______________________________<wbr>______________________________<wbr>_______________________ <u></u><u></u></p>
</div>
<p>______________________________<wbr>______________________________<wbr>______________________________<wbr>_______________________</p>
<p> </p>
<p>Questo messaggio è da intendersi esclusivamente ad uso del destinatario e può contenere informazioni che sono di natura privilegiata, confidenziale o non divulgabile secondo le leggi vigenti. Se il lettore del presente messaggio non è il destinatario designato,
 o il dipendente/agente responsabile per la consegna del messaggio al destinatario designato, si informa che ogni disseminazione, distribuzione o copiatura di questa comunicazione è vietata anche ai sensi della normativa vigente in materia di protezione dei
 dati personali. Se avete ricevuto questo messaggio per errore, vi preghiamo di notificarcelo immediatamente a mezzo e-mail di risposta e successivamente di procedere alla cancellazione di questa e-mail e relativi allegati dal vostro sistema.</p>
<p>______________________________<wbr>______________________________<wbr>______________________________<wbr>_______________________</p>
<p> </p>
<p>This message is intended only for the use of the addressee and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent
 responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited under the applicable data protection law. If you have received this e-mail by mistake,
 please notify us immediately by return e-mail and delete this e-mail and all attachments from your system.</p>
<p> </p>
<p>______________________________<wbr>______________________________<wbr>______________________________<wbr>_______________________ </p>
</div>

<br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://public.kitware.com/<wbr>mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>