0
Drawing 3D box (cube or parallelepiped)
I am biginner in Python. I want to make 3D box (cube or rectangular parallelepiped). It seems good to use matplotlib for 3D drawing. However I've not found any function or code for drawing until now. The 3D box shall be one 'body', not several combination of lines. If it is any bunch of lines, please make it one body for rotating or moving in my next step.
1 Resposta
+ 2
Matplotlib might be going too big a trip, when you can use OpenGL library like pyglet, to construct a true 3D experience .
But still, if you want matplotlib, go with mpl_toolkits.mplot3d like in this thread:
https://stackoverflow.com/questions/44881885/JUMP_LINK__&&__python__&&__JUMP_LINK-draw-3d-cube
If you want to have a 3D experience with moving and rotating, you just *have to* see this video on how to do this with pyglet:
https://www.youtube.com/watch?v=Hqg4qePJV2U