Post Reply 
full wedge inner radius problem
12-10-2008, 09:39 AM (This post was last modified: 12-10-2008 05:38 PM by 34all.)
Post: #1
full wedge inner radius problem
Good morning,

hope all are well.

I just discovered a possible minor bug in the Shapes.drawWedge() method. If a full wedge is drawn (angle >= 2*PI) and the wedge has an inner radius > 0 then the wedge is drawn as a full disc rather than as a donut (torus-shaped ring). Since I like donuts a lot I looked into that. The attached demo offers a possible modification of the method that pretends to fix the bug. In the demo the four wedges in the upper row are drawn by the Shapes.drawWedge() method, the ones in the lower row by the modified version of the method. The possible buggy case can be seen in the upper left corner, the other cases are just drawn to check if the modified version draws wedges correctly with all possible variations of input parameters.

   

Happy always

martin


Attached File(s)
.as  FullWedgeProblemDemo.as (Size: 2.48 KB / Downloads: 178)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: