def __init__(self, center=np.array([0.0, 0.0, 0.0]), a=1.5, b=0.75, whichaxis='x'): self.center = center self.a = a self.b = b # shift to origin, rotate about axis SurfOfRevolution.__init__(self, Ellipse, whichaxis, 1, np.array([0.0, 0.0, 0.0]), a, b) # shift back self.bounding_box = self.bounding_box + self.center