Retextured
ABSTRACT
The Retextured operation applies an image texture to all meshes within the provided mesh-tree.
PARAMETERS
mesh | Represents the mesh-tree containing meshes to be retextured. All meshes will undergo retexturing with the provided image. |
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 retexturing operation based on the provided tag. |
image | The image name used for texturing the meshes within the mesh-tree. See Image for help on importing images. |
RETURN
If the complete mesh set is provided, all meshes will be individually retextured with the specified image. The return value is the mesh-tree of all the retextured meshes. However, if only a subset is chosen, the returned value will comprise a mesh-tree of the retextured 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 retexturing).
DECLARATION
func Retextured([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}}, image)