Newton Dynamics  4.00
dMeshEffect Class Reference
Inheritance diagram for dMeshEffect:
dPolyhedra dClassAlloc dTree< dEdge, dEdgeKey > ndShapeInstanceMeshBuilder

Classes

class  dMeshVertexFormat
 

Public Member Functions

D_CORE_API void CalculateNormals (dFloat64 angleInRadians)
 
D_CORE_API void BuildFromIndexList (const dMeshVertexFormat *const format)
 
dInt32 GetPropertiesCount () const
 
D_CORE_API void GetVertexChannel64 (dInt32 strideInByte, dFloat64 *const bufferOut) const
 
D_CORE_API void GetVertexChannel (dInt32 strideInByte, dFloat32 *const bufferOut) const
 
D_CORE_API void GetNormalChannel (dInt32 strideInByte, dFloat32 *const bufferOut) const
 
D_CORE_API void GetBinormalChannel (dInt32 strideInByte, dFloat32 *const bufferOut) const
 
D_CORE_API void GetUV0Channel (dInt32 strideInByte, dFloat32 *const bufferOut) const
 
D_CORE_API void GetUV1Channel (dInt32 strideInByte, dFloat32 *const bufferOut) const
 
D_CORE_API void GetVertexColorChannel (dInt32 strideInByte, dFloat32 *const bufferOut) const
 
D_CORE_API ndIndexArrayMaterialGeometryBegin ()
 
D_CORE_API dInt32 GetFirstMaterial (ndIndexArray *const handle) const
 
D_CORE_API dInt32 GetNextMaterial (ndIndexArray *const handle, dInt32 materialHandle) const
 
D_CORE_API dInt32 GetMaterialID (ndIndexArray *const handle, dInt32 materialHandle) const
 
D_CORE_API dInt32 GetMaterialIndexCount (ndIndexArray *const handle, dInt32 materialHandle) const
 
D_CORE_API void GetMaterialGetIndexStream (ndIndexArray *const handle, dInt32 materialHandle, dInt32 *const index) const
 
D_CORE_API void GetMaterialGetIndexStreamShort (ndIndexArray *const handle, dInt32 materialHandle, dInt16 *const index) const
 
D_CORE_API void MaterialGeomteryEnd (ndIndexArray *const handle)
 
D_CORE_API void BeginBuild ()
 
D_CORE_API void EndBuild (dFloat64 tol, bool fixTjoint=true)
 
D_CORE_API dBigVector GetOrigin () const
 
D_CORE_API void SphericalMapping (dInt32 material, const dMatrix &uvAligment)
 
D_CORE_API void UniformBoxMapping (dInt32 material, const dMatrix &textureMatrix)
 
D_CORE_API void BoxMapping (dInt32 front, dInt32 side, dInt32 top, const dMatrix &uvAligment)
 
- Public Member Functions inherited from dPolyhedra
D_CORE_API dPolyhedra (const dPolyhedra &polyhedra)
 
virtual bool ReportProgress (dFloat32 percentProgress) const
 
dEdgeAddFace (dInt32 v0, dInt32 v1, dInt32 v2)
 
dEdgeAddFace (dInt32 count, const dInt32 *const index)
 
D_CORE_API dEdgeAddFace (dInt32 count, const dInt32 *const index, const dInt64 *const userdata)
 
virtual D_CORE_API void DeleteFace (dEdge *const edge)
 
D_CORE_API dInt32 GetFaceCount () const
 
dInt32 GetEdgeCount () const
 
dInt32 GetLastVertexIndex () const
 
dInt32 IncLRU () const
 
dInt32 GetLRU () const
 
void SetLRU (dInt32 lru) const
 
dEdgeFindEdge (dInt32 v0, dInt32 v1) const
 
dTreeNode * FindEdgeNode (dInt32 v0, dInt32 v1) const
 
D_CORE_API dEdgeAddHalfEdge (dInt32 v0, dInt32 v1)
 
D_CORE_API void DeleteEdge (dEdge *const edge)
 
void DeleteEdge (dInt32 v0, dInt32 v1)
 
D_CORE_API dEdgeConnectVertex (dEdge *const e0, dEdge *const e1)
 
D_CORE_API bool FlipEdge (dEdge *const edge)
 
D_CORE_API dEdgeSpliteEdge (dInt32 newIndex, dEdge *const edge)
 
D_CORE_API dBigVector FaceNormal (const dEdge *const face, const dFloat64 *const vertex, dInt32 strideInBytes) const
 
D_CORE_API void SavePLY (const char *const fileName, const dFloat64 *const vertex, dInt32 strideInBytes) const
 
void BeginConectedSurface () const
 
D_CORE_API bool GetConectedSurface (dPolyhedra &polyhedra) const
 
void EndConectedSurface () const
 
D_CORE_API void ChangeEdgeIncidentVertex (dEdge *const edge, dInt32 newIndex)
 
D_CORE_API void DeleteDegenerateFaces (const dFloat64 *const pool, dInt32 dstStrideInBytes, dFloat64 minArea)
 
D_CORE_API bool Optimize (const dFloat64 *const pool, dInt32 strideInBytes, dFloat64 tol, dInt32 maxFaceCount=1<< 28)
 
D_CORE_API void Triangulate (const dFloat64 *const vertex, dInt32 strideInBytes, dPolyhedra *const leftOversOut)
 
D_CORE_API void ConvexPartition (const dFloat64 *const vertex, dInt32 strideInBytes, dPolyhedra *const leftOversOut)
 
D_CORE_API bool IsFaceConvex (dEdge *const face, const dFloat64 *const pool, dInt32 strideInBytes) const
 
- Public Member Functions inherited from dClassAlloc
 dClassAlloc ()
 Empty.
 
 ~dClassAlloc ()
 Empty.
 
void * operator new (size_t size)
 Overloaded operator new for any subclass derived from dClassAlloc.
 
void operator delete (void *ptr)
 Overloaded operator delete for any subclass derived from dClassAlloc.
 
- Public Member Functions inherited from dTree< dEdge, dEdgeKey >
 operator dInt32 () const
 
dInt32 GetCount () const
 
dTreeNode * GetRoot () const
 
dTreeNode * Minimum () const
 
dTreeNode * Maximum () const
 
dTreeNode * Find (dEdgeKey key) const
 
dTreeNode * FindGreater (dEdgeKey key) const
 
dTreeNode * FindGreaterEqual (dEdgeKey key) const
 
dTreeNode * FindLessEqual (dEdgeKey key) const
 
dTreeNode * GetNodeFromInfo (dEdge &info) const
 
dTreeNode * Insert (const dEdge &element, dEdgeKey key, bool &elementWasInTree)
 
dTreeNode * Insert (const dEdge &element, dEdgeKey key)
 
dTreeNode * Insert (dTreeNode *const node, dEdgeKey key)
 
dTreeNode * Replace (dEdge &element, dEdgeKey key)
 
dTreeNode * ReplaceKey (dEdgeKey oldKey, dEdgeKey newKey)
 
dTreeNode * ReplaceKey (dTreeNode *const node, dEdgeKey key)
 
void Remove (dEdgeKey key)
 
void Remove (dTreeNode *const node)
 
void RemoveAll ()
 
void Unlink (dTreeNode *const node)
 
void SwapInfo (dTree &tree)
 
bool SanityCheck () const
 

Protected Member Functions

D_CORE_API void Init ()
 
D_CORE_API void RepairTJoints ()
 
virtual D_CORE_API void BeginFace ()
 
virtual D_CORE_API bool EndFace ()
 
bool Sanity () const
 
void PackAttibuteData ()
 
void UnpackAttibuteData ()
 
bool SeparateDuplicateLoops (dEdge *const face)
 
dInt32 AddInterpolatedHalfAttribute (dEdge *const edge, dInt32 midPoint)
 
- Protected Member Functions inherited from dPolyhedra
D_CORE_API dEdgeCollapseEdge (dEdge *const edge)
 
D_CORE_API bool PolygonizeFace (dEdge *const face, const dFloat64 *const pool, dInt32 stride)
 
D_CORE_API bool TriangulateFace (dEdge *const face, const dFloat64 *const pool, dInt32 stride)
 

Protected Attributes

dPointFormat m_points
 
dAttibutFormat m_attrib
 
dInt32 m_vertexBaseCount
 
dInt32 m_constructionIndex
 

Additional Inherited Members

- Static Public Member Functions inherited from dClassAlloc
static D_CORE_API void * Malloc (size_t size)
 Generic allocation for any function subclass from dClassAlloc.
 
static D_CORE_API void Free (void *const ptr)
 Generic destruction for any function subclass from dClassAlloc.
 
- Static Public Member Functions inherited from dTree< dEdge, dEdgeKey >
static void FlushFreeList ()