def draw_sphere(self, center_x, center_y, center_z, radius, color=Color.BLACK(), theta_step=30, phi_step=30): """ Draws the polygons of a sphere onto the internal raster after applying the current TransformationMatrix on the stack. Parameters: center_x: int, the x coordinate of the center of the sphere center_y: int, the y coordinate of the center of the sphere center_z: int, the z coordinate of the center of the sphere radius: int, the radius of the sphere color: Color (optional), the color of the points theta_step: int (optional), the number of steps to use when drawing the circles phi_step: int (optional), the number of steps to use when rotating the circles about the center point """ self.draw_polygonmatrix( Generator.get_sphere_polygonmatrix(center_x, center_y, center_z, radius, theta_step=theta_step, phi_step=phi_step), color)
def draw_sphere(self, center_x, center_y, center_z, radius, color=Color.BLACK(), theta_step=30, phi_step=30): """ Draws the polygons of a sphere onto the internal raster after applying the current TransformationMatrix on the stack. Parameters: center_x: int, the x coordinate of the center of the sphere center_y: int, the y coordinate of the center of the sphere center_z: int, the z coordinate of the center of the sphere radius: int, the radius of the sphere color: Color (optional), the color of the points theta_step: int (optional), the number of steps to use when drawing the circles phi_step: int (optional), the number of steps to use when rotating the circles about the center point """ self.draw_polygonmatrix( Generator.get_sphere_polygonmatrix( center_x, center_y, center_z, radius, theta_step=theta_step, phi_step=phi_step ), color, )