|
Public Member Functions |
|
unsigned int | NumVerts () const |
|
unsigned int | NumTris () const |
|
void | AddVert (const DPoint2 &p, float z) |
|
void | AddVert (const DPoint2 &p, float z, FPoint3 &normal) |
|
void | AddTri (int v1, int v2, int v3, int surface_type=-1) |
|
void | RemVert (int v) |
|
void | RemTri (int t) |
| bool | Read (const char *fname) |
| bool | Write (const char *fname) const |
| bool | ReadDXF (const char *fname, bool progress_callback(int)=NULL) |
|
bool | ReadADF (const char *fname, bool progress_callback(int)=NULL) |
|
unsigned int | AddSurfaceType (const vtString &surface_texture, bool bTiled=false) |
|
bool | ComputeExtents () |
|
void | Offset (const DPoint2 &p) |
|
bool | ConvertProjection (const vtProjection &proj_new) |
|
virtual bool | FindAltitudeOnEarth (const DPoint2 &p, float &fAltitude, bool bTrue=false) const |
| bool | FindAltitudeAtPoint (const FPoint3 &p3, float &fAltitude, bool bTrue=false, int iCultureFlags=0, FPoint3 *vNormal=NULL) const |
|
bool | CastRayToSurface (const FPoint3 &point, const FPoint3 &dir, FPoint3 &result) const |
| | Find the intersection point of a ray with the heightfield.
|
| void | CleanupClockwisdom () |
| int | RemoveUnusedVertices () |
| double | GetTriMaxEdgeLength (int iTri) const |
| void | MergeSharedVerts (bool progress_callback(int)=NULL) |
|
bool | HasVertexNormals () |
| int | RemoveTrianglesBySegment (const DPoint2 &ep1, const DPoint2 &ep2) |
| void | SetupTriangleBins (int bins, bool progress_callback(int)=NULL) |
Public Attributes |
|
vtProjection | m_proj |
Protected Member Functions |
|
bool | TestTriangle (int tri, const DPoint2 &p, float &fAltitude) const |
|
bool | _ReadTin (FILE *fp) |
|
bool | _ReadTinOld (FILE *fp) |
|
void | _UpdateIndicesInInBin (int bin) |
|
void | _CompareBins (int bin1, int bin2) |
Protected Attributes |
|
DLine2 | m_vert |
|
vtArray< float > | m_z |
|
vtArray< int > | m_tri |
|
FLine3 | m_vert_normal |
|
vtArray< int > | m_surfidx |
|
vtStringArray | m_surftypes |
|
vtArray< bool > | m_surftype_tiled |
|
int * | m_bReplace |
|
Bin * | m_vertbin |
|
Bin * | m_tribin |
|
BinArray * | m_trianglebins |
|
DPoint2 | m_BinSize |
The triangles are defined by indices into the vertex array, so this is an "indexed TIN".