mesh_center
ABSTRACT
Computes the center of the selected meshes within the given mesh-tree. We calculate the center by finding the axis-aligned bounding box, and then finding the center of that bounding box.
PARAMETERS
mesh | Considers all meshes in the mesh-tree for center computation. |
root | Specifies the container mesh-tree where meshes are selected for center calculation. |
tag_predicate(tag) | Determines if a mesh with the provided tag contributes to the center calculation. |
RETURN
Retrieves the center point of the selected meshes in the provided mesh-tree.
DECLARATION
func mesh_center([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}})