Triangle
ABSTRACT
Generates a triangle mesh based on specified parameters.
PARAMETERS
| p | a 3-vector representing the first vertex of the triangle |
| q | a 3-vector representing the second vertex of the triangle |
| r | a 3-vector representing the third vertex of the triangle |
| p | a 3-vector representing the first vertex of the triangle |
| q | a 3-vector representing the second vertex of the triangle |
| r | a 3-vector representing the third vertex of the triangle |
| normal_hint | a 3-vector providing a hint for the normal direction of the triangle; defaults to the calculated normal based on the vertices |
| 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 triangle's stroke |
| stroke | a 4-vector representing the color of the triangle's stroke |
| fill | a 4-vector representing the color of the triangle's fill. Providing this value will force an uprank |
RETURN
generates a mesh conforming to the specified triangle parameters
DECLARATION
func Triangle([config] {[main] {p, q, r}, [normal_hint] {p, q, r, normal_hint}}, tag, [color] {[default] {}, [stroke] {stroke}, [solid] {stroke, fill}})