Edge.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
Edge¶ Parent class(es)
An Edge is a
MeshEntityof topological dimension 1.-
Edge(const Mesh &mesh, std::size_t index)¶ Create edge on given mesh
- @param mesh (
Mesh) - The mesh.
- @param index (std::size_t)
- Index of the edge.
- @param mesh (
-
Edge(MeshEntity &entity)¶ Create edge from mesh entity
- @param entity (
MeshEntity) - The mesh entity to create an edge from.
- @param entity (
-
double
length() const¶ Compute Euclidean length of edge
- @return double
- Euclidean length of edge.
@code{.cpp}
UnitSquare mesh(2, 2); Edge edge(mesh, 0); info(“%g”, edge.length());@endcode
-
-
class
EdgeFunction¶ Parent class(es)
MeshFunction
An EdgeFunction is a
MeshFunctionof topological dimension 1.Constructor on Mesh
Constructor on Mesh and value