#include <Wm4MeshSmoother.h>
Public Member Functions | |
void | Create (int iVQuantity, Vector3< Real > *akVertex, int iTQuantity, const int *aiIndex) |
void | Destroy () |
const int * | GetIndices () const |
const Vector3< Real > * | GetMeans () const |
const Vector3< Real > * | GetNormals () const |
int | GetTQuantity () const |
const Vector3< Real > * | GetVertices () const |
int | GetVQuantity () const |
MeshSmoother () | |
MeshSmoother (int iVQuantity, Vector3< Real > *akVertex, int iTQuantity, const int *aiIndex) | |
void | Update (Real fTime=(Real) 0.0) |
virtual | ~MeshSmoother () |
Protected Member Functions | |
virtual Real | GetNormalWeight (int i, Real fTime) |
virtual Real | GetTangentWeight (int i, Real fTime) |
virtual bool | VertexInfluenced (int i, Real fTime) |
Protected Attributes | |
const int * | m_aiIndex |
int * | m_aiNeighborCount |
Vector3< Real > * | m_akMean |
Vector3< Real > * | m_akNormal |
Vector3< Real > * | m_akVertex |
int | m_iTQuantity |
int | m_iVQuantity |
Definition at line 27 of file Wm4MeshSmoother.h.
Wm4::MeshSmoother< Real >::MeshSmoother | ( | int | iVQuantity, | |
Vector3< Real > * | akVertex, | |||
int | iTQuantity, | |||
const int * | aiIndex | |||
) | [inline] |
Definition at line 36 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::m_aiIndex, Wm4::MeshSmoother< Real >::m_aiNeighborCount, Wm4::MeshSmoother< Real >::m_akMean, Wm4::MeshSmoother< Real >::m_akNormal, and Wm4::MeshSmoother< Real >::m_akVertex.
Wm4::MeshSmoother< Real >::~MeshSmoother | ( | ) | [inline, virtual] |
Definition at line 49 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::Destroy().
Wm4::MeshSmoother< Real >::MeshSmoother | ( | ) | [inline] |
Definition at line 24 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_aiIndex, Wm4::MeshSmoother< Real >::m_aiNeighborCount, Wm4::MeshSmoother< Real >::m_akMean, Wm4::MeshSmoother< Real >::m_akNormal, Wm4::MeshSmoother< Real >::m_akVertex, Wm4::MeshSmoother< Real >::m_iTQuantity, and Wm4::MeshSmoother< Real >::m_iVQuantity.
void Wm4::MeshSmoother< Real >::Create | ( | int | iVQuantity, | |
Vector3< Real > * | akVertex, | |||
int | iTQuantity, | |||
const int * | aiIndex | |||
) | [inline] |
Definition at line 55 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::Destroy(), Wm4::MeshSmoother< Real >::m_aiIndex, Wm4::MeshSmoother< Real >::m_aiNeighborCount, Wm4::MeshSmoother< Real >::m_akMean, Wm4::MeshSmoother< Real >::m_akNormal, Wm4::MeshSmoother< Real >::m_akVertex, Wm4::MeshSmoother< Real >::m_iTQuantity, Wm4::MeshSmoother< Real >::m_iVQuantity, and WM4_NEW.
Referenced by Wm4::MeshSmoother< Real >::MeshSmoother().
void Wm4::MeshSmoother< Real >::Destroy | ( | ) | [inline] |
Definition at line 82 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_aiNeighborCount, Wm4::MeshSmoother< Real >::m_akMean, Wm4::MeshSmoother< Real >::m_akNormal, and WM4_DELETE.
Referenced by Wm4::MeshSmoother< Real >::Create(), and Wm4::MeshSmoother< Real >::~MeshSmoother().
const int * Wm4::MeshSmoother< Real >::GetIndices | ( | void | ) | const [inline] |
Definition at line 179 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_aiIndex.
const Vector3< Real > * Wm4::MeshSmoother< Real >::GetMeans | ( | ) | const [inline] |
Definition at line 191 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_akMean.
const Vector3< Real > * Wm4::MeshSmoother< Real >::GetNormals | ( | ) | const [inline] |
Definition at line 185 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_akNormal.
Real Wm4::MeshSmoother< Real >::GetNormalWeight | ( | int | i, | |
Real | fTime | |||
) | [inline, protected, virtual] |
Definition at line 155 of file Wm4MeshSmoother.cpp.
Referenced by Wm4::MeshSmoother< Real >::Update().
Real Wm4::MeshSmoother< Real >::GetTangentWeight | ( | int | i, | |
Real | fTime | |||
) | [inline, protected, virtual] |
Definition at line 149 of file Wm4MeshSmoother.cpp.
Referenced by Wm4::MeshSmoother< Real >::Update().
int Wm4::MeshSmoother< Real >::GetTQuantity | ( | ) | const [inline] |
Definition at line 173 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_iTQuantity.
const Vector3< Real > * Wm4::MeshSmoother< Real >::GetVertices | ( | ) | const [inline] |
Definition at line 167 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_akVertex.
int Wm4::MeshSmoother< Real >::GetVQuantity | ( | ) | const [inline] |
Definition at line 161 of file Wm4MeshSmoother.cpp.
References Wm4::MeshSmoother< Real >::m_iVQuantity.
void Wm4::MeshSmoother< Real >::Update | ( | Real | fTime = (Real)0.0 |
) | [inline] |
Definition at line 90 of file Wm4MeshSmoother.cpp.
References Wm4::Vector3< Real >::Cross(), Wm4::Vector3< Real >::Dot(), Wm4::MeshSmoother< Real >::GetNormalWeight(), Wm4::MeshSmoother< Real >::GetTangentWeight(), Wm4::MeshSmoother< Real >::m_aiIndex, Wm4::MeshSmoother< Real >::m_aiNeighborCount, Wm4::MeshSmoother< Real >::m_akMean, Wm4::MeshSmoother< Real >::m_akNormal, Wm4::MeshSmoother< Real >::m_akVertex, Wm4::MeshSmoother< Real >::m_iTQuantity, Wm4::MeshSmoother< Real >::m_iVQuantity, and Wm4::MeshSmoother< Real >::VertexInfluenced().
bool Wm4::MeshSmoother< Real >::VertexInfluenced | ( | int | i, | |
Real | fTime | |||
) | [inline, protected, virtual] |
Definition at line 143 of file Wm4MeshSmoother.cpp.
Referenced by Wm4::MeshSmoother< Real >::Update().
const int* Wm4::MeshSmoother< Real >::m_aiIndex [protected] |
Definition at line 65 of file Wm4MeshSmoother.h.
Referenced by Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::GetIndices(), Wm4::MeshSmoother< Real >::MeshSmoother(), and Wm4::MeshSmoother< Real >::Update().
int* Wm4::MeshSmoother< Real >::m_aiNeighborCount [protected] |
Definition at line 69 of file Wm4MeshSmoother.h.
Referenced by Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::Destroy(), Wm4::MeshSmoother< Real >::MeshSmoother(), and Wm4::MeshSmoother< Real >::Update().
Vector3<Real>* Wm4::MeshSmoother< Real >::m_akMean [protected] |
Definition at line 68 of file Wm4MeshSmoother.h.
Referenced by Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::Destroy(), Wm4::MeshSmoother< Real >::GetMeans(), Wm4::MeshSmoother< Real >::MeshSmoother(), and Wm4::MeshSmoother< Real >::Update().
Vector3<Real>* Wm4::MeshSmoother< Real >::m_akNormal [protected] |
Definition at line 67 of file Wm4MeshSmoother.h.
Referenced by Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::Destroy(), Wm4::MeshSmoother< Real >::GetNormals(), Wm4::MeshSmoother< Real >::MeshSmoother(), and Wm4::MeshSmoother< Real >::Update().
Vector3<Real>* Wm4::MeshSmoother< Real >::m_akVertex [protected] |
Definition at line 63 of file Wm4MeshSmoother.h.
Referenced by Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::GetVertices(), Wm4::MeshSmoother< Real >::MeshSmoother(), and Wm4::MeshSmoother< Real >::Update().
int Wm4::MeshSmoother< Real >::m_iTQuantity [protected] |
Definition at line 64 of file Wm4MeshSmoother.h.
Referenced by Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::GetTQuantity(), Wm4::MeshSmoother< Real >::MeshSmoother(), and Wm4::MeshSmoother< Real >::Update().
int Wm4::MeshSmoother< Real >::m_iVQuantity [protected] |
Definition at line 62 of file Wm4MeshSmoother.h.
Referenced by Wm4::MeshSmoother< Real >::Create(), Wm4::MeshSmoother< Real >::GetVQuantity(), Wm4::MeshSmoother< Real >::MeshSmoother(), and Wm4::MeshSmoother< Real >::Update().