Facet

class dolfin.cpp.mesh.Facet

Bases: dolfin.cpp.mesh.MeshEntity

A Facet is a MeshEntity of topological codimension 1.

Constructor.

Parameters:
  • Mesh & mesh (const) –
  • index (std::size_t) –
distance()

Compute distance to given point.

Parameters:Point & point (const) – (Point ) The point.
Return type:double
Returns:double The distance to the point.
exterior()

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.

Return type:bool
normal()

Compute component i of the normal to the facet.

Parameters:i (std::size_t) –
Return type:double
squared_distance()

Compute squared distance to given point.

Parameters:Point & point (const) – (Point ) The point.
Return type:double
Returns:double The squared distance to the point.
thisown

The membership flag