<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif}
a:link, span.MsoHyperlink
{color:#0563C1;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif}
p.msonormal0, li.msonormal0, div.msonormal0
{margin-right:0in;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
p.msochpdefault, li.msochpdefault, div.msochpdefault
{margin-right:0in;
margin-left:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif}
span.emailstyle17
{font-family:"Calibri",sans-serif}
span.EmailStyle21
{font-family:"Calibri",sans-serif}
span.EmailStyle22
{font-family:"Calibri",sans-serif}
span.EmailStyle23
{font-family:"Calibri",sans-serif}
.MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.WordSection1
{}
ol
{margin-bottom:0in}
ul
{margin-bottom:0in}
-->
</style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div id="compose-container" itemscope="" itemtype="https://schema.org/EmailMessage" style="direction:ltr">
<span itemprop="creator" itemscope="" itemtype="https://schema.org/Organization"><span itemprop="name"></span></span>
<div>
<div>
<div style="direction:ltr">Humm, yes, I think you are right. Mea Culpa</div>
<div><br>
</div>
<div style="direction:ltr">It should works. I will try to review your script tomorrow.
</div>
</div>
<div><br>
</div>
<div class="acompli_signature">Get <a href="https://aka.ms/o0ukef">Outlook for iOS</a></div>
</div>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Andrew E. Slaughter <andrew.slaughter@inl.gov><br>
<b>Sent:</b> Tuesday, November 27, 2018 12:39:35 AM<br>
<b>To:</b> Jonathan Borduas; vtkusers<br>
<b>Subject:</b> Re: [vtkusers] Mesh Interpolation</font>
<div> </div>
</div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks for the information, but I don’t see where the vtkInterpolateDataSetAttribute documentation discusses implicit functions. My reason for going down this path is as follows:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">The documentation states “</span>vtkInterpolateDataSetAttributes is a filter that interpolates data set attribute values between input data sets.<span style="font-size:11.0pt">” This is exactly my situation.
I have two vtkUnstructuredGrid objects (which is a vtkDataSet). Each of these objects contain vtkPointData (which is a vtkDataSetAttributes). These two objects are exactly the same with respect to the number of nodes, cells, etc.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">If you can explain why my understanding of this class is wrong I would appreciate it.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I used the example you provided as a guide to setting up the vtkInterpolateDataSetAttribute object, but a problem I am seeing with the interpolation is that the number of input ports is always reporting 1
in the vtkInterpolateDataSetAttribute object, regardless of how many items I add. I can’t set the number of points in python, since the SetNumberOfInputPorts is a protected member, thus not part of the python API. I will keep investigating this, thanks for
your help.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Jonathan Borduas <jonathan.borduas@caboma.com><br>
<b>Date: </b>Monday, November 26, 2018 at 10:00 PM<br>
<b>To: </b>"Andrew E. Slaughter" <andrew.slaughter@inl.gov>, vtkusers <vtkusers@vtk.org><br>
<b>Subject: </b>RE: [vtkusers] Mesh Interpolation</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">See the test of the vtkInterpolateDataSetAttributes:</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.vtk.org_gitweb-3Fp-3DVTK.git-3Ba-3Dblob-3Bf-3DFilters_Hybrid_Testing_Python_3DMorph.py&d=DwMGaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=axwcLPpoiBAwLGukOnCod5sBNR8H6iwjHEZzqOt42f0&s=E0pqg65BmyPlyhMeb9i9kudpH5yoQmJsE7DtjwAH28w&e=">https://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/Hybrid/Testing/Python/3DMorph.py</a><br>
<br>
Didn’t understand why you would need to use that class though. <br>
<br>
I think the name is misleading you. If you look at the example, this isn’t for data interpolation ! It is for the interpolation of implicit functions (as seen in the test).
<br>
<br>
More on implicit functions: <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.vtk.org_doc_nightly_html_classvtkImplicitFunction.html&d=DwMGaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=axwcLPpoiBAwLGukOnCod5sBNR8H6iwjHEZzqOt42f0&s=RSejo5gmFIa-9ILQrG7UZD5NgvcpxnwvBh9-mXzC0fo&e=">https://www.vtk.org/doc/nightly/html/classvtkImplicitFunction.html</a>
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">vtkInterpolateDataSetAttributes actually looks more like an Optimal Transport Interpolator:
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.youtube.com_watch-3Fv-3D6nhfArEM4Sg&d=DwMGaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=axwcLPpoiBAwLGukOnCod5sBNR8H6iwjHEZzqOt42f0&s=GR9UMU1eEHx7lhmZz0mJ_cSBRIGz2A56NzXupdmRRLk&e=">
https://www.youtube.com/watch?v=6nhfArEM4Sg</a></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Jonathan</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> Andrew E. Slaughter <andrew.slaughter@inl.gov>
<br>
<b>Sent:</b> Monday, November 26, 2018 11:43 PM<br>
<b>To:</b> Jonathan Borduas <jonathan.borduas@caboma.com>; vtkusers <vtkusers@vtk.org><br>
<b>Subject:</b> Re: [vtkusers] Mesh Interpolation</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span style="font-size:11.0pt">I nearly have the problem figured out, but I cannot get vtkInterpolateDataSetAttributes to run. If anyone has experience with this class I would appreciate some insight into it use. I am using the object on
line 114 of the attached script.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="color:black">From: </span></b><span style="color:black">Jonathan Borduas <<a href="mailto:jonathan.borduas@caboma.com">jonathan.borduas@caboma.com</a>><br>
<b>Date: </b>Monday, November 26, 2018 at 11:17 AM<br>
<b>To: </b>"Andrew E. Slaughter" <<a href="mailto:andrew.slaughter@inl.gov">andrew.slaughter@inl.gov</a>>, vtkusers <<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>><br>
<b>Subject: </b>Re: [vtkusers] Mesh Interpolation</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<div id="compose-container">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Andrew,</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">One way to interpolate point and cell data between two mesh: you can use the vtkPointInterpolator with a Voronoi Kernel (or other kernel), do a itk::DiscreteGaussianImageFilter over the 3D image to smooth
the interpolation and then do a vtkProbeFilter. </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Best,</span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Jonathan</span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Get <a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__aka.ms_o0ukef&d=DwMF-g&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=aAOXM3i-LCmwbKnx-O9gSjuXokpbn-5eRK65fXdzvCg&s=fr7AzqyWyyeMEM2RozZhbe697LCCwggGrGZtJhKSQAY&e=">
Outlook for iOS</a></span></p>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="font-size:11.0pt; color:black">From:</span></b><span style="font-size:11.0pt; color:black"> vtkusers <<a href="mailto:vtkusers-bounces@public.kitware.com">vtkusers-bounces@public.kitware.com</a>> on behalf of Andrew E. Slaughter
via vtkusers <<a href="mailto:vtkusers@public.kitware.com">vtkusers@public.kitware.com</a>><br>
<b>Sent:</b> Monday, November 26, 2018 1:09:55 PM<br>
<b>To:</b> vtkusers<br>
<b>Subject:</b> [vtkusers] Mesh Interpolation</span><span style="font-size:11.0pt">
</span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I need to perform interpolation of data between two ExodusII files that differ because of refinement. I was hoping someone could point me in the
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">correct direction for performing this action. I have attached the Exodus files that I am working with as well as a script that reads and displays the two files.
</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I am using VTK7.1 (I can use 8 if needed) on MacOS.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Here is the steps that I envision, but I am open to all options:</span></p>
<p class="MsoListParagraph" style="margin-left:1.0in; text-indent:-.25in"><span style="">1.<span style="font:7.0pt "Times New Roman"">
</span></span><span style="font-size:11.0pt">Interpolate the result from the coarse mesh to the fine mesh (I don’t know how to do this step).</span></p>
<p class="MsoListParagraph" style="margin-left:1.0in; text-indent:-.25in"><span style="">2.<span style="font:7.0pt "Times New Roman"">
</span></span><span style="font-size:11.0pt">Use vtkInterpolateDataSetAttributes to interpolate between the result from (1) and the fine mesh.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks for the help,</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Andrew</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span></p>
</div>
</div>
</div>
</div>
</body>
</html>