Hexahedron
Class Documentation
Overview
References
Class Documentation
Bases: Polyhedron
Hexahedron Class
Regular unit cube.
calc_angle_dihedral(a)
staticmethod
Face-edge-face angle, i.e., "dihedral angle" (approx. 90.0000)
calc_angle_solid_vertex()
staticmethod
Solid angle at a vertex subtended by a face (approx. 1.57080 steradians)
calc_angle_subtended(a)
staticmethod
Vertex-Center-Vertex angle calc_face_angle_face_edge_face The angle between lines from the hexaahedron center to any two vertices. It is also the angle between Plateau borders at a vertex. In chemistry it is called the tetrahedral bond angle. This angle (in radians) is also the length of the circular arc on the unit sphere resulting from centrally projecting one edge of the hexaahedron to the sphere.
(approx. 70.529°)
calc_area(a)
staticmethod
Calculate Area Static Method
Formula to calculate the area of a Hexahedron
Parameters:
Name | Type | Description | Default |
---|---|---|---|
edge_length |
float | int
|
The radius of the Hexahedron. |
required |
Returns:
Name | Type | Description |
---|---|---|
area |
float
|
The area of the Hexahedron. |
calc_face_angles()
staticmethod
angles between faces (in radians)
calc_radius_circumsphere(a)
staticmethod
radius of circumscribed sphere
calc_radius_insphere(a)
staticmethod
radius of inscribed sphere
calc_radius_midsphere(a)
staticmethod
radius of sphere tangent to edges
calc_volume(a)
staticmethod
Calculate Volume Static Method
Formula to calculate the volume of a Hexahedron
Parameters:
Name | Type | Description | Default |
---|---|---|---|
a |
float | int
|
The edge length of the Hexahedron. |
required |
Returns:
Name | Type | Description |
---|---|---|
area |
float
|
The area of the Hexahedron. |
get_unit_faces()
staticmethod
Faces Static Method
Returns:
Name | Type | Description |
---|---|---|
faces |
list
|
The return value. True for success, False otherwise. |
vertices()
staticmethod
Vertices Static Method
Vertex coordinates: (±1, ±1, ±1)
Returns:
Name | Type | Description |
---|---|---|
vertices |
list
|
The vertex coordinates of the Hexahedron. |