|
bool | Read (const char *fname) |
|
vtGeode * | CreateGeometry (bool bDropShadowMesh, int m_matidx=0) |
|
vtGeode * | GetGeometry () |
|
void | SetTextureMaterials (vtMaterialArray *pMats) |
|
virtual bool | FindAltitudeAtPoint (const FPoint3 &p3, float &fAltitude, bool bTrue=false, int iCultureFlags=0, FPoint3 *vNormal=NULL) const |
|
virtual bool | CastRayToSurface (const FPoint3 &point, const FPoint3 &dir, FPoint3 &result) const |
| Find the intersection point of a ray with the heightfield.
|
|
FPoint3 | FindVectorToClosestVertex (const FPoint3 &pos) |
|
uint | NumVerts () const |
|
uint | 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 | ReadHeader (const char *fname) |
|
bool | ReadBody (const char *fname) |
|
bool | Write (const char *fname, bool progress_callback(int)=NULL) const |
|
bool | ReadDXF (const char *fname, bool progress_callback(int)=NULL) |
|
bool | ReadADF (const char *fname, bool progress_callback(int)=NULL) |
|
bool | ReadGMS (const char *fname, bool progress_callback(int)=NULL) |
|
bool | ReadPLY (const char *fname, bool progress_callback(int)=NULL) |
|
bool | WriteGMS (const char *fname, bool progress_callback(int)=NULL) const |
|
bool | WriteDAE (const char *fname, bool progress_callback(int)=NULL) const |
|
bool | WriteWRL (const char *fname, bool progress_callback(int)=NULL) const |
|
bool | WriteOBJ (const char *fname, bool progress_callback(int)=NULL) const |
|
bool | WritePLY (const char *fname, bool progress_callback(int)=NULL) const |
|
bool | WriteDXF (const char *fname, bool progress_callback(int)=NULL) const |
|
void | FreeData () |
|
uint | AddSurfaceType (const vtString &surface_texture, bool bTiled=false) |
|
void | SetSurfaceType (int iTri, int surface_type) |
|
bool | ComputeExtents () |
|
void | Offset (const DPoint2 &p) |
|
void | Scale (float fFactor) |
|
void | VertOffset (float fAmount) |
|
bool | ConvertProjection (const vtProjection &proj_new) |
|
void | GetVert (int v, DPoint2 &p, float &z) const |
|
void | GetTri (int t, int &v0, int &v1, int &v2) const |
|
int * | GetAtTri (int t) const |
|
virtual bool | FindAltitudeOnEarth (const DPoint2 &p, float &fAltitude, bool bTrue=false) const |
|
void | CleanupClockwisdom () |
|
int | RemoveUnusedVertices () |
|
void | AppendFrom (vtTin *pTin) |
|
double | GetTriMaxEdgeLength (int iTri) const |
|
void | MergeSharedVerts (bool progress_callback(int)=NULL) |
|
bool | HasVertexNormals () const |
|
int | RemoveTrianglesBySegment (const DPoint2 &ep1, const DPoint2 &ep2) |
|
void | SetupTriangleBins (int bins, bool progress_callback(int)=NULL) |
|
int | MemoryNeededToLoad () const |
|
void | Initialize (const LinearUnits units, const DRECT &earthextents, float fMinHeight, float fMaxHeight) |
|
virtual void | SetEarthExtents (const DRECT &ext) |
|
int | PointIsAboveTerrain (const FPoint3 &p) const |
|
bool | ConvertEarthToSurfacePoint (const DPoint2 &epos, FPoint3 &p3, int iCultureFlags=0, bool bTrue=false) |
|
bool | ContainsWorldPoint (float x, float z) |
|
void | GetCenter (FPoint3 ¢er) |
|
void | SetCulture (CultureExtension *ext) |
|
void | Initialize (const DRECT &extents, float fMinHeight, float fMaxHeight) |
|
bool | ContainsEarthPoint (const DPoint2 &p, bool bInclusive=false) const |
|
DRECT & | GetEarthExtents () |
|
const DRECT & | GetEarthExtents () const |
|
void | GetHeightExtents (float &fMinHeight, float &fMaxHeight) const |
|
This class extends vtTin with the ability to call vtlib to create 3d geometry for the TIN. It also subclasses vtHeightField so it provides the ability to do height-testing and ray-picking.