from Constraint import Constraint class DistanceConstraint(Constraint): def __init__(self, shape1, attr1, shape2, attr2, dist): self.shape1 = shape1 self.shape2 = shape2 self.attr1 = attr1 self.attr2 = attr2 self.dist = dist