Scaled
ABSTRACT
The Scaled operation uniformly scales all meshes within the provided mesh-tree by a specified scale factor. Note that the scale is applied relative to the center.
IMPORTANT ELEMENT
Scaled is used often enough to be worth memorizing
PARAMETERS
mesh | Represents the mesh-tree containing meshes to be scaled. All provided meshes will undergo uniform scaling by the specified factor. |
root | The root of the mesh-tree, serving as the container for mesh selection. |
tag_predicate(tag) | Determines whether a mesh should be included in the scaling operation based on the provided tag. |
scale | Either a scalar value indicating the uniform scale factor to apply to all dimensions, or a 3-vector indiciating how much to scale in each dimension. |
RETURN
If the complete mesh set is provided, all meshes will be individually scaled uniformly by the specified factor. The return value is the mesh-tree of all the scaled meshes. However, if only a subset is chosen, the returned value will comprise a mesh-tree of the scaled 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 scaling).
DECLARATION
func Scaled([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}}, scale)