for turning spherical surfaces inside or outside