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
Definition at line 35 of file vertexList.hh.
Constructor & Destructor Documentation
◆ VertexInfo()
|
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()
|
inline |
Adds an edge to the list of edges.
Definition at line 46 of file vertexList.hh.
◆ addFace()
|
inline |
Adds a face to the list of faces.
Definition at line 49 of file vertexList.hh.
◆ addVolume()
|
inline |
Adds a volume to the list of volumes.
Definition at line 52 of file vertexList.hh.
◆ coordinates()
|
inline |
Returns the coordinates.
Definition at line 60 of file vertexList.hh.
◆ index() [1/2]
|
inline |
Sets the index of the vertex.
Definition at line 55 of file vertexList.hh.
◆ index() [2/2]
|
inline |
Returns the index of the vertex.
Definition at line 57 of file vertexList.hh.
Friends And Related Function Documentation
◆ operator<<
|
friend |
Member Data Documentation
◆ coord_
|
private |
Coordinates of the vertex.
Definition at line 70 of file vertexList.hh.
◆ edges_
|
private |
List of edges meeting at this vertex.
Definition at line 73 of file vertexList.hh.
◆ faces_
|
private |
List of faces meeting at this vertex.
Definition at line 76 of file vertexList.hh.
◆ 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_
|
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:
- graphics/vertexList.hh