def __init__(self, n, t=AffineTransform()): vertices = [Vertex(0, 0), Vertex(1, 0), Vertex(math.cos(math.pi / n), math.sin(math.pi / n))] edges = [LabelledEdge(vertices[0], vertices[1], 1, Curve.S_CURVE),\ LabelledEdge(vertices[1], vertices[2]),\ LabelledEdge(vertices[2], vertices[0], 1, Curve.S_CURVE)] SimpleTile.__init__(self, edges, t) self.preTransformation = t self.n = n self.setUI(SHornUI(t, n))
def __init__(self, t=AffineTransform()): SimpleTile.__init__(self, self.edges, t) self.preTransformation = t self.setUI(TrimorphicUI(t, CubicCurve2D.Double(0, 0, 0.3, 0.5, 0.7, -0.5, 1, 0)))
def __init__(self, t=AffineTransform()): vertices = [Vertex(0, 0), Vertex(1, 0), Vertex(0, 1)] # a list of the untransformed vertices SimpleTile.__init__(self, vertices, t) self.preTransformation = t