Vertex

Represents a vertex (0-dimensional element) in a mesh.

Defined in Rodin/Geometry/Polytope.h

class Vertex;

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
Direct inheritance by class family
↓
Vertex

Inherits from

Base classResponsibility
Polytopepublic
Full type
Polytope
Base class for all geometric elements in finite element meshes.

Inherited interface

Declared inMembers
Polytope
19 members

Public types

using Parent = Polytope
Parent class type.

Constructors, destructors, conversion operators

Vertex(Index index, const MeshBase& mesh)
Constructs a vertex with given index.
Vertex(const Vertex& other)
Copy constructor.

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 -> Math::SpatialPoint
Gets the vertex coordinates as a vector.
auto getGeometry() const -> Type constexpr
Gets the geometry type (always Point for vertices).

Function documentation

Vertex(Index index, const MeshBase& mesh)

Constructs a vertex with given index.

Parameters
index in Index of the vertex in the mesh
mesh in Reference to the containing mesh

Vertex(const Vertex& other)

Copy constructor.

Parameters
other Object to copy from.

Real x() const

Gets the x-coordinate (first coordinate).

Returns x-coordinate value

Real y() const

Gets the y-coordinate (second coordinate).

Returns y-coordinate value

Real z() const

Gets the z-coordinate (third coordinate).

Returns z-coordinate value

Real operator()(size_t i) const

Gets the i-th coordinate.

Parameters
i in Coordinate index (must be less than space dimension)
Returns i-th coordinate value

Math::SpatialPoint getCoordinates() const

Gets the vertex coordinates as a vector.

Returns Eigen map to the coordinate vector

Type getGeometry() const constexpr

Gets the geometry type (always Point for vertices).

Returns Polytope::Type::Point