Exemplo n.º 1
0
    def __init__(self, file_name):

        # ~~> possibly empty i2s
        InS.__init__(self, file_name)

        # 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.sort_by_areas()
        # ~~> make the first / larger polygon anti-clockwise
        self.make_anti_clockwise(select=[0])
        # ~~> make the other polygons clockwise
        self.make_clockwise(select=range(len(self.poly))[1:])

        # ~~> initialisasing counters
        self.ipoin = [0]
        self.iline = [0]
        self.iloop = [0]
        self.isurf = [0]
 def __init__(self, file_name):
     InS.__init__(self, file_name)