Function CommandBuilder2D.PushLineWidth
PushLineWidth
(float pixels, bool automaticJoins=true)
Draws all lines until the next PopLineWidth with a given line width in pixels.
Public
void PushLineWidth (
float | pixels | Line width in pixels |
bool | automaticJoins=true | If true then sequences of lines that are adjacent will be automatically joined at their vertices. This typically produces nicer polylines without weird gaps. |
Draws all lines until the next PopLineWidth with a given line width in pixels.
Note that the line join algorithm is a quite simple one optimized for speed. It normally looks good on a 2D plane, but if the polylines curve a lot in 3D space then it can look odd from some angles.
In the picture the top row has automaticJoins enabled and in the bottom row it is disabled.