It is defined by four vertices p0, p1, p2 and p3. The orientation of a tetrahedron is the orientation of its four vertices. That means it is positive when p3 is on the positive side of the plane defined by p0, p1 and p2.
The tetrahedron itself splits the space 3 in a positive and a negative side.
The boundary of a tetrahedron splits the space in two open regions, a bounded one and an unbounded one.
| |
introduces a tetrahedron t with vertices p0, p1, p2 and p3.
|
|
| Test for equality: two tetrahedra t and t2 are equal, iff t and t2 have the same orientation and their sets (not sequences) of vertices are equal. |
|
| Test for inequality. |
|
| returns the i'th vertex modulo 4 of t. |
|
| returns vertex(int i). |
|
| Tetrahedron t is degenerate, if the vertices are coplanar. | ||
|
|
|||
|
| |||
| ||||
|
| |||
|
For convenience we provide the following Boolean functions:
|
| |
|
| |
|
| |
|
| |
|
|
|
| returns the signed volume of t. |
|
| returns a bounding box containing t. |
|
| |
returns the tetrahedron obtained by applying at on the three vertices of t. |