Rotated

ABSTRACT

The Rotated operation applies a rotation transformation to all meshes within the provided mesh-tree. The rotation is appplied relative to the center of the mesh.

IMPORTANT ELEMENT

Rotated is used often enough to be worth memorizing

PARAMETERS
meshRepresents the mesh-tree containing meshes to be rotated. All provided meshes will undergo the specified rotation.
rootThe root of the mesh-tree, serving as the container for mesh selection.
tag_predicate(tag)Determines whether a mesh should be included in the rotation operation based on the provided tag.
rotationSpecifies the rotation transformation to be applied to the meshes. This should be a 3-vector, with the direction being the axis and the magnitude being the amount to turn in radians (using the right hand rule).
RETURN

If the complete mesh set is provided, all meshes will be individually rotated as per the specified rotation. The return value is the mesh-tree of all the rotated meshes. However, if only a subset is chosen, the returned value will comprise a mesh-tree of the rotated selected meshes, while the unselected meshes will remain unchanged. Crucially, all meshes you didn't select will still be included in the result mesh_tree, but be provided as is (i.e. no rotation).

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