26 #include <dolfin/geometry/Point.h> 28 #include "MeshEntity.h" 29 #include "MeshEntityIteratorBase.h" 30 #include "MeshFunction.h" 51 double x(std::size_t i)
const 52 {
return _mesh->
geometry().
x(_local_index, i); }
59 const double*
x()
const 60 {
return _mesh->
geometry().
x(_local_index); }
const Mesh & mesh() const
Definition: MeshEntity.h:99
std::size_t index() const
Definition: MeshEntity.h:113
A Vertex is a MeshEntity of topological dimension 0.
Definition: Vertex.h:37
const double * x() const
Return array of vertex coordinates (const version)
Definition: Vertex.h:59
double x(std::size_t i) const
Return value of vertex coordinate i.
Definition: Vertex.h:51
double x(std::size_t n, std::size_t i) const
Return value of coordinate with local index n in direction i.
Definition: MeshGeometry.h:99
MeshGeometry & geometry()
Definition: Mesh.h:233
Point point(std::size_t n) const
Return coordinate with local index n as a 3D point value.
Definition: MeshGeometry.cpp:60
Vertex(MeshEntity &entity)
Create vertex from mesh entity.
Definition: Vertex.h:45
Point point() const
Return vertex coordinates as a 3D point value.
Definition: Vertex.h:55
~Vertex()
Destructor.
Definition: Vertex.h:48
Vertex(const Mesh &mesh, std::size_t index)
Create vertex on given mesh.
Definition: Vertex.h:42
Definition: MeshEntity.h:42
MeshEntityIteratorBase< Vertex > VertexIterator
A VertexIterator is a MeshEntityIterator of topological dimension 0.
Definition: Vertex.h:65
Base class for MeshEntityIterators.
Definition: MeshEntityIteratorBase.h:36