mesh_rank

ABSTRACT

Determines the rank of the selected meshes within the provided mesh-tree. See Uprank for a discussion about rank.

PARAMETERS
meshConsiders all meshes in the mesh-tree for ranking.
rootSpecifies the container mesh-tree where meshes are selected for ranking.
tag_predicate(tag)Determines if a mesh with the provided tag contributes to the ranking.
RETURN

Retrieves the maximum rank among the selected meshes. The ranks are -1 for empty meshes, 0 for dot-only meshes, 1 for line meshes, and 2 for triangle meshes.

DECLARATION
func mesh_rank([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}})