def closest_point(self, xx): cpxx, dist, _, _ = SurfOfRevolution.closest_point(self, xx-self.center) return cpxx, dist, np.zeros(xx.ndim), {}