DESCRIPTION

Outputs G3D maps in VTK-ASCII format. Map's are valid G3D map's in the current mapset. output is the name of an VTK-ASCII file which will be written in the current working directory. If output is not specified then stdout is used. The module is sensitive to region settings (set with g.region).

NOTES

This filter generates structured points with celldata (default) or pointdata. If requested a structured grid with a top and bottom surface and pointdata are generated. This data is put in a simple VTK-ASCII file. Nor XML or binary output are supported. It is possible to choose more then one G3D map to be written in the VTK-ASCII file. Each celldata is named like the G3D map it represents. You can visualize this file with the VTK Toolkit, Paraview and MayaVi which are based on VTK. If you have a G3D map with partly no data, use the threshold filter in paraview to visualize the valid data. Just filter all data which is greater/lesser than the choosen null value in the VTK-ASCII file.

Difference between point- and celldata

r3.out.vtk can export G3D cells with different representations.

EXAMPLE

This is a simple Spearfish example:
g.region -d
g.region res=150 res3=150 t=80 b=0 tbres=10
r.mapcalc "bottom=0"

# synthetic data, could be geological structures:
r3.mapcalc "map3d=row()+col()+depth()"

#export of volume to VTK:
r3.out.vtk -s input=map3d top=elevation.10m bottom=bottom output=/tmp/out.vtk

# visualize in paraview or other VTK viewer:
paraview --data=/tmp/out.vtk

SEE ALSO

r.out.vtk
r3.out.ascii
g.region

AUTHOR

Soeren Gebbert

Last changed: $Date: 2006/02/20 17:46:42 $