mesh.Mesh.border#
- Mesh.border(return_indices=False)#
Return the border of the Mesh.
Border entities are the free entities of the first lower level.
Parameters#
- return_indices: bool
If True, also returns an index array (nentities,2) for inverse lookup of the higher entity (column 0) and its local lower entity number (column 1).
Returns#
ElemsA connectivity table with the border entities of the specified level of the Mesh. Border entities are entities of one level lower that are only connected to a single element.
See Also#
get_free_entities(): return the free entities of any lower levelborder_mesh(): return the border as a Mesh
Notes#
This is a convenient shorthand for
self.get_free_entities(level=-1,return_indices=return_indices)
Examples#
>>> M = Mesh(eltype='quad4') >>> print(M.border()) [[0 1] [3 0] [1 2] [2 3]]