Mesh_analyzer
Loading...
Searching...
No Matches
Triangle Struct Reference

A struct representing a triangle in the mesh. More...

#include <triangle.h>

Public Member Functions

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

Public Attributes

std::array< int, 3 > v
 Indices of the vertices that form the triangle.
bool isBad = false
 Flag used in Delaunay triangulation to mark triangles that need to be removed.

Detailed Description

A struct representing a triangle in the mesh.

Member Function Documentation

◆ containsEdge()

bool Triangle::containsEdge ( int v1,
int v2 ) const

Check if the triangle 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 Triangle::containsPoint ( const std::vector< Point > & vertices,
const Point & P )

Check if the circum circle of the triangle contains a specific point.

Parameters
verticesThe list of vertices in the mesh
PThe point to check
Returns
true if P is inside the circum circle, false otherwise

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