[vtkusers] Requesting sample code for Delaunay terrain
David Doria
daviddoria at gmail.com
Sat Jun 13 16:03:18 EDT 2009
On Sat, Jun 13, 2009 at 3:24 PM, Jordi Gutiérrez Hermos
<jordigh at gmail.com>wrote:
> I have what seems to me like a common problem: given points (x,y,z)
> defining a terrain, i.e. z = f(x,y), define a Delaunay triangulation
> on the x-y plane and use that to plot the interpolated surface.
>
> Does someone have sample code ready to do this?
>
> Pardon my laziness, but reading the VTK books there seems to be lots
> of what to me seems like cruft about lighting, cameras, actors, and
> lots of boilerplate code. I just want to plot z=f(x,y) and throw
> someone's sample code into an encapsulated class for the basics and if
> needed to tweak with the defaults provided. I've been using Octaviz to
> accomplish these tasks, but I'm thinking it's probably better to embed
> this directly in my C++ code without going through Octave.
>
> Thanks,
> - Jordi G. H.
>
Jordi -
I have posted an example here:
http://www.vtk.org/Wiki/Triangulate_a_Terrain_Map
let me know if that was not what you were looking for.
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090613/a82ff1ca/attachment.htm>
More information about the vtkusers
mailing list