|
Core 1.0
|
Implicit simplex decomposition of space. More...
#include <simplex.h>
Public Member Functions | |
| Simplex (const double &=1.0) | |
| Create a simplex array. | |
| ~Simplex () | |
| Empty. | |
| double | Size () const |
| Return the size of the simplex structure. | |
| Tetrahedra | Corners (const Vector &) const |
| Compute the offsets from the four corners of the simplex cell containing the argument point. | |
Protected Attributes | |
| double | size = 1.0 |
| Size. | |
Static Protected Attributes | |
| static const double | G3 = 1.0 / 6.0 |
| Unskew factors. | |
Implicit simplex decomposition of space.
Creates a virtual infinite grid of slightly irregular tetrahedra.
|
explicit |
Create a simplex array.
| s | Size. |
| Tetrahedra Simplex::Corners | ( | const Vector & | q | ) | const |
Compute the offsets from the four corners of the simplex cell containing the argument point.
The vertexes of the returned tetrahedron are not the corners in world coordinates, but the vectors from each corner to the point, in grid units.
| q | Point. |