[visionegg] Re: Bug in FilledCircle and fix
- From: Andrew Straw <astraw@xxxxxxxxxxx>
- To: visionegg@xxxxxxxxxxxxx
- Date: Tue, 24 Jan 2006 13:30:04 -0800
Thanks Doug. This is fixed in svn revision 1363.
http://visionegg.org/cgi-bin/viewcvs.cgi/trunk/visionegg/src/MoreStimuli.py?r1=1338&r2=1363&p1=trunk/visionegg/src/MoreStimuli.py&p2=trunk/visionegg/src/MoreStimuli.py
Douglas Taylor wrote:
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: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
======================================
The Vision Egg mailing list
Archives: http://www.freelists.org/archives/visionegg
Website: http://www.visionegg.org/mailinglist.html
- References:
- [visionegg] Bug in FilledCircle and fix
- From: Douglas Taylor
Other related posts:
- » [visionegg] Bug in FilledCircle and fix
- » [visionegg] Re: Bug in FilledCircle and fix
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: http://www.freelists.org/archives/visionegg Website: http://www.visionegg.org/mailinglist.html
- [visionegg] Bug in FilledCircle and fix
- From: Douglas Taylor