示例#1
0
 def __init__ (self, id_gen = 'max') :
     """Constructor of an empty mesh
     
     :Parameters:
      - `idgenerator` (str) - type of id gen used in the
                              mesh
     """
     Topomesh.__init__(self, id_gen)
     
     self._pos = {}
示例#2
0
 def remove_dart (self, did) :
     Topomesh.remove_dart(self, did)
     self._pos.pop(did, None)
示例#3
0
 def add_dart (self, degree, did = None) :
     did = Topomesh.add_dart(self, degree, did)
     if degree == 0 :
         self._pos[did] = None
     
     return did
示例#4
0
 def clear (self) :
     Topomesh.clear(self)
     self._pos.clear()