mesh_triangle_set
ABSTRACT
Generates a set of triangles from the provided mesh-tree, each triangle represented by its vertices.
PARAMETERS
mesh | Specifies to take every single triangle of every single mesh in the mesh-tree |
root | Specifies the container that holds the meshes for the operation. |
tag_predicate(tag) | Determines whether triangles from a mesh should be included based on the provided tag. |
RETURN
A set of triangles extracted from the selected meshes (essentially the triangles that make up the faces of the mesh). The returned value is a vector of vector of 3-vectors, where each subvector represents a triangle by its 3 vertices. The order in which the vertices are provided is unspecified. There may be duplicates.
DECLARATION
func mesh_triangle_set([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}})