[vtkusers] Generate trianglulated surface from heightmap

Dag Magne Ulvang dagu at cmr.no
Fri Jun 1 05:23:44 EDT 2001


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




More information about the vtkusers mailing list