Polyline
ABSTRACT
Produces a polyline. Not so important that you have to memorize, but it does come up somewhat often.
PARAMETERS
vertices | a 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) |
vertices | a 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_hint | a 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. |
tag | a vector of numbers that is used as the mesh's tag |
default | an enum branch specifying to use the default coloring scheme, which is a white stroke with no dot colors |
stroke | a 4-vector representing the color of the stroke |
stroke | a 4-vector representing the color of the stroke |
dot | a 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}})