<div dir="ltr">This looks perfect.  Thank you both so much!  <div><br></div><div style>There were a few examples with terrain, it turns out, and in my haste I missed the triangulate a terrain map.  I apologize for my oversight!</div>
<div style><br></div><div style>Have a great day</div><div style>Andy</div><div style><br></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">----------------------------------------------------------------------------------<div>
<font face="arial, helvetica, sans-serif">Mason (Andy) Kass, PhD<br>Research Geophysicist<br>Crustal Geophysics and Geochemistry Science Center<br></font><span style="font-family:arial,helvetica,sans-serif">US Geological Survey</span></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">PO Box 25046 Federal Center MS 964<br>Denver, CO 80225-0046<br><br>+1 303.236.1884<br><a href="mailto:mkass@usgs.gov" target="_blank">mkass@usgs.gov</a></font></div>
<div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Public calendar:</font></div><div><b style="font-family:Arial,sans-serif;font-size:small"><a href="http://www.google.com/calendar/embed?src=mkass%40usgs.gov&amp;ctz=America/Denver" style="color:rgb(17,85,204);font-weight:normal" target="_blank">http://www.google.com/calendar/embed?src=mkass%40usgs.gov&amp;ctz=America/Denver</a></b><font face="arial, helvetica, sans-serif"><br>
<br><i>Pluralitas non est ponenda sine necessitate.</i></font></div></div></div>
<br><br><div class="gmail_quote">On Fri, May 17, 2013 at 6:19 AM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">&gt;&gt; Good afternoon,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m having a problem which seems like it probably has a pretty simple<br>
&gt;&gt; solution, but I can&#39;t for the life of me get a code that works.  I&#39;m quite<br>
&gt;&gt; new to VTK, so not understanding the theory behind the examples isn&#39;t<br>
&gt;&gt; helping me much.<br>
&gt;&gt;<br>
&gt;&gt; Essentially, all I am trying to do is interpolate scattered terrain data<br>
&gt;&gt; onto a regular mesh, very similar to using meshgrid and griddata in Matlab<br>
&gt;&gt; (in fact identical).  I have a forum post here that shows what I&#39;m trying to<br>
&gt;&gt; do (including pictures) and what I&#39;ve tried in some detail:<br>
&gt;&gt; <a href="http://forum.codecall.net/topic/75495-c-using-vtk-to-interpolate-terrain-data/" target="_blank">http://forum.codecall.net/topic/75495-c-using-vtk-to-interpolate-terrain-data/</a><br>
&gt;&gt;<br>
&gt;&gt; I was unable to follow the interpolate terrain example, as it used regular<br>
&gt;&gt; data.  I THINK what I need to be using is the Shepard Method.  I&#39;ve<br>
&gt;&gt; downloaded and played with the example, but the outputs are contours; I need<br>
&gt;&gt; to be able to grab the interpolated point at particular locations (also it&#39;s<br>
&gt;&gt; in 3D instead of 2D, but I think I can overcome that).  I should also note<br>
&gt;&gt; that I need to interpolate everywhere within the domain--NaNs or fillers are<br>
&gt;&gt; not acceptable.<br>
&gt;&gt;<br>
&gt;&gt; If anyone has any advice or a tutorial they can point me to, I would be<br>
&gt;&gt; most appreciative.  The forum link above shows where I got stuck in my code,<br>
&gt;&gt; as well as having the matlab code that does what I want and a picture of<br>
&gt;&gt; what I&#39;m trying to get.  I didn&#39;t reproduce it on the email list to avoid<br>
&gt;&gt; sending large attachments to the email users--please let me know if that was<br>
&gt;&gt; an incorrect approach.<br>
&gt;&gt;<br>
&gt;&gt; Thank you so much for any help you can provide.<br>
&gt;&gt;<br>
&gt;&gt; Cheers<br>
&gt;&gt; Andy<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ----------------------------------------------------------------------------------<br>
&gt;&gt; Mason (Andy) Kass, PhD<br>
&gt;&gt; Research Geophysicist<br>
&gt;&gt; Crustal Geophysics and Geochemistry Science Center<br>
&gt;&gt; US Geological Survey<br>
&gt;&gt;<br>
&gt;&gt; PO Box 25046 Federal Center MS 964<br>
&gt;&gt; Denver, CO 80225-0046<br>
&gt;&gt;<br>
&gt;&gt; +1 303.236.1884<br>
&gt;&gt; <a href="mailto:mkass@usgs.gov">mkass@usgs.gov</a><br>
<br>
</div></div>Hi Andy,<br>
<br>
I just made an example of sampling/interpolating a set of points (that<br>
describe a f(x,y)-type surface) onto a grid here:<br>
<br>
<a href="http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/InterpolateMeshOnGrid" target="_blank">http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/InterpolateMeshOnGrid</a><br>
<br>
I hope it does what you were looking for.<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>