Lecture
3
Fundamental
Algorithms (1 of 2)
(includes text and images from the 3rd edition of the VTK
book)
Fundamental Algorithms (Chap 6 vtk)
Categorize
algorithms according to:
- structure
- effect transform has on topology
- type -
type of dataset the transform operates on
structure
- Geometric
transformations - alter the geometry but not the topology
- eg rotate
or scale polygonal dataset
- Topological
transformation - alters topology but not geometry or attribute data
- eg
converting polygonal data to unstructured grid
- very
uncommon
- Attribute
transformations - convert data attributes to another form or create new
attributes from input data
- structure
of dataset remains unaffected
- eg
compute vector magnitude
- Combined
transformations - change dataset structure and attribute data
- eg
computing contour lines or surfaces
type
- scalar -
operate on scalar data - eg generating contour lines from temperature
on map
- vector -
operate on vector data - eg showing oriented arrows of airflow on the
same map
- tensor -
operate on tensor matrices - eg showing components of stress using
oriented icons
- modelling
- generate topology or geometry, normals, texture data - vtk includes
lots of misc algorithms in this category
Scalar
Algorithms
single
data value associated with each point in dataset

Flow density coloured with different lookup tables
- Color
Mapping - map scalar data to colours using a discrete colour lookup
table
- lookup
table holds an array of colours
- lookup
table has min and max scalar range
- scalar
values serve as indices into lookup table
- if scalar
> max then scalar = max
- if scalar
< min then scalar = min
- map
scalar value into the lookup table
- transfer
function - continuous mapping from scalar data to colour
- mapping
may be linear or logarithmic, etc
- careful
choice of colours is VERY important - Interaction of Color by Josef
Albers

Contouring examples. UL: Marching squares used to generate contour
lines, UR marching cubes surface of human bone, BL marching cubes
surface of flow density, BR Marching cubes surface of iron-proteint
- Contouring
- constructing boundaries between regions

Some
contours from last time - the grand canyon - 2D contours and Iron
Protein - 3D contours
Vector
Algorithms
- 3D
representation of direction and magnitude
- Hedgehog
- drawing an oriented scaled line for each vector
- Oriented
Glyphs - 2D or 3D geometric representations can be used instead of
lines
- Warping -
deforming geometry according to the vector field
- Displacement
Plots - shows motion of an object in the direction perpendicular to its
surface
- motion is
caused by applied vector field
- vectors
converted to scalars using surface normal (dot product) vector
- Time
Animation (here there be math dragons)
- Streamlines
- connect point positions over multiple timesteps
- numerical
approximation to a particle trace represented as a line
- tracing
trajectories in a vector field


Three different representations of venctor data: hedgehog, glyphs,
streamlines
warping
displacement plot

167000
3D vectors

streamlines
show NCSA
Tornado visualization
more info at
http://www.taborcommunications.com/hpcwire/hpcwireWWW/04/0326/107315.html
Coming
Next Time
More
Fundamental Algorithms
last
revision 1/22/07