face.cpp

Go to the documentation of this file.
00001 /**
00002  *\file         face.cpp
00003  *
00004  *\brief        
00005  *
00006  *\author       Xianming Chen\n
00007  *              Computer Science Department\n
00008  *              University of Utah
00009  *
00010  *\date         16 Aug 2006\n
00011  *              Copyright (c) 2006, University of Utah
00012  */
00013 
00014 
00015 #include "euler.h"
00016 #include "print.h"
00017 
00018 
00019 namespace euler
00020 {
00021 
00022   face_t :: ~face_t()
00023   {
00024     while(l)
00025     {
00026       loop_t* temp = l;
00027       l = l->nxt;
00028       delete temp;
00029     }
00030     if(id == cur_id-1) cur_id--; 
00031   }
00032 
00033 
00034   loop_t* face_t :: new_loop()
00035   {
00036     return new loop_t(this);
00037   }
00038 
00039 
00040   loop_t* face_t :: new_loop(vertex_t *v)
00041   {
00042     return new loop_t(this, v);
00043   }
00044   
00045 
00046   void face_t :: del_loop(loop_t* lp)
00047   {
00048     if(l == lp) l = lp->nxt; 
00049     if(lp->pre) lp->pre->nxt = lp->nxt;  
00050     if(lp->nxt) lp->nxt->pre = lp->pre; 
00051     delete lp;
00052   }
00053 
00054 
00055 
00056 
00057   
00058   
00059 
00060 
00061 }//end namespace euler

Generated on Wed Aug 30 16:27:58 2006 for euler by  doxygen 1.4.6