
## \_\_init\_\_(self) {#}

Initializes a new instance of the [`Cylinder`](/3d/python-net/aspose.threed.entities/cylinder) class.



```python

def __init__(self):
    ...
```




## \_\_init\_\_(self, radius, height) {#float-float}

Initializes a new instance of the [`Cylinder`](/3d/python-net/aspose.threed.entities/cylinder) class.



```python

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) {#float-float-float}

Initializes a new instance of the [`Cylinder`](/3d/python-net/aspose.threed.entities/cylinder) class.



```python

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) {#float-float-float-int-int-bool}

Initializes a new instance of the [`Cylinder`](/3d/python-net/aspose.threed.entities/cylinder) class.



```python

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) {#str-float-float-float-int-int-bool-float-float}

Initializes a new instance of the [`Cylinder`](/3d/python-net/aspose.threed.entities/cylinder) class.



```python

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`](/3d/python-net/aspose.threed.entities/cylinder)
