Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Static Public Member Functions | List of all members
MeshUtils Class Reference

Static Public Member Functions

static void calculateTrianglesAdjacency (int numFaces, const GLuint *srcIndices, GLuint *destIndices, int numSrcVertices, const GLfloat *srcVertices, int &numDestVertices, GLfloat **destVertices)
 

Member Function Documentation

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]numFacesnumber of triangles in the mesh
[in]srcIndicestriangles without adjacency information
[out]destIndicestriangles with adjacency information
[in]numSrcVerticesnum of vertices in srcVertices
[in]srcVerticesvertices that srcIndices refers to
[out]numDestVerticesnum of vertices in destVertices
[out]destVerticesif 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: