An Edge is a MeshEntity of topological dimension 1.
More...
#include <Edge.h>
|
Mesh const * | _mesh |
|
std::size_t | _dim |
|
std::size_t | _local_index |
|
An Edge is a MeshEntity of topological dimension 1.
◆ Edge() [1/2]
dolfin::Edge::Edge |
( |
const Mesh & |
mesh, |
|
|
std::size_t |
index |
|
) |
| |
|
inline |
Create edge on given mesh
- Parameters
-
mesh | (Mesh) The mesh. |
index | (std::size_t) Index of the edge. |
◆ Edge() [2/2]
Create edge from mesh entity
- Parameters
-
entity | (MeshEntity) The mesh entity to create an edge from. |
◆ dot()
double Edge::dot |
( |
const Edge & |
edge | ) |
const |
Compute dot product between edge and other edge
- Parameters
-
- Returns
- double The dot product.
info(
"%g", edge1.dot(edge2));
◆ length()
double Edge::length |
( |
| ) |
const |
Compute Euclidean length of edge
- Returns
- double Euclidean length of edge.
info(
"%g", edge.length());
The documentation for this class was generated from the following files:
- /home/fenics/shared/dolfin/dolfin/mesh/Edge.h
- /home/fenics/shared/dolfin/dolfin/mesh/Edge.cpp