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

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

#include <CDTUtils.h>

Collaboration diagram for CDT::Triangle:

Public Member Functions

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
 

Static Public Member Functions

static Triangle make (const array< VertInd, 3 > &vertices, const array< TriInd, 3 > &neighbors)
 Factory method.
 

Public Attributes

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

Detailed Description

Triangulation triangle (counter-clockwise winding)

Definition at line 258 of file CDTUtils.h.

Member Function Documentation

◆ containsVertex()

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

Definition at line 302 of file CDTUtils.h.

◆ make()

static Triangle CDT::Triangle::make ( const array< VertInd, 3 > & vertices,
const array< TriInd, 3 > & neighbors )
inlinestatic

Factory method.

Note
needed for c++03 compatibility (no uniform initialization available)

Definition at line 269 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 277 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 292 of file CDTUtils.h.

Member Data Documentation

◆ neighbors

NeighborsArr3 CDT::Triangle::neighbors

triangle's three neighbors

Definition at line 261 of file CDTUtils.h.

◆ vertices

VerticesArr3 CDT::Triangle::vertices

triangle's three vertices

Definition at line 260 of file CDTUtils.h.


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