This class defines a cuboid shape. Needed inputs are
central - Central axis
centroid - Centroid of block
length - Cuboid length
width - Cuboid width
height - Cuboid height
Dictionary of necessary inputs
Methods
|
Surface function of a cuboid. |
|
This helper method rotates the given data to match the global central axis and translates it so that the center point is aligned. |
|
Return full input dictionary. |
|
Check if given position is inside of shape. |
|
Calculate unit normal vector on surface for a given position. |
|
Plot surface and rim. |
|
Return x and y values for given length. |
|
Return x, y and z values for the shape. |
|
Calculate inner surface |
|
Calculate volume |