[visionegg] Bug in FilledCircle and fix

  • From: Douglas Taylor <dtaylor@xxxxxxx>
  • To: visionegg@xxxxxxxxxxxxx
  • Date: Tue, 24 Jan 2006 12:12:36 -0800

Hi Andrew,

There is a minor bug in the FilledCircle routine when
drawing circles of large radii. The last slice is not being
drawn. To complete the circle I added the line

           gl.glVertex2fv(verts[0])
after
           for i in range(verts.shape[0]):
               gl.glVertex2fv(verts[i])
so the fix appear as

           for i in range(verts.shape[0]):
               gl.glVertex2fv(verts[i])
           gl.glVertex2fv(verts[0])

Best,

Doug

======================================
The Vision Egg mailing list
Archives: //www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html

Other related posts: