DGtal  1.0.0
Public Member Functions | Data Fields
DGtal::HalfEdgeDataStructure::Triangle Struct Reference

Represents an unoriented triangle as three vertices. More...

#include <DGtal/topology/HalfEdgeDataStructure.h>

Collaboration diagram for DGtal::HalfEdgeDataStructure::Triangle:
[legend]

Public Member Functions

VertexIndexi ()
 
const VertexIndexi () const
 
VertexIndexj ()
 
const VertexIndexj () const
 
VertexIndexk ()
 
const VertexIndexk () const
 
 Triangle ()
 
 Triangle (VertexIndex v0, VertexIndex v1, VertexIndex v2)
 

Data Fields

std::array< VertexIndex, 3 > v
 The three vertex indices. More...
 

Detailed Description

Represents an unoriented triangle as three vertices.

Definition at line 158 of file HalfEdgeDataStructure.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

DGtal::HalfEdgeDataStructure::Triangle::Triangle ( )
inline

Definition at line 172 of file HalfEdgeDataStructure.h.

173  {
174  v[0] = v[1] = v[2] = -1;
175  }

◆ Triangle() [2/2]

DGtal::HalfEdgeDataStructure::Triangle::Triangle ( VertexIndex  v0,
VertexIndex  v1,
VertexIndex  v2 
)
inline

Definition at line 176 of file HalfEdgeDataStructure.h.

177  {
178  v[0] = v0;
179  v[1] = v1;
180  v[2] = v2;
181  }

Member Function Documentation

◆ i() [1/2]

VertexIndex& DGtal::HalfEdgeDataStructure::Triangle::i ( )
inline

Definition at line 163 of file HalfEdgeDataStructure.h.

163 { return v[0]; }

◆ i() [2/2]

const VertexIndex& DGtal::HalfEdgeDataStructure::Triangle::i ( ) const
inline

Definition at line 164 of file HalfEdgeDataStructure.h.

164 { return v[0]; }

◆ j() [1/2]

VertexIndex& DGtal::HalfEdgeDataStructure::Triangle::j ( )
inline

Definition at line 166 of file HalfEdgeDataStructure.h.

166 { return v[1]; }

◆ j() [2/2]

const VertexIndex& DGtal::HalfEdgeDataStructure::Triangle::j ( ) const
inline

Definition at line 167 of file HalfEdgeDataStructure.h.

167 { return v[1]; }

◆ k() [1/2]

VertexIndex& DGtal::HalfEdgeDataStructure::Triangle::k ( )
inline

Definition at line 169 of file HalfEdgeDataStructure.h.

169 { return v[2]; }

◆ k() [2/2]

const VertexIndex& DGtal::HalfEdgeDataStructure::Triangle::k ( ) const
inline

Definition at line 170 of file HalfEdgeDataStructure.h.

170 { return v[2]; }

Field Documentation

◆ v

std::array<VertexIndex,3> DGtal::HalfEdgeDataStructure::Triangle::v

The three vertex indices.

Definition at line 161 of file HalfEdgeDataStructure.h.


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