#include <Opcode.h>
Public Member Functions | |
| udword | CheckTopology () const |
| inline_ udword | GetNbTriangles () const |
| inline_ udword | GetNbVertices () const |
| inline_ void | GetTriangle (VertexPointers &vp, udword index) const |
| inline_ const IndexedTriangle * | GetTris () const |
| inline_ const Point * | GetVerts () const |
| bool | IsValid () const |
| MeshInterface () | |
| bool | RemapClient (udword nb_indices, const udword *permutation) const |
| inline_ void | SetNbTriangles (udword nb) |
| inline_ void | SetNbVertices (udword nb) |
| bool | SetPointers (const IndexedTriangle *tris, const Point *verts) |
| ~MeshInterface () | |
Public Attributes | |
| bool | Single |
| Use single or double precision vertices. | |
Private Attributes | |
| udword | mNbTris |
| Number of triangles in the input model. | |
| udword | mNbVerts |
| Number of vertices in the input model. | |
| const IndexedTriangle * | mTris |
| Array of indexed triangles. | |
| const Point * | mVerts |
| Array of vertices. | |
Static Private Attributes | |
| static Point | VertexCache [3] |
Constructor.
Definition at line 130 of file OPC_MeshInterface.cpp.
Destructor.
Definition at line 154 of file OPC_MeshInterface.cpp.
| udword MeshInterface::CheckTopology | ( | ) | const |
Checks the mesh itself is valid. Currently we only look for degenerate faces.
Definition at line 182 of file OPC_MeshInterface.cpp.
| inline_ udword Opcode::MeshInterface::GetNbTriangles | ( | ) | const [inline] |
| inline_ udword Opcode::MeshInterface::GetNbVertices | ( | ) | const [inline] |
| inline_ void Opcode::MeshInterface::GetTriangle | ( | VertexPointers & | vp, |
| udword | index | ||
| ) | const [inline] |
| inline_ const IndexedTriangle* Opcode::MeshInterface::GetTris | ( | ) | const [inline] |
| inline_ const Point* Opcode::MeshInterface::GetVerts | ( | ) | const [inline] |
| bool MeshInterface::IsValid | ( | ) | const |
Checks the mesh interface is valid, i.e. things have been setup correctly.
Definition at line 164 of file OPC_MeshInterface.cpp.
| bool MeshInterface::RemapClient | ( | udword | nb_indices, |
| const udword * | permutation | ||
| ) | const |
Remaps client's mesh according to a permutation.
| nb_indices | [in] number of indices in the permutation (will be checked against number of triangles) |
| permutation | [in] list of triangle indices |
Definition at line 269 of file OPC_MeshInterface.cpp.
| inline_ void Opcode::MeshInterface::SetNbTriangles | ( | udword | nb | ) | [inline] |
| inline_ void Opcode::MeshInterface::SetNbVertices | ( | udword | nb | ) | [inline] |
| bool MeshInterface::SetPointers | ( | const IndexedTriangle * | tris, |
| const Point * | verts | ||
| ) |
Pointers control: setups object pointers. Must provide access to faces and vertices for a given object.
| tris | [in] pointer to triangles |
| verts | [in] pointer to vertices |
Definition at line 232 of file OPC_MeshInterface.cpp.
udword Opcode::MeshInterface::mNbTris [private] |
udword Opcode::MeshInterface::mNbVerts [private] |
const IndexedTriangle* Opcode::MeshInterface::mTris [private] |
const Point* Opcode::MeshInterface::mVerts [private] |
Point MeshInterface::VertexCache [static, private] |