I think I have found a bug related to drawing of lines.
First I draw a line using DrawRay like this:
DrawRay( str, x0, y0, x1, y1, chcolor, DashStyle.Solid, linewidth );
Then I re-use the same string to draw a line (not a Ray!)
DrawLine( str, x0, y0, x1, y2, chcolor, DashStyle.Solid, linewidth );
I was expecting the Ray to change into a line, but that is not happening. It will draw a ray again with the new coordinates. Maybe it is bad practice to do it this way, without first removing the object. But since it does change the coordinates but not the type of line ('Line' or 'Ray') I consider it a bug.
Of course you can work around this by first removing the line before redrawing, but in my specific application this is a bit tricky...
Comment