def __init__(self, fileName): # ~~> possibly empty i2s InS.__init__(self, fileName) # TODO: You may need to account for the fact that more than one polygon # is an outside domain boundary # ~~> sort out by the area to build the order map self.sortByArea() # ~~> make the first / larger polygon anti-clockwise self.makeAntiClockwise(select=[0]) # ~~> make the other polygons clockwise self.makeClockwise(select=range(len(self.poly))[1:]) # ~~> initialisasing counters self.ipoin = [0] self.iline = [0] self.iloop = [0] self.isurf = [0]
def __init__(self,fileName): InS.__init__(self,fileName)
def __init__(self,fileName): InS.__init__(self,fileName) if self.fileName != '': self.head,self.fileType,self.npoin,self.poly,self.type,self.atrbut = getInS(self.fileName)