mesh.Mesh.masked_edge_front_walk#

Mesh.masked_edge_front_walk(mask=None, startat=0, frontinc=1, partinc=1, maxval=-1)#

Perform a front walk over masked edge connections.

This is like front_walk(level=1), but has an extra parameter mask to select the edges that are used as connectors between elements. The remainder of the parameters are like in front_walk().

Parameters#

mask: array_like, bool or int

A boolean array or index flagging the edges which are to be considered as connectors between elements. If None, all edges are connections.

See Also#

front_walk()

Examples#

>>> M = Mesh(eltype='quad4').subdivide(2)
>>> print(M.masked_edge_front_walk())
[0 1 1 2]
>>> print(M.masked_edge_front_walk(mask=[3,7,8]))
[0 1 3 2]
>>> L = M.to_lines()
>>> print(L.masked_edge_front_walk())
[0 1 1 1 2 2 2 2 2 3 3 3]