def register_points(self, points): point_coordinates = [point.coordinates for point in points] cc = corner_coordinates(point_coordinates) self.reference_points = [cc[id_] for id_ in self.corners] #self.reference_points = [cc[id_] for id_ in self.corners] + [[15, 15]] #self.reference_points = [(6, 21)] #self.reference_points = cc[0:3] #self.reference_points = [(10, -10)] return super(TrueDistanceFromCornersEdgeCostGenerator, self).register_points(points)
def register_points(self, points): point_coordinates = [point.coordinates for point in points] cc = corner_coordinates(point_coordinates) self.point_pairs = [[cc[id_a], cc[id_b]] for id_a, id_b in self.point_type_pairs] return super(AbstractPairOfCornersOrientedEdgeCostGenerator, self).register_points(points)