from geopar.angle_class import Angle

__author__ = 'mostly satbek'  # edits by eric braude


class TriangulatedFigure:
    """
    Class Invariants
    1: self.triangles is a list of triangle, each with a unique set of vertices
    2: For every triangle t1 in self.triangles, there is a t2 in self.triangles
       such that t1.points and t2.points share 2 elements
    """

    def __init__(self, triangles=None):
        # the Triangle objects that make up self

        if triangles:
            self._triangles = triangles
        else:
            self._triangles = []