Capsule

ABSTRACT

Generates a capsule-shaped mesh based on provided parameters.

PARAMETERS
start_centera 3-vector indicating the center coordinates of the capsule's start hemisphere
end_centera 3-vector indicating the center coordinates of the capsule's end hemisphere
in_rada scalar value representing the corner radius of the capsule (i.e. how rounded it is)
out_rada scalar value representing the radius of the outer hemispheres of the capsule (i.e., how much it extends from the start or end points)
start_centera 3-vector indicating the center coordinates of the capsule's start hemisphere
end_centera 3-vector indicating the center coordinates of the capsule's end hemisphere
in_rada scalar value representing the corner radius of the capsule (i.e. how rounded it is)
out_rada scalar value representing the radius of the outer hemispheres of the capsule (i.e., how much it extends from the start or end points)
normala 3-vector representing the normal of the capsule; defaults to {0,0,1}
taga vector of numbers 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 capsule's stroke
strokea 4-vector representing the color of the capsule's stroke
filla 4-vector representing the color of the capsule's fill. Providing this value will force an uprank
RETURN

generates a mesh conforming to the specified capsule parameters

DECLARATION
func Capsule([config] {[main] {start_center, end_center, in_rad, out_rad}, [normal] {start_center, end_center, in_rad, out_rad, normal}}, tag, [color] {[default] {}, [stroke] {stroke}, [solid] {stroke, fill}})