<div dir="ltr">Good afternoon,<div><br></div><div>I&#39;m having a problem which seems like it probably has a pretty simple solution, but I can&#39;t for the life of me get a code that works.  I&#39;m quite new to VTK, so not understanding the theory behind the examples isn&#39;t helping me much.</div>


<div><br></div><div>Essentially, all I am trying to do is interpolate scattered terrain data onto a regular mesh, very similar to using meshgrid and griddata in Matlab (in fact identical).  I have a forum post here that shows what I&#39;m trying to do (including pictures) and what I&#39;ve tried in some detail: <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></div>


<div><br></div><div>I was unable to follow the interpolate terrain example, as it used regular data.  I THINK what I need to be using is the Shepard Method.  I&#39;ve downloaded and played with the example, but the outputs are contours; I need to be able to grab the interpolated point at particular locations (also it&#39;s in 3D instead of 2D, but I think I can overcome that).  I should also note that I need to interpolate everywhere within the domain--NaNs or fillers are not acceptable.</div>


<div><br></div><div>If anyone has any advice or a tutorial they can point me to, I would be most appreciative.  The forum link above shows where I got stuck in my code, as well as having the matlab code that does what I want and a picture of what I&#39;m trying to get.  I didn&#39;t reproduce it on the email list to avoid sending large attachments to the email users--please let me know if that was an incorrect approach.</div>

<div><br></div><div>Thank you so much for any help you can provide.</div><div><br></div><div>Cheers</div><div>Andy</div><div><br></div>
<div><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>
</div></div>