Rebel Fork Framework
Urho3D::Tetrahedron Struct Reference

Tetrahedron with adjacency information. More...

#include <Urho3D/Math/TetrahedralMesh.h>

Public Member Functions

void CalculateInnerMatrix (const ea::vector< Vector3 > &vertices)
 Calculate matrix for valid inner tetrahedron.
 
void GetTriangleFaceIndices (unsigned faceIndex, unsigned(&indices)[3]) const
 Return indices of specified triangle face of the tetrahedron.
 
TetrahedralMeshSurfaceTriangle GetTriangleFace (unsigned faceIndex, unsigned tetIndex, unsigned tetFace) const
 Return triangle face of the tetrahedron. Adjacency information is left uninitialized.
 
unsigned GetNeighborFaceIndex (unsigned neighborTetIndex) const
 Return face index corresponding to given neighbor. Return 4 if not found.
 
bool HasNeighbor (unsigned neighborTetIndex) const
 Return whether the tetrahedron has given neighbour.
 

Public Attributes

unsigned indices_ [4] {}
 Indices of tetrahedron vertices.
 
unsigned neighbors_ [4] { M_MAX_UNSIGNED, M_MAX_UNSIGNED, M_MAX_UNSIGNED, M_MAX_UNSIGNED }
 Indices of neighbor tetrahedrons. M_MAX_UNSIGNED if empty.
 
Matrix3x4 matrix_
 Pre-computed matrix for calculating barycentric coordinates.
 

Static Public Attributes

static const unsigned Infinity3 = M_MAX_UNSIGNED
 Special index for infinite vertex of outer tetrahedron, cubic equation.
 
static const unsigned Infinity2 = M_MAX_UNSIGNED - 1
 Special index for infinite vertex of outer tetrahedron, square equation.
 

Detailed Description

Tetrahedron with adjacency information.


The documentation for this struct was generated from the following file: