Core 1.0
Simplex Class Reference

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.

Detailed Description

Implicit simplex decomposition of space.

Creates a virtual infinite grid of slightly irregular tetrahedra.

Constructor & Destructor Documentation

◆ Simplex()

Simplex::Simplex ( const double & s = 1.0)
explicit

Create a simplex array.

Parameters
sSize.

Member Function Documentation

◆ Corners()

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.

Parameters
qPoint.