DGtal 1.3.0
Loading...
Searching...
No Matches
Public Member Functions | Data Fields
DGtal::HalfEdgeDataStructure::Triangle Struct Reference

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

#include <DGtal/topology/HalfEdgeDataStructure.h>

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 154 of file HalfEdgeDataStructure.h.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

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

Definition at line 168 of file HalfEdgeDataStructure.h.

169 {
170 v[0] = v[1] = v[2] = -1;
171 }

◆ Triangle() [2/2]

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

Definition at line 172 of file HalfEdgeDataStructure.h.

173 {
174 v[0] = v0;
175 v[1] = v1;
176 v[2] = v2;
177 }

Member Function Documentation

◆ i() [1/2]

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

Definition at line 159 of file HalfEdgeDataStructure.h.

159{ return v[0]; }

◆ i() [2/2]

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

Definition at line 160 of file HalfEdgeDataStructure.h.

160{ return v[0]; }

◆ j() [1/2]

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

Definition at line 162 of file HalfEdgeDataStructure.h.

162{ return v[1]; }

◆ j() [2/2]

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

Definition at line 163 of file HalfEdgeDataStructure.h.

163{ return v[1]; }

◆ k() [1/2]

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

Definition at line 165 of file HalfEdgeDataStructure.h.

165{ return v[2]; }

◆ k() [2/2]

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

Definition at line 166 of file HalfEdgeDataStructure.h.

166{ return v[2]; }

Field Documentation

◆ v

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

The three vertex indices.

Definition at line 157 of file HalfEdgeDataStructure.h.


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