def to_tuple(self):
    import numpy as np
    barycenter = np.mean(self.control_nodes, axis=0)[:2]
    return barycenter
def to_tuple(self):
    import numpy as np
    barycenter = np.mean(self.control_nodes, axis=0)[:2]
    return barycenter