|
vtlib library
|

Public Member Functions | |
| void | Create (int iTriangleCount, const vtString &strImagePrefix, Style style=GEODESIC) |
| void | SetInflation (float f) |
| void | SetUnfolding (float f) |
vtIcoGlobe is an icosahedral globe. To use it:
The globe has unit radius.
| void vtIcoGlobe::Create | ( | int | iTriangleCount, |
| const vtString & | strImagePrefix, | ||
| Style | style = GEODESIC |
||
| ) |
Create the globe's geometry and nodes.
| 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:
|
| void vtIcoGlobe::SetInflation | ( | float | f | ) |
Set the amount of inflation of the globe.
| f | Ranges from 0 (icosahedron) to 1 (sphere) |
| void vtIcoGlobe::SetUnfolding | ( | float | f | ) |
Set the amount of unfolding of the globe.
| f | Ranges from 0 (sphere/icosahedron) to 1 (entirely unfolded flat) |
1.8.10