#7 Python 2.1: fix for triangle.py demo

v1.5.7
closed-fixed
Demo (13)
5
2001-06-16
2001-06-06
Anonymous
No

I tried to run the dek/OglSurface/triangle.py demo,
under Python 2.1, and found that the following fixes
are needed. Would it be possible to incorporate the
fixes, and are there likely to be any other fixes
needed in the demos for 2.1? I don't follow this list,
so email me if necessary. Diff output follows:

thanks
yan

in NumericPDB.py
93c93
< self.crds.append(x,y,z)
---
> self.crds.append((x,y,z))

in triangle.py
56,57c56,57
< glNormal3f(norm1)
< glVertex3f(vert1)
---
> glNormal3f(*norm1)
> glVertex3f(*vert1)
61,62c61,62
< glNormal3f(norm2)
< glVertex3f(vert2)
---
> glNormal3f(*norm2)
> glVertex3f(*vert2)
66,67c66,67
< glNormal3f(norm3)
< glVertex3f(vert3)
---
> glNormal3f(*norm3)
> glVertex3f(*vert3)

Discussion

  • Tarn Weisner Burton

    • labels: --> Demo
    • milestone: --> v1.5.7
     
  • Tarn Weisner Burton

    • assigned_to: nobody --> twburton
    • status: open --> open-fixed
     
  • Tarn Weisner Burton

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks