Re: PyOpenGL: numpy dependency?

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Giovanni Bajo wrote:
> Mike C. Fletcher wrote:
>   
...
>> There was a bug and missing functionality.  Numpy was being used to
>> support lists and tuples.  I've added support that uses ctypes for
>> handling list/tuple input formats for arrays.
>>     
>
> Great news, thanks! What's the easy_install magic to pull an updated version?
>   
At the moment it's not easy_install packaged.  If you're running a 
setup.py develop version, then cvs up in the directory will get you there.
>> At the moment it does
>> *not* convert back to lists/tuples on output (it returns ctypes
>> arrays-of-arrays).
>>     
>
> OK. I guess you want it fixed as ctypes is an implementation detail of PyOpenGL
> after all, don't you?
>   
I'm not all that worried about it.  Lists/tuples are *far* less 
efficient than numpy or ctypes arrays.  The ctypes arrays behave much 
like lists-of-numbers or lists-of-lists-of-numbers, but are more 
efficient, especially if you're going to pass the data back in.  That 
said, yes, would be nice to see it go all the way, just for completeness.

Have fun,
Mike

-- 
________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.