BoundingBox
ABSTRACT
Generates a bounding box around a mesh or a set of meshes based on specified parameters. Note that like WireFrame and unlike most other operators, unselected meshes will not be included in the ouput
PARAMETERS
mesh | The mesh-tree, the entirety of which will be used for this operation |
root | The root of the mesh-tree. This provides the container of all possible meshes we want to select from |
tag_predicate(tag) | For any given mesh in root, the user specifies whether or not the mesh should be included in the operation. The function is given the tag of the mesh in consideration. If a non-zero value is returned, the mesh is included; otherwise, it is skipped |
tag | A vector of numbers used as the bounding box's tag |
default_buff | the bounding box is put around the specified mesh, with some default amount of buffer in between |
buffer | A custom buffer size for the bounding box |
default | An enum branch specifying to use the default coloring scheme, white stroke with no fill |
stroke | A 4-vector representing the color of the bounding box's stroke |
stroke | A 4-vector representing the color of the bounding box's stroke |
fill | A 4-vector representing the color of the bounding box's fill |
RETURN
A mesh comprising the generated bounding box around the specified meshes (only the bounding box is returned)
DECLARATION
func BoundingBox([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}}, tag, [buff] {[default_buff] {}, [custom] {buffer}}, [color] {[default] {}, [stroke] {stroke}, [solid] {stroke, fill}})