Cylinder constructor
Contents
[
Hide
]__init__(self)
Initializes a new instance of the Cylinder class.
def __init__(self):
...
__init__(self, radius, height)
Initializes a new instance of the Cylinder class.
def __init__(self, radius, height):
...
| Parameter | Type | Description |
|---|---|---|
| radius | float | Radius of the top and bottom cap. |
| height | float | Height. |
__init__(self, radius_top, radius_bottom, height)
Initializes a new instance of the Cylinder class.
def __init__(self, radius_top, radius_bottom, height):
...
| Parameter | Type | Description |
|---|---|---|
| radius_top | float | Radius top. |
| radius_bottom | float | Radius bottom. |
| height | float | Height. |
__init__(self, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended)
Initializes a new instance of the Cylinder class.
def __init__(self, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended):
...
| Parameter | Type | Description |
|---|---|---|
| radius_top | float | Radius of cylinder’s top cap. |
| radius_bottom | float | Radius of cylinder’s bottom cap. |
| height | float | Height of the cylinder. |
| radial_segments | int | Radial segments of both top and bottom circles.. |
| height_segments | int | Height segments. |
| open_ended | bool | If set to true the cylinder would have no bottom/top caps.. |
__init__(self, name, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended, theta_start, theta_length)
Initializes a new instance of the Cylinder class.
def __init__(self, name, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended, theta_start, theta_length):
...
| Parameter | Type | Description |
|---|---|---|
| name | str | The name of this object |
| radius_top | float | Radius of cylinder’s top cap. |
| radius_bottom | float | Radius of cylinder’s bottom cap. |
| height | float | Height of the cylinder. |
| radial_segments | int | Radial segments of both top and bottom circles.. |
| height_segments | int | Height segments. |
| open_ended | bool | If set to true the cylinder would have no bottom/top caps.. |
| theta_start | float | Theta start. |
| theta_length | float | Theta length. |
See Also
- module
aspose.threed.entities - class
Cylinder