Brace
ABSTRACT
Generates a brace ({
) that is placed next to a mesh and with a matched width.
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 surrounded by the brace. The function is given the tag of the mesh in consideration. If a non zero value is returned then the mesh is included in calculating the brace size. Otherwise, it is ignored. |
dir | A 3-vector specifying the direction relative to the selected mesh to which the brace should be placed |
tag | A vector of numbers used as the result's tag |
default | An enum branch specifying the default coloring scheme, a white fill with a stroke that has 0 opacity |
stroke | A 4-vector representing the color of the stroke |
stroke | A 4-vector representing the color of the stroke |
fill | A 4-vector representing the color of the fill |
RETURN
a mesh-tree that gives the brace next to the selected mesh in the appropriate direction. The shape of the mesh-tree is unspecified
DECLARATION
func Brace([mesh_tree] {[full] {mesh}, [tag_pred] {root, tag_predicate(tag)}}, dir, tag, [color] {[default] {}, [stroke] {stroke}, [solid] {stroke, fill}})