Shifted

ABSTRACT

The Shifted operation translates or shifts all meshes within the provided mesh-tree by a specified displacement.

IMPORTANT ELEMENT

Shifted is used often enough to be worth memorizing

PARAMETERS
meshRepresents the mesh-tree containing meshes to be shifted. All provided meshes will undergo translation by the specified delta.
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 shifting operation based on the provided tag.
deltaA 3-vector indicating the displacement by which the meshes will be shifted in 3D space.
RETURN

If the complete mesh set is provided, all meshes will be individually shifted by the specified delta. The return value is the mesh-tree of all the shifted meshes. However, if only a subset is chosen, the returned value will comprise a mesh-tree of the shifted 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 shifting).

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