CDT  1.4.2
C++ library for constrained Delaunay triangulation
 
Loading...
Searching...
No Matches
CDT::Triangle Struct Reference

Triangulation triangle (counter-clockwise winding) More...

#include <CDTUtils.h>

Public Member Functions

 Triangle ()
 Triangle with no vertices and no neighbors.
 
 Triangle (const VerticesArr3 &vertices, const NeighborsArr3 &neighbors)
 Triangle with given vertices and neighbors.
 
std::pair< TriInd, VertIndnext (const VertInd i) const
 Next triangle adjacent to a vertex (clockwise)
 
std::pair< TriInd, VertIndprev (const VertInd i) const
 Previous triangle adjacent to a vertex (counter-clockwise)
 
bool containsVertex (const VertInd i) const
 Check if triangle contains a vertex.
 

Public Attributes

VerticesArr3 vertices
 triangle's three vertices
 
NeighborsArr3 neighbors
 triangle's three neighbors
 

Detailed Description

Triangulation triangle (counter-clockwise winding)

Definition at line 343 of file CDTUtils.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

CDT::Triangle::Triangle ( )
inline

Triangle with no vertices and no neighbors.

Definition at line 349 of file CDTUtils.h.

◆ Triangle() [2/2]

CDT::Triangle::Triangle ( const VerticesArr3 & vertices,
const NeighborsArr3 & neighbors )
inline

Triangle with given vertices and neighbors.

Definition at line 355 of file CDTUtils.h.

Member Function Documentation

◆ containsVertex()

bool CDT::Triangle::containsVertex ( const VertInd i) const
inline

Check if triangle contains a vertex.

Definition at line 389 of file CDTUtils.h.

◆ next()

std::pair< TriInd, VertInd > CDT::Triangle::next ( const VertInd i) const
inline

Next triangle adjacent to a vertex (clockwise)

Returns
pair of next triangle and the other vertex of a common edge

Definition at line 362 of file CDTUtils.h.

◆ prev()

std::pair< TriInd, VertInd > CDT::Triangle::prev ( const VertInd i) const
inline

Previous triangle adjacent to a vertex (counter-clockwise)

Returns
pair of previous triangle and the other vertex of a common edge

Definition at line 378 of file CDTUtils.h.

Member Data Documentation

◆ neighbors

NeighborsArr3 CDT::Triangle::neighbors

triangle's three neighbors

Definition at line 346 of file CDTUtils.h.

◆ vertices

VerticesArr3 CDT::Triangle::vertices

triangle's three vertices

Definition at line 345 of file CDTUtils.h.


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