[etoys-dev] [etoys-notify] [JIRA] Created: (SQ-1141) Sector does not always display straight lines when heading is not 0.

David Corking lists at dcorking.com
Mon Dec 10 15:32:01 EST 2012

Steve Thomas wrote:
> My problem was it was more than 1 pixel from straight.
> Perhaps if we started with 3 vertices instead of two and calculated only the points on the > Circle.

You are right: there is more than one way to calculate the vertices.
However, open an inspector on a Sector and look at the vertices. It
turns out that only a very small error accumulates from the step by
step method Etoys uses. (For me it was only the last 2 or 3 decimal
places.) That error is several decimal places too small to be visible
on the screen.

Set your sector's border width to zero. When I tried this, the sector
looked pixel perfect.

So as far as I can see, this isn't a bug in Sector, but there could be
an opportunity for a small improvement in the way Etoys draw borders.

Just my thoughts. David

More information about the etoys-dev mailing list