ScummVM API documentation
dgPolyhedra Class Reference
Inheritance diagram for dgPolyhedra:
dgTree< dgEdge, dgEdgeKey > dgMeshEffect

Classes

struct  dgPairKey
 

Public Member Functions

 dgPolyhedra (dgMemoryAllocator *const allocator)
 
 dgPolyhedra (const dgPolyhedra &polyhedra)
 
void BeginFace ()
 
dgEdgeAddFace (dgInt32 v0, dgInt32 v1, dgInt32 v2)
 
dgEdgeAddFace (dgInt32 count, const dgInt32 *const index)
 
dgEdgeAddFace (dgInt32 count, const dgInt32 *const index, const dgInt64 *const userdata)
 
void EndFace ()
 
void DeleteFace (dgEdge *const edge)
 
dgInt32 GetFaceCount () const
 
dgInt32 GetEdgeCount () const
 
dgInt32 GetLastVertexIndex () const
 
dgInt32 IncLRU () const
 
void SetLRU (dgInt32 lru) const
 
dgEdgeFindEdge (dgInt32 v0, dgInt32 v1) const
 
dgTreeNode * FindEdgeNode (dgInt32 v0, dgInt32 v1) const
 
dgEdgeAddHalfEdge (dgInt32 v0, dgInt32 v1)
 
void DeleteEdge (dgEdge *const edge)
 
void DeleteEdge (dgInt32 v0, dgInt32 v1)
 
bool FlipEdge (dgEdge *const edge)
 
dgEdgeSpliteEdge (dgInt32 newIndex, dgEdge *const edge)
 
dgBigVector FaceNormal (dgEdge *const face, const dgFloat64 *const vertex, dgInt32 strideInBytes) const
 
void BeginConectedSurface () const
 
bool GetConectedSurface (dgPolyhedra &polyhedra) const
 
void EndConectedSurface () const
 
dgSphere CalculateSphere (const dgFloat64 *const vertex, dgInt32 strideInBytes, const dgMatrix *const basis=NULL) const
 
void ChangeEdgeIncidentVertex (dgEdge *const edge, dgInt32 newIndex)
 
void DeleteDegenerateFaces (const dgFloat64 *const pool, dgInt32 dstStrideInBytes, dgFloat64 minArea)
 
void Optimize (const dgFloat64 *const pool, dgInt32 strideInBytes, dgFloat64 tol)
 
void Triangulate (const dgFloat64 *const vertex, dgInt32 strideInBytes, dgPolyhedra *const leftOversOut)
 
void ConvexPartition (const dgFloat64 *const vertex, dgInt32 strideInBytes, dgPolyhedra *const leftOversOut)
 
- Public Member Functions inherited from dgTree< dgEdge, dgEdgeKey >
void operator delete (void *const ptr, dgMemoryAllocator *const allocator)
 
void operator delete (void *const ptr)
 
void operator delete[] (void *const ptr, dgMemoryAllocator *const allocator)
 
void operator delete[] (void *const ptr)
 
void * operator new (size_t size, dgMemoryAllocator *const allocator)
 
void * operator new (size_t size)
 
void * operator new[] (size_t size, dgMemoryAllocator *const allocator)
 
void * operator new[] (size_t size)
 
 dgTree (dgMemoryAllocator *const allocator)
 
dgMemoryAllocatorGetAllocator () const
 
void SetAllocator (dgMemoryAllocator *const allocator)
 
 operator dgInt32 () const
 
dgInt32 GetCount () const
 
dgTreeNode * GetRoot () const
 
dgTreeNode * Minimum () const
 
dgTreeNode * Maximum () const
 
dgTreeNode * Find (dgEdgeKey key) const
 
dgTreeNode * FindGreater (dgEdgeKey key) const
 
dgTreeNode * FindGreaterEqual (dgEdgeKey key) const
 
dgTreeNode * FindLessEqual (dgEdgeKey key) const
 
dgTreeNode * GetNodeFromInfo (dgEdge &info) const
 
dgTreeNode * Insert (const dgEdge &element, dgEdgeKey key, bool &elementWasInTree)
 
dgTreeNode * Insert (const dgEdge &element, dgEdgeKey key)
 
dgTreeNode * Insert (dgTreeNode *const node, dgEdgeKey key)
 
dgTreeNode * Replace (dgEdge &element, dgEdgeKey key)
 
dgTreeNode * ReplaceKey (dgEdgeKey oldKey, dgEdgeKey newKey)
 
dgTreeNode * ReplaceKey (dgTreeNode *const node, dgEdgeKey key)
 
void Remove (dgEdgeKey key)
 
void Remove (dgTreeNode *const node)
 
void RemoveAll ()
 
void Unlink (dgTreeNode *const node)
 
void SwapInfo (dgTree &tree)
 
bool SanityCheck () const
 

The documentation for this class was generated from the following file: