graphics::VertexInfo Class Reference

Class containing information about one single vertex. More...

#include <vertexList.hh>

Public Member Functions

void addEdge (uint edge)
 Adds an edge to the list of edges. More...
 
void addFace (uint face)
 Adds a face to the list of faces. More...
 
void addVolume (uint volume)
 Adds a volume to the list of volumes. More...
 
concepts::Real3d coordinates () const
 Returns the coordinates. More...
 
uint & index ()
 Sets the index of the vertex. More...
 
uint index () const
 Returns the index of the vertex. More...
 
 VertexInfo (concepts::Real3d coord, uint index=0)
 Constructor. More...
 

Private Attributes

concepts::Real3d coord_
 Coordinates of the vertex. More...
 
std::unordered_set< uint > edges_
 List of edges meeting at this vertex. More...
 
std::unordered_set< uint > faces_
 List of faces meeting at this vertex. More...
 
uint index_
 Index of the vertex. More...
 
std::unordered_set< uint > volumes_
 List of volumes meeting at this vertex (only useful for 3D) More...
 

Friends

std::ostream & operator<< (std::ostream &os, const VertexInfo &v)
 

Detailed Description

Class containing information about one single vertex.

Included are connectivity and coordinates. A whole list of vertices can be managed with VertexList.

A vertex is create by giving its coordinates. After creation, the connectivity information for the edges, faces and volumes can be added.

See also
VertexList
Author
Philipp Frauenfelder, 2001

Definition at line 35 of file vertexList.hh.

Constructor & Destructor Documentation

◆ VertexInfo()

graphics::VertexInfo::VertexInfo ( concepts::Real3d  coord,
uint  index = 0 
)
inline

Constructor.

Creates a vertex with the given coordinates and no edges, faces etc.

Definition at line 42 of file vertexList.hh.

Member Function Documentation

◆ addEdge()

void graphics::VertexInfo::addEdge ( uint  edge)
inline

Adds an edge to the list of edges.

Definition at line 46 of file vertexList.hh.

◆ addFace()

void graphics::VertexInfo::addFace ( uint  face)
inline

Adds a face to the list of faces.

Definition at line 49 of file vertexList.hh.

◆ addVolume()

void graphics::VertexInfo::addVolume ( uint  volume)
inline

Adds a volume to the list of volumes.

Definition at line 52 of file vertexList.hh.

◆ coordinates()

concepts::Real3d graphics::VertexInfo::coordinates ( ) const
inline

Returns the coordinates.

Definition at line 60 of file vertexList.hh.

◆ index() [1/2]

uint& graphics::VertexInfo::index ( )
inline

Sets the index of the vertex.

Definition at line 55 of file vertexList.hh.

◆ index() [2/2]

uint graphics::VertexInfo::index ( ) const
inline

Returns the index of the vertex.

Definition at line 57 of file vertexList.hh.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const VertexInfo v 
)
friend

Member Data Documentation

◆ coord_

concepts::Real3d graphics::VertexInfo::coord_
private

Coordinates of the vertex.

Definition at line 70 of file vertexList.hh.

◆ edges_

std::unordered_set<uint> graphics::VertexInfo::edges_
private

List of edges meeting at this vertex.

Definition at line 73 of file vertexList.hh.

◆ faces_

std::unordered_set<uint> graphics::VertexInfo::faces_
private

List of faces meeting at this vertex.

Definition at line 76 of file vertexList.hh.

◆ index_

uint graphics::VertexInfo::index_
private

Index of the vertex.

This number can be different from the key of the vertex in the list and in the topology.

See also
VertexList

Definition at line 67 of file vertexList.hh.

◆ volumes_

std::unordered_set<uint> graphics::VertexInfo::volumes_
private

List of volumes meeting at this vertex (only useful for 3D)

Definition at line 79 of file vertexList.hh.


The documentation for this class was generated from the following file:
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich