mesh.Mesh.get_free_edges_mesh#
- Mesh.get_free_edges_mesh(compact=True)#
Return a Mesh with the free edges.
Free edges are edges that are only connected to a single element.
Parameters#
- compact: bool
If True (default), the returned Mesh will be compacted. If False, the returned Mesh will contain all the nodes present in the input Mesh.
Returns#
MeshA Mesh containing the free edges of the input Mesh. Free edges are edges that are only connected to a single element. If the input Mesh has property numbers, the edge elements inherit the property of the element to which they belong.
See Also#
get_free_entities_mesh(): return the free entities Mesh of any lower levelborder_mesh(): return the free entities Mesh of level -1
Examples#
>>> M = Mesh(eltype='quad4') >>> print(M.get_free_edges_mesh()) Mesh: n_nodes: 4, n_elems: 4, plexitude: 2, level: 1, eltype: line2 BBox: [0. 0. 0.], [1. 1. 0.] Size: [1. 1. 0.] Length: 4.0