Re: Rotating a cube

2008-07-20 Thread Stef Mientki
Fredrik Lundh wrote: David Lyon wrote: But is the question about display graphics ? ie rotating a cube using a python framework ? With something like python and OpenGL ? or Python and PovRay... or perphaps python and imagemagick ? can you name one graphics framework that represents a cube

Re: Rotating a cube

2008-07-20 Thread Fredrik Lundh
David Lyon wrote: But is the question about display graphics ? ie rotating a cube using a python framework ? With something like python and OpenGL ? or Python and PovRay... or perphaps python and imagemagick ? can you name one graphics framework that represents a cube as "x + 4*y +

Re: Rotating a cube

2008-07-19 Thread David Lyon
correctly as having no relationship to python whatsoever. You'd get a better answer if you asked in mathematics/geometry group, many mathematician are adept programmer as well. - But is the question about display graphics ? ie rotating a cube using a python framework ? With something like python

Re: Rotating a cube

2008-07-19 Thread Lie
On Jul 17, 3:11 pm, J-Burns <[EMAIL PROTECTED]> wrote: > On Jul 17, 12:53 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > J-Burns wrote: > > > Is there a built in Python function for this? > > > for answering questions that have nothing to do with programming, and > > looks quite a bit like home

Re: Rotating a cube

2008-07-17 Thread norseman
J-Burns wrote: Hello. Need some help here. I have a 4*4 cube. So the equation of the cube becoming: x + 4*y + 16*z Now i want to rotate this cube 90 degrees anticlockwise( a right rotation). How can i do that? The rotation must take place with the a

Re: Rotating a cube

2008-07-17 Thread Ryan Smith
Have you taken the time to solve the problem for the 2D case? I can't say my code is correct or even good python, but this was my attempt at the 2D case, maybe it will give you some ideas. http://code.google.com/p/rs-wxpython-nooberdev/source/browse/rectangle.py For the rest of c.l.p, criticism

Re: Rotating a cube

2008-07-17 Thread J-Burns
On Jul 17, 12:53 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > J-Burns wrote: > > Is there a built in Python function for this? > > for answering questions that have nothing to do with programming, and > looks quite a bit like homework? don't think they've added that one yet. > > maybe you should

Re: Rotating a cube

2008-07-17 Thread Fredrik Lundh
J-Burns wrote: Is there a built in Python function for this? for answering questions that have nothing to do with programming, and looks quite a bit like homework? don't think they've added that one yet. maybe you should look for a geometry newsgroup/forum? -- http://mail.python.org/mai

Rotating a cube

2008-07-16 Thread J-Burns
Hello. Need some help here. I have a 4*4 cube. So the equation of the cube becoming: x + 4*y + 16*z Now i want to rotate this cube 90 degrees anticlockwise( a right rotation). How can i do that? The rotation must take place with the axis of rotation b