<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&ctz=America/Denver" style="color:rgb(17,85,204);font-weight:normal" target="_blank">http://www.google.com/calendar/embed?src=mkass%40usgs.gov&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"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></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">>> Good afternoon,<br>
>><br>
>> I'm having a problem which seems like it probably has a pretty simple<br>
>> solution, but I can't for the life of me get a code that works. I'm quite<br>
>> new to VTK, so not understanding the theory behind the examples isn't<br>
>> helping me much.<br>
>><br>
>> Essentially, all I am trying to do is interpolate scattered terrain data<br>
>> onto a regular mesh, very similar to using meshgrid and griddata in Matlab<br>
>> (in fact identical). I have a forum post here that shows what I'm trying to<br>
>> do (including pictures) and what I've tried in some detail:<br>
>> <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>
>><br>
>> I was unable to follow the interpolate terrain example, as it used regular<br>
>> data. I THINK what I need to be using is the Shepard Method. I've<br>
>> downloaded and played with the example, but the outputs are contours; I need<br>
>> to be able to grab the interpolated point at particular locations (also it's<br>
>> in 3D instead of 2D, but I think I can overcome that). I should also note<br>
>> that I need to interpolate everywhere within the domain--NaNs or fillers are<br>
>> not acceptable.<br>
>><br>
>> If anyone has any advice or a tutorial they can point me to, I would be<br>
>> most appreciative. The forum link above shows where I got stuck in my code,<br>
>> as well as having the matlab code that does what I want and a picture of<br>
>> what I'm trying to get. I didn't reproduce it on the email list to avoid<br>
>> sending large attachments to the email users--please let me know if that was<br>
>> an incorrect approach.<br>
>><br>
>> Thank you so much for any help you can provide.<br>
>><br>
>> Cheers<br>
>> Andy<br>
>><br>
>><br>
>> ----------------------------------------------------------------------------------<br>
>> Mason (Andy) Kass, PhD<br>
>> Research Geophysicist<br>
>> Crustal Geophysics and Geochemistry Science Center<br>
>> US Geological Survey<br>
>><br>
>> 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">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>