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
meshThe mesh-tree, the entirety of which will be used for this operation
rootThe 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
tagA vector of numbers used as the bounding box's tag
default_buffthe bounding box is put around the specified mesh, with some default amount of buffer in between
bufferA custom buffer size for the bounding box
defaultAn enum branch specifying to use the default coloring scheme, white stroke with no fill
strokeA 4-vector representing the color of the bounding box's stroke
strokeA 4-vector representing the color of the bounding box's stroke
fillA 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}})