Lecture 2

Basic Data Representation

(includes text and images from the 3rd edition of the VTK User's Guide)


Four views of the Earth


Discrete nature of data (Chap 5 vtk)

(possibly) continuous data represented by discrete sampling

Interpolation

A familiar example is a weather map showing the current temperature across the state or country, but the data is only sampled at certain scattered stations which is then interpolated.
 
http://www.sws.uiuc.edu/warm/icnstationmap.asp

Here is another nice example of interpolating winds from the San Francisco Bay area

http://sfports.wr.usgs.gov/wind


Structured or Unstructured Data


Dimension (number of independent variables)


Abstract Dataset

Cells specify topology while points specify geometry

Types of Datasets (each of these has their own class in vtk)


Cell

Linear Cells - linear or constant interpolation functions

Nonlinear Cells

more accurate rate interpolation functions
model curved geometry better

linear easily converted to linear graphics primitives. nonlinear (except maybe for NURBS) must first be converted (tesselated) into linear form


Attribute Data


Some More examples with ParaView

gcanyon.raw (which can be found at ftp.evl.uic.edu in pub/INcoming/andy) contains a height map of the grand canyon as a 625x376 greyscale image. ParaView can load this image by setting the data type to 'unsigned char', the File Dimensionality to 2, and then setting the extents as 0-624, 0-375. This will bring up a greyscale image. then you can use the Contour filter to define a series of contours. As the scalar values in the file range from 103 to 224 you could set up contours at 125, 150, 175 and 200 for example. These contours would initially all be in the same plane, but you can also translate them in Z. You may also need to edit the colour map and reset the range (it should be 103 to 224)

Using paraview 2.X you can also take the data and extract a surface from it. Once you have the surface you can warp it onto 3D. With paraview 3 beta you need to tetrahedralize the data and then apply the warp scalar.

A dataset that comes with the vtk cdrom in VTKData/Data is ironProt.vtk. Since it is a .vtk file the header of this file contains the information that vtk needs to properly load the data in. Like the visible woman dataset we can use the contour tool to generate contours. In the image below there is a contour at 50 shown as wireframe, another contour at 200 shown as a surface, and then a cutting plane.




Some nice examples:

Nasa hurricane season animation

airplane flight patterns across the US - http://youtube.com/watch?v=dPv8psZsvIU


Coming Next Time

Fundamental Algorithms (1 of 2)


last revision 4/27/08