<br><br><div class="gmail_quote">On Sat, Jun 13, 2009 at 3:24 PM, Jordi Gutiérrez Hermos <span dir="ltr"><<a href="mailto:jordigh@gmail.com">jordigh@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I have what seems to me like a common problem: given points (x,y,z)<br>
defining a terrain, i.e. z = f(x,y), define a Delaunay triangulation<br>
on the x-y plane and use that to plot the interpolated surface.<br>
<br>
Does someone have sample code ready to do this?<br>
<br>
Pardon my laziness, but reading the VTK books there seems to be lots<br>
of what to me seems like cruft about lighting, cameras, actors, and<br>
lots of boilerplate code. I just want to plot z=f(x,y) and throw<br>
someone's sample code into an encapsulated class for the basics and if<br>
needed to tweak with the defaults provided. I've been using Octaviz to<br>
accomplish these tasks, but I'm thinking it's probably better to embed<br>
this directly in my C++ code without going through Octave.<br>
<br>
Thanks,<br>
- Jordi G. H.<br></blockquote></div><br>Jordi -<br>I have posted an example here:<br><a href="http://www.vtk.org/Wiki/Triangulate_a_Terrain_Map">http://www.vtk.org/Wiki/Triangulate_a_Terrain_Map</a><br><br>let me know if that was not what you were looking for.<br>
<br clear="all">Thanks,<br><br>David<br>
<br>