mesh_contour_count

ABSTRACT

Counts the number of contours in the selected meshes within the provided mesh-tree. A contour is somewhat technical to define, but essentially its a subset of mesh that is connected (the exception is when we have contours that happen to intersect but are unrelated, however this is typically an edge case and not often observed). For instance, a circle has one contour. An annulus that is not upranked has two contours since you cannot get from the inner ring to the outer ring. However, an upranked annulus has a single contour since all components of the mesh are reachable from one another. A mesh may not have a contour in the case that it is an empty mesh, but otherwise it contains at least one contour.

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

The count of contours present in the selected meshes within the provided mesh-tree.

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