Facet.h

Note

The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.

class Facet

Parent class(es)

A Facet is a MeshEntity of topological codimension 1.

Facet(const Mesh &mesh, std::size_t index)

Constructor

double normal(std::size_t i) const

Compute component i of the normal to the facet

Point normal() const

Compute normal to the facet

double squared_distance(const Point &point) const

Compute squared distance to given point.

Arguments
point (Point)
The point.
Returns
double
The squared distance to the point.
double distance(const Point &point) const

Compute distance to given point.

Arguments
point (Point)
The point.
Returns
double
The distance to the point.
bool exterior() const

Return true if facet is an exterior facet (relative to global mesh, so this function will return false for facets on partition boundaries). Facet connectivity must be initialized before calling this function.

class FacetFunction

Parent class(es)

  • MeshFunction

A FacetFunction is a MeshFunction of topological codimension 1.