Sphere constructor
Contents
[
Hide
]__init__(self)
Initializes a new instance of the Sphere with default radius 1.
def __init__(self):
...
__init__(self, radius)
Initializes a new instance of the Sphere class with specified radius.
def __init__(self, radius):
...
| Parameter | Type | Description |
|---|---|---|
| radius | float | Radius. |
__init__(self, radius, width_segments, height_segments)
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__(self, name, radius, width_segments, height_segments, phi_start, phi_length, theta_start, theta_length)
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 | System.String | 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