View Single Post
  #3  
Old 02-28-2013, 10:02 AM
Hoyt1134 Hoyt1134 is offline
Registered User
Join Date: Jul 2004
Posts: 18
Hoyt1134 is on a distinguished road
I've never run into any strange behavior with polygons being used to draw lines before on Graal, and in fact in the original documentation for showpoly it specifically says you can enter 2 points to draw a line. In order to use 4 points to draw a rectangle to simulate drawing a line you have to do additional calculations for getting the line's angle in order to properly rotate the corners to keep the polygon a rectangle. You also don't get the crisp 1-pixel thick lines like a 2 point showpoly provides. It is much easier to simply have a function that draws the line with only 2 points, like Graal's polygons are supposed to.

A line mathematically isn't a polygon, but there is no reason to restrict functionality based on that. Even if there has been a bug with polygon lines for a long time, it doesn't mean the bug shouldn't be fixed.
Reply With Quote