Mailing List Archive

Rotation of a cube
I would like to animate the rotation of a 3-cube. I know how to
do animation with pygame. My first thought was to set up a cube as
a list of coordinates, and then project those coordinates onto a
plane by ray-tracing from a viewpoint. I could then incrementally
rotate it using the rotation matrix[1], briefly showing each step.

However, it seems to me that this is a solved problem, so there is
probably a module that will do most of the scutwork for me. Any
suggestions on where to find such a module?

Thanks.


[1] <https://mathworld.wolfram.com/RotationMatrix.html>
--
Michael F. Stemper
This sentence no verb.
--
https://mail.python.org/mailman/listinfo/python-list
Re: Rotation of a cube [ In reply to ]
On 30/07/21 5:57 am, Michael F. Stemper wrote:
> I would like to animate the rotation of a 3-cube.ng each step.
>
> However, it seems to me that this is a solved problem, so there is
> probably a module that will do most of the scutwork for me.

You might find something useful here:

https://medium.com/quick-code/3d-graphics-using-the-python-standard-library-99914447760c

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list