vtlib library
|
Public Member Functions | |
void | SetPolygonTarget (int iCount) |
Public Member Functions inherited from vtDynTerrainGeom | |
DTErr | BasicInit (const vtElevationGrid *pGrid) |
int | GetPolygonTarget () const |
int | NumDrawnTriangles () const |
Public Member Functions inherited from vtDynGeom | |
int | IsVisible (const FSphere &sphere) const |
int | IsVisible (const FPoint3 &point0, const FPoint3 &point1, const FPoint3 &point2, const float fTolerance=0.0f) const |
int | IsVisible (const FPoint3 &point, float radius) const |
bool | IsVisible (const FPoint3 &point) const |
Public Member Functions inherited from vtGeode | |
void | AddMesh (vtMesh *pMesh, int iMatIdx) |
void | RemoveMesh (vtMesh *pMesh) |
void | RemoveAllMeshes () |
void | AddTextMesh (vtTextMesh *pMesh, int iMatIdx, bool bOutline=true) |
uint | NumMeshes () const |
vtMesh * | GetMesh (int i) const |
vtTextMesh * | GetTextMesh (int i) const |
Public Member Functions inherited from NodeExtension | |
void | SetEnabled (bool bOn) |
bool | GetEnabled () const |
void | SetCastShadow (bool b) |
Set this node to cast a shadow, if it is under a vtShadow node. Default is false. | |
bool | GetCastShadow () |
Get whether this node casts a shadow. | |
void | GetBoundSphere (FSphere &sphere, bool bGlobal=false) |
Get the Bounding Sphere of the node. | |
The SRTerrain class implements Stefan Roettger's algorithm for regular-grid terrain LOD. It was adapted directly from his sample implementation and correspondence with him.
|
virtual |
Set the polygon target, which is the number of polygons (generally triangles) which the CLOD algorithm will try to maintain.
Reimplemented from vtDynTerrainGeom.