Wednesday

How to install, run, and test VPython, the 3D graphics module for Python programming language?

Download and install Python-2.7.2 from http://www.python.org/download/. Important: Install it in C:\Python27.

Download and install VPython-Win-Py2.7-5.72 from http://vpython.org/contents/download_windows.html.

Start the VPython program with "Python 2.7 IDLE (Python GUI)" shortcut on the Start menu.

In the Python 2.7.2 shell, type the following:
>>> from visual import *
>>> sphere ()
<vis.primitives.sphere object at 0x0275EE10>
>>>

A 3D object window will pop up.

Right button drag on a mouse to rotate camera to view scene.
Left and right buttons drag up or down to zoom in or out.

No comments:

C++32 (or C++2e), C++ 2032, Cpp 2032, g++ 2032

  Subject: C++ 2032 3 Code example for ? 2 Approximate feature suggestions: - to complete C++29 or C++ 2029 1 Web links, references Wandbox,...