vtIcoGlobe Class Reference
[Terrain]

Inheritance diagram for vtIcoGlobe:

Inheritance graph
[legend]
List of all members.

Detailed Description

vtIcoGlobe is an icosahedral globe. To use it:

The globe has unit radius.


Public Member Functions

void Create (int iTriangleCount, const vtString &strImagePrefix, Style style=GEODESIC)
void SetInflation (float f)
void SetUnfolding (float f)


Member Function Documentation

void vtIcoGlobe::Create int  iTriangleCount,
const vtString strImagePrefix,
Style  style = GEODESIC
 

Create the globe's geometry and nodes.

Parameters:
iTriangleCount The desired triangle count of the entire globe. The class will attempt to match this value as closely as possible with the indicated tessellation.
strImagePrefix The base of the filename for the set of icosahedral surface textures. For example, if your textures have the name "geosphere_*.jpg", pass "geosphere_"
style Tessellation style, can be one of:
  • GEODESIC A classic geodesic tiling based on subdividing the edges of the icosahedron and gnomonically projecting them to the sphere.
  • RIGHT_TRIANGLE An alternative approach where each face is divided into right triangles recursively.
  • DYMAX_UNFOLD Same as RIGHT_TRIANGLE but the faces are also placed on seperate geometries so that the globe can be unfolded in the Dymaxion style.

void vtIcoGlobe::SetInflation float  f  ) 
 

Set the amount of inflation of the globe.

Parameters:
f Ranges from 0 (icosahedron) to 1 (sphere)

void vtIcoGlobe::SetUnfolding float  f  ) 
 

Set the amount of unfolding of the globe.

Parameters:
f Ranges from 0 (sphere/icosahedron) to 1 (entirely unfolded flat)


Generated on Tue Apr 22 10:11:07 2008 for vtlib library by  doxygen 1.4.5