Extruded
ABSTRACT
The Extruded operation involves creating a 3d body extending each mesh in the given mesh-tree along the direction specified by the delta vector. For instance, a rectangle could be transformed into a rectangular prism, or a circle could become a cylinder.
PARAMETERS
mesh | Represents the mesh-tree containing meshes to be extruded. All provided meshes will undergo the extrusion process. |
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 extrusion operation based on the provided tag. |
delta | Specifies the direction and length of the extrusion for each mesh. |
RETURN
If the complete mesh set is provided, all meshes will be individually extruded, and the return value is the mesh-tree of all the extruded meshes. However, if only a subset is chosen, the returned value will comprise a mesh-tree of the extruded 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 extrusion).
DECLARATION
func Extruded([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}}, delta)