Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to draw primitives in 3D with Python?

Tags:

I want to draw 3D primitives like spheres, cylinders and planes (patches) in a 3D plot and I would like to be able to interactively rotate, translate and zoom the scene. I want to do that in Python. I'm use to use Matplotlib for 2d graphs but I never worked with 3D graphics with Python.

Any suggestions? Any link to tutorials? Any ideas?

like image 453
dom_beau Avatar asked Oct 03 '12 12:10

dom_beau


1 Answers

If you're used to matplotlib, then mplot3d is probably a good option if it meets your requirements.

Alternatively there is VPython. This allows you greater freedom to create arbitrary objects and manipulate them, but, of course, more to learn.

like image 179
deadly Avatar answered Sep 19 '22 10:09

deadly