<div dir="ltr">Look here:<br><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/TriangulateTerrainMap">http://vtk.org/Wiki/VTK/Examples/Cxx/Filtering/TriangulateTerrainMap</a><br></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Thu, May 16, 2013 at 5:58 PM, Kass, Mason <span dir="ltr"><<a href="mailto:mkass@usgs.gov" target="_blank">mkass@usgs.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Good afternoon,<div><br></div><div>I'm having a problem which seems like it probably has a pretty simple solution, but I can't for the life of me get a code that works. I'm quite new to VTK, so not understanding the theory behind the examples isn'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'm trying to do (including pictures) and what I'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'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'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'm trying to get. I didn'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><a href="tel:%2B1%20303.236.1884" value="+13032361884" target="_blank">+1 303.236.1884</a><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>
</div></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>