Hello,
I’m trying to draw an octagon. This is my code:
poligono = new VectorLine("Poligono", linePoints, Color.yellow, null, 2,LineType.Continuous);
poligono.MakeCircle(new Vector2(200, 200), 130, 8, 0);
poligono.Draw();
The octagon is drawn BUT it also makes a line from the last point to (0,0) (left lower corner of the screen space).
I can only avoid this by changing the line type to discrete, or by adding this right before the Drwaw() call:
linePoints[9] = linePoints[8];
In this way I erase the extra point by yuxtaposing it to the previous one.
What’s the correct way to draw an octagon without this extra line, while using “continuous”?
thanks, Gustavo