Sphere constructor
Contents
[
Hide
]init
Initializes a new instance of the Sphere
with default radius 1.
def __init__(self):
...
init
Initializes a new instance of the Sphere
class with specified radius.
def __init__(self, radius):
...
Parameter | Type | Description |
---|---|---|
radius | float | Radius. |
init
Initializes a new instance of the Sphere
class with specified radius, width segments and height segments.
def __init__(self, radius, width_segments, height_segments):
...
Parameter | Type | Description |
---|---|---|
radius | float | Radius of the sphere. |
width_segments | int | Width segments. |
height_segments | int | Height segments. |
init
Initializes a new instance of the Sphere
class.
def __init__(self, name, radius, width_segments, height_segments, phi_start, phi_length, theta_start, theta_length):
...
Parameter | Type | Description |
---|---|---|
name | str | Name. |
radius | float | Radius of the sphere. |
width_segments | int | Width segments. |
height_segments | int | Height segments. |
phi_start | float | Phi start. |
phi_length | float | Phi length. |
theta_start | float | Theta start. |
theta_length | float | Theta length. |
See Also
- module
aspose.threed.entities
- class
Sphere