Enmesh
Loading...
Searching...
No Matches
Enmesh::Tetrahedron Struct Reference

Public Member Functions

bool containsPoint (const std::vector< Point > &vertices, const Point &point)
 Check if the circumsphere of the tetrahedron contains a specific point.
bool containsEdge (int v1, int v2) const
 Check if the circumsphere of the tetrahedron contains a specific edge defined by two vertex indices.

Public Attributes

std::array< size_t, 4 > v
 Indices of the vertices that form the tetrahedron.
bool isBad = false
 Flag used in Delaunay triangulation to mark tetrahedra that need to be removed.

Static Public Attributes

static constexpr size_t elementType = 4
 Gmsh element type for tetrahedra.
static constexpr size_t numVertices = 4
 Number of vertices in a tetrahedron.

Member Function Documentation

◆ containsEdge()

bool Enmesh::Tetrahedron::containsEdge ( int v1,
int v2 ) const

Check if the circumsphere of the tetrahedron contains a specific edge defined by two vertex indices.

Parameters
v1index of the first vertex of the edge
v2index of the second vertex of the edge

◆ containsPoint()

bool Enmesh::Tetrahedron::containsPoint ( const std::vector< Point > & vertices,
const Point & point )

Check if the circumsphere of the tetrahedron contains a specific point.

Parameters
verticesThe list of vertices in the mesh
pointThe point to check
Returns
true if point is inside the circumsphere, false otherwise

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