Lines Matching defs:mesh

38 #include "mesh.h"
112 * CS348a notes (see mesh.h). Basically it modifies the mesh so that
275 GLUhalfEdge *__gl_meshMakeEdge( GLUmesh *mesh )
290 e = MakeEdge( &mesh->eHead );
298 MakeVertex( newVertex1, e, &mesh->vHead );
299 MakeVertex( newVertex2, e->Sym, &mesh->vHead );
300 MakeFace( newFace, e, &mesh->fHead );
306 * mesh connectivity and topology. It changes the mesh so that
390 * changes to get a consistent mesh in this "intermediate" state.
415 /* Claim: the mesh is now in a consistent state, except that eDel->Org
552 * An entire mesh can be deleted by zapping its faces, one at a time,
553 * in any order. Zapped faces cannot be used in further mesh operations!
600 /* __gl_meshNewMesh() creates a new mesh with no edges, no vertices,
609 GLUmesh *mesh = (GLUmesh *)memAlloc( sizeof( GLUmesh ));
610 if (mesh == NULL) {
614 v = &mesh->vHead;
615 f = &mesh->fHead;
616 e = &mesh->eHead;
617 eSym = &mesh->eHeadSym;
648 return mesh;
653 * both meshes, and returns the new mesh (the old meshes are destroyed).
693 /* __gl_meshDeleteMesh( mesh ) will free all storage for any valid mesh.
695 void __gl_meshDeleteMesh( GLUmesh *mesh )
697 GLUface *fHead = &mesh->fHead;
702 assert( mesh->vHead.next == &mesh->vHead );
704 memFree( mesh );
709 /* __gl_meshDeleteMesh( mesh ) will free all storage for any valid mesh.
711 void __gl_meshDeleteMesh( GLUmesh *mesh )
717 for( f = mesh->fHead.next; f != &mesh->fHead; f = fNext ) {
722 for( v = mesh->vHead.next; v != &mesh->vHead; v = vNext ) {
727 for( e = mesh->eHead.next; e != &mesh->eHead; e = eNext ) {
733 memFree( mesh );
740 /* __gl_meshCheckMesh( mesh ) checks a mesh for self-consistency.
742 void __gl_meshCheckMesh( GLUmesh *mesh )
744 GLUface *fHead = &mesh->fHead;
745 GLUvertex *vHead = &mesh->vHead;
746 GLUhalfEdge *eHead = &mesh->eHead;
792 && e->Sym == &mesh->eHeadSym