Rect

ABSTRACT

Produces a rectangular mesh.

IMPORTANT ELEMENT

Rects are used often enough to be worth memorizing

PARAMETERS
centera 3-vector representing the center of the rect
widtha number representing the width of the rect
heighta number representing the height of the rect
centera 3-vector representing the center of the rect
widtha number representing the width of the rect
heighta number representing the height of the rect
normala 3-vector representing the normal of the mesh, defaults to {0,0,1}. Note that the direction of the minor and major axes are only guaranteed to be normal to the normal, but the exact direction is somewhat unspecified. This behavior is ugly and may be changed in the future.
taga vector of numbers that is used as the mesh's tag
defaultan enum branch specifying to use the default coloring scheme, which is a white stroke with no fill
strokea 4-vector representing the color of the stroke
strokea 4-vector representing the color of the stroke
filla 4-vector representing the color of the fill. Note that providing this value will force an uprank
RETURN

a mesh that contains a rectangle according to the specifications

DECLARATION
func Rect([config] {[main] {center, width, height}, [parameterized] {center, width, height, normal}}, tag, [color] {[default] {}, [stroke] {stroke}, [solid] {stroke, fill}})