Lines Matching refs:mesh

39 ** $Header: //depot/main/gfx/lib/glu/libtess/mesh.c#6 $
45 #include "mesh.h"
115 * CS348a notes (see mesh.h). Basically it modifies the mesh so that
278 GLUhalfEdge *__gl_meshMakeEdge( GLUmesh *mesh )
293 e = MakeEdge( &mesh->eHead );
296 MakeVertex( newVertex1, e, &mesh->vHead );
297 MakeVertex( newVertex2, e->Sym, &mesh->vHead );
298 MakeFace( newFace, e, &mesh->fHead );
304 * mesh connectivity and topology. It changes the mesh so that
388 * changes to get a consistent mesh in this "intermediate" state.
413 /* Claim: the mesh is now in a consistent state, except that eDel->Org
550 * An entire mesh can be deleted by zapping its faces, one at a time,
551 * in any order. Zapped faces cannot be used in further mesh operations!
598 /* __gl_meshNewMesh() creates a new mesh with no edges, no vertices,
607 GLUmesh *mesh = (GLUmesh *)memAlloc( sizeof( GLUmesh ));
608 if (mesh == NULL) {
612 v = &mesh->vHead;
613 f = &mesh->fHead;
614 e = &mesh->eHead;
615 eSym = &mesh->eHeadSym;
646 return mesh;
651 * both meshes, and returns the new mesh (the old meshes are destroyed).
691 /* __gl_meshDeleteMesh( mesh ) will free all storage for any valid mesh.
693 void __gl_meshDeleteMesh( GLUmesh *mesh )
695 GLUface *fHead = &mesh->fHead;
700 assert( mesh->vHead.next == &mesh->vHead );
702 memFree( mesh );
707 /* __gl_meshDeleteMesh( mesh ) will free all storage for any valid mesh.
709 void __gl_meshDeleteMesh( GLUmesh *mesh )
715 for( f = mesh->fHead.next; f != &mesh->fHead; f = fNext ) {
720 for( v = mesh->vHead.next; v != &mesh->vHead; v = vNext ) {
725 for( e = mesh->eHead.next; e != &mesh->eHead; e = eNext ) {
731 memFree( mesh );
738 /* __gl_meshCheckMesh( mesh ) checks a mesh for self-consistency.
740 void __gl_meshCheckMesh( GLUmesh *mesh )
742 GLUface *fHead = &mesh->fHead;
743 GLUvertex *vHead = &mesh->vHead;
744 GLUhalfEdge *eHead = &mesh->eHead;
790 && e->Sym == &mesh->eHeadSym