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

Construct a new pyramid instance with default bottom area(10, 10) and default height(5)



```python

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




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

Construct a new pyramid instance with specified bottom area



```python

def __init__(self, xbottom, ybottom, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| xbottom | float | The x-direction length of the bottom |
| ybottom | float | The y-direction length of the bottom |
| height | float | The height of the pyramid |


## \_\_init\_\_(self, xbottom, ybottom, xtop, ytop, height) {#float-float-float-float-float}

Construct a new pyramid instance with specified bottom area and top area and height.



```python

def __init__(self, xbottom, ybottom, xtop, ytop, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| xbottom | float | The x-direction length of the bottom area |
| ybottom | float | The y-direction length of the bottom area |
| xtop | float | The x-direction length of the top area |
| ytop | float | The y-direction length of the top area |
| height | float | The height of the pyramid |


## \_\_init\_\_(self, name, xbottom, ybottom, xtop, ytop, height) {#str-float-float-float-float-float}

Construct a new pyramid instance with specified bottom area and top area and height.



```python

def __init__(self, name, xbottom, ybottom, xtop, ytop, height):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| name | str | The name of the pyramid |
| xbottom | float | The x-direction length of the bottom area |
| ybottom | float | The y-direction length of the bottom area |
| xtop | float | The x-direction length of the top area |
| ytop | float | The y-direction length of the top area |
| height | float | The height of the pyramid |



### See Also
* module [`aspose.threed.entities`](../../)
* class [`Pyramid`](/3d/python-net/aspose.threed.entities/pyramid)
