Polyline

ABSTRACT

Produces a polyline. Not so important that you have to memorize, but it does come up somewhat often.

PARAMETERS
verticesa vector of 3-vectors representing the counter clockwise order of the vertices. Note that if the final vertex is equivalent to the initial vertex, then the mesh is closed and is considered a loop, otherwise it is bounded by dots (which by default are clear, but still do exist)
verticesa vector of 3-vectors representing the counter clockwise order of the vertices. Note that if the final vertex is equivalent to the initial vertex, then the mesh is closed and is considered a loop, otherwise it is bounded by dots (which by default are clear, but still do exist)
normal_hinta 3-vector representing the normal hint of the mesh, defaults to {0,0,1}. Useful if the polygon is non planar, and you want to provide a hint when the regular normal calculation algorithm is failing.
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 dot colors
strokea 4-vector representing the color of the stroke
strokea 4-vector representing the color of the stroke
dota 4-vector representing the color of the dots
RETURN

a mesh that contains a polyline according to the specifications

DECLARATION
func Polyline([config] {[main] {vertices}, [normal_hint] {vertices, normal_hint}}, tag, [color] {[default] {}, [stroke] {stroke}, [dotted] {stroke, dot}})