[vtkusers] Generate trianglulated surface from heightmap
Malcolm Drummond
malcolm at geovision.co.za
Fri Jun 1 16:21:09 EDT 2001
As Prabhu says, use the WarpScalar filter. Also use vtkTriangleFilter
instead of vtkDelauney2D - you have geometry from the
vtkStructuredPointsGeometryFilter, so you just need to decompose the
polygons.
----- Original Message -----
From: Dag Magne Ulvang <dagu at cmr.no>
To: <vtkusers at public.kitware.com>
Sent: Friday, June 01, 2001 11:23 AM
Subject: [vtkusers] Generate trianglulated surface from heightmap
>
> Hello.
>
> How do I generate a triangulated surface fro a heightmap (bmp or tiff
> image).
>
> I have tried something like
>
> vtkBMPReader bmpreader
> bmpreader SetFileName heightmap.bmp
>
> vtkStructuredPointsGeometryFilter geometry
> geometry SetInput [bmpreader GetOutput]
>
> vtkDelaunay2D triangulering
> triangulering SetInput [geometry GetOutput]
>
>
> but I guess I create a flat structured grid ( or StructuredPoints)
> dataset with the heights as scalar values, but what I want to do is to
> convert the scalar value to a Z-value.
>
>
> --
> Dag Magne Ulvang
> Christian Michelsen Research AS
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list