Vertex class
#include <Rodin/Geometry/Polytope.h>
Represents a vertex (0-dimensional element) in a mesh.
Vertices are the fundamental building blocks of the mesh, representing points in space with associated coordinates. They serve as:
- Degrees of freedom locations for P1 finite elements
- Endpoints for edges and corners for higher-dimensional elements
- Spatial anchors for the mesh geometry
Base classes
- class Polytope
- Base class for all geometric elements in finite element meshes.
Public types
Constructors, destructors, conversion operators
Public functions
- auto x() const -> Real
- Gets the x-coordinate (first coordinate).
- auto y() const -> Real
- Gets the y-coordinate (second coordinate).
- auto z() const -> Real
- Gets the z-coordinate (third coordinate).
- auto operator()(size_t i) const -> Real
- Gets the i-th coordinate.
-
auto getCoordinates() const -> Eigen::Map<const Math::
SpatialPoint> - Gets the vertex coordinates as a vector.
- auto getGeometry() const -> Type constexpr
- Gets the geometry type (always Point for vertices).
Function documentation
Real Rodin:: Geometry:: Vertex:: operator()(size_t i) const
Gets the i-th coordinate.
| Parameters | |
|---|---|
| i in | Coordinate index |
| Returns | i-th coordinate value |
Eigen::Map<const Math:: SpatialPoint> Rodin:: Geometry:: Vertex:: getCoordinates() const
Gets the vertex coordinates as a vector.
| Returns | Eigen map to the coordinate vector |
|---|
Type Rodin:: Geometry:: Vertex:: getGeometry() const constexpr
Gets the geometry type (always Point for vertices).
| Returns | Polytope:: |
|---|