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

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.

std::pair<const Cell, const Cell> adjacent_cells(const std::vector<std::size_t> *facet_orientation) const

Return adjacent cells. An optional argument that lists for each facet the index of the first cell may be given to specify the ordering of the two cells. If not specified, the ordering will depend on the (arbitrary) ordering of the mesh connectivity.

class FacetFunction

Parent class(es)

  • MeshFunction

A FacetFunction is a MeshFunction of topological codimension 1.