PyramidalFrustum
A solid shape with 6 faces. A pyramidal frustum is the lower portion or base of a pyramid that is a result of cutting off the upper portion by a plane parallel to the base of the shape. If the width and length of the lower and the upper plane are equal respectively, the pyramidal frustum is called a square frustum.
- Decorators
- dataclasses.dataclass
Methods
__post_init__(self) -> None
volume_for_height(self, height) -> None
Parameters
- Name
self
- Type
- Default
- Description
- Name
height
- Type
- Default
- Description
height_for_volume(self, volume) -> None
Parameters
- Name
self
- Type
- Default
- Description
- Name
volume
- Type
- Default
- Description
Attributes
- Name
width_lower
- Type
- Decimal
- Value
= Decimal()
- Description
- Name
depth_lower
- Type
- Decimal
- Value
= Decimal()
- Description
- Name
width_upper
- Type
- Decimal
- Value
= Decimal()
- Description
- Name
depth_upper
- Type
- Decimal
- Value
= Decimal()
- Description
- Name
height
- Type
- Decimal
- Value
= Decimal()
- Description
- Name
max_fitting_volume
- Type
- decimal.Decimal
- Value
= None
- Description
The maximum volume that fits into this shape.