|
static void | calculateTrianglesAdjacency (int numFaces, const GLuint *srcIndices, GLuint *destIndices, int numSrcVertices, const GLfloat *srcVertices, int &numDestVertices, GLfloat **destVertices) |
|
void MeshUtils::calculateTrianglesAdjacency |
( |
int |
numFaces, |
|
|
const GLuint * |
srcIndices, |
|
|
GLuint * |
destIndices, |
|
|
int |
numSrcVertices, |
|
|
const GLfloat * |
srcVertices, |
|
|
int & |
numDestVertices, |
|
|
GLfloat ** |
destVertices |
|
) |
| |
|
static |
destIndices must be double the size of srcIndices fills destIndices with the orginal indices + adjacency information
- Parameters
-
[in] | numFaces | number of triangles in the mesh |
[in] | srcIndices | triangles without adjacency information |
[out] | destIndices | triangles with adjacency information |
[in] | numSrcVertices | num of vertices in srcVertices |
[in] | srcVertices | vertices that srcIndices refers to |
[out] | numDestVertices | num of vertices in destVertices |
[out] | destVertices | if there are duplicate edges in srcIndices, new vertices must be generated; will contain a copy of srcVertices plus additionally created vertices; will be allocated by this method |
The documentation for this class was generated from the following files: