Capsule
ABSTRACT
Generates a capsule-shaped mesh based on provided parameters.
PARAMETERS
| start_center | a 3-vector indicating the center coordinates of the capsule's start hemisphere |
| end_center | a 3-vector indicating the center coordinates of the capsule's end hemisphere |
| in_rad | a scalar value representing the corner radius of the capsule (i.e. how rounded it is) |
| out_rad | a 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_center | a 3-vector indicating the center coordinates of the capsule's start hemisphere |
| end_center | a 3-vector indicating the center coordinates of the capsule's end hemisphere |
| in_rad | a scalar value representing the corner radius of the capsule (i.e. how rounded it is) |
| out_rad | a scalar value representing the radius of the outer hemispheres of the capsule (i.e., how much it extends from the start or end points) |
| normal | a 3-vector representing the normal of the capsule; defaults to {0,0,1} |
| tag | a vector of numbers used as the mesh's tag |
| default | an enum branch specifying to use the default coloring scheme, which is a white stroke with no fill |
| stroke | a 4-vector representing the color of the capsule's stroke |
| stroke | a 4-vector representing the color of the capsule's stroke |
| fill | a 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}})