10#ifndef INCG818709b0104548a7b5e6f47bdba89f69
11#define INCG818709b0104548a7b5e6f47bdba89f69
13#include <lf/mesh/mesh.h>
54 std::unique_ptr<geometry::
Geometry>&& geometry)
58 LF_VERIFY_MSG(
geometry_,
"Point must be supplied with a geometry");
60 "Geometry must be that of a point");
62 "Geometry must fit point");
65 [[nodiscard]]
unsigned Codim()
const override {
return 2; }
69 unsigned rel_codim)
const override {
70 LF_ASSERT_MSG(rel_codim == 0,
"A point has only codim = 0 sub-entities");
77 LF_ASSERT_MSG(
false,
"A point has not sub-entities");
78 return std::span<Orientation>();
101 std::unique_ptr<geometry::Geometry>
geometry_ =
nullptr;
102 static constexpr std::array<lf::mesh::Orientation, 1>
dummy_or_{
Represents a reference element with all its properties.
static constexpr RefEl kPoint()
Returns the (0-dimensional) reference point.
Interface class for shape information on a mesh cell in the spirit of parametric finite element metho...
Interface class representing a topological entity in a cellular complex
lf::base::size_type size_type
A node object for a 2D hybrid mesh.
bool operator==(const mesh::Entity &rhs) const override
Check if two entities are the same.
Point(const Point &)=delete
const geometry::Geometry * Geometry() const override
return pointer to associated geometry object
Point(Point &&) noexcept=default
std::unique_ptr< geometry::Geometry > geometry_
mesh::Mesh::size_type size_type
unsigned Codim() const override
The codimension of this entity w.r.t. the Mesh.dimMesh() of the owning mesh manager.
base::RefEl RefEl() const override
Describes the reference element type of this entity.
size_type index() const
access to index of an entity
std::span< const lf::mesh::Orientation > RelativeOrientations() const override
Point()=default
default constructors, needed by std::vector
~Point() override=default
static constexpr std::array< lf::mesh::Orientation, 1 > dummy_or_
std::span< const Entity *const > SubEntities(unsigned rel_codim) const override
Return all sub entities of this entity that have the given codimension (w.r.t. this entity!...
An alternative implementation of a hybrid2d mesh manager that uses Pointers to store sub-entity relat...