#include <Opcode.h>
Definition at line 54 of file Opcode.h.
◆ MeshInterface()
MeshInterface::MeshInterface |
( |
| ) |
|
◆ ~MeshInterface()
MeshInterface::~MeshInterface |
( |
| ) |
|
◆ CheckTopology()
udword MeshInterface::CheckTopology |
( |
| ) |
const |
Checks the mesh itself is valid. Currently we only look for degenerate faces.
- Returns
- number of degenerate faces
Definition at line 182 of file OPC_MeshInterface.cpp.
◆ GetNbTriangles()
◆ GetNbVertices()
◆ GetTriangle()
Fetches a triangle given a triangle index.
- Parameters
-
vp | [out] required triangle's vertex pointers |
index | [in] triangle index |
Definition at line 119 of file Opcode.h.
◆ GetTris()
◆ GetVerts()
◆ IsValid()
bool MeshInterface::IsValid |
( |
| ) |
const |
Checks the mesh interface is valid, i.e. things have been setup correctly.
- Returns
- true if valid
Definition at line 164 of file OPC_MeshInterface.cpp.
◆ RemapClient()
bool MeshInterface::RemapClient |
( |
udword |
nb_indices, |
|
|
const udword * |
permutation |
|
) |
| const |
Remaps client's mesh according to a permutation.
- Parameters
-
nb_indices | [in] number of indices in the permutation (will be checked against number of triangles) |
permutation | [in] list of triangle indices |
- Returns
- true if success
Definition at line 269 of file OPC_MeshInterface.cpp.
◆ SetNbTriangles()
◆ SetNbVertices()
◆ SetPointers()
Pointers control: setups object pointers. Must provide access to faces and vertices for a given object.
- Parameters
-
tris | [in] pointer to triangles |
verts | [in] pointer to vertices |
- Returns
- true if success
Definition at line 232 of file OPC_MeshInterface.cpp.
◆ mNbTris
udword Opcode::MeshInterface::mNbTris |
|
private |
Number of triangles in the input model.
Definition at line 179 of file Opcode.h.
◆ mNbVerts
udword Opcode::MeshInterface::mNbVerts |
|
private |
Number of vertices in the input model.
Definition at line 180 of file Opcode.h.
◆ mTris
Array of indexed triangles.
Definition at line 187 of file Opcode.h.
◆ mVerts
Array of vertices.
Definition at line 188 of file Opcode.h.
◆ Single
bool Opcode::MeshInterface::Single |
Use single or double precision vertices.
Definition at line 194 of file Opcode.h.
◆ VertexCache
Point MeshInterface::VertexCache |
|
staticprivate |
The documentation for this class was generated from the following files: