Facet

class dolfin.cpp.mesh.Facet(*args)

Bases: dolfin.cpp.mesh.MeshEntity

A Facet is a MeshEntity of topological codimension 1.

Constructor

adjacent_cells()

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.

distance()

Compute distance to given point.

Arguments
point (Point)
The point.
Returns
float
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.

normal()

Overloaded versions

  • normal(i)

    Compute component i of the normal to the facet

  • normal()

    Compute normal to the facet

squared_distance()

Compute squared distance to given point.

Arguments
point (Point)
The point.
Returns
float
The squared distance to the point.
thisown

The membership flag