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.
Reading. Practice. Writing.
Please feel free to comment. Suggestions are also welcomed here. Write something "wholesome serving purpose" here.
Subscribe to:
Post Comments (Atom)
AI Doomsday
AI apocalypse AI extinction risk AI catastrophic AI was going to be the end of humanity. AI could kill all humans! AI leading to human extin...
-
DiGi Super Long Life is a feature where you can extend your talktime validity to 1 year for just RM30. Indirectly, the subscription fee is...
-
Subject: Use CodeBlocks to generate Nassi–Shneiderman Diagrams (NSDs) automatically What is the Nassi-Shneiderman Diagram? The Nassi-Shneide...
-
Open LibreOffice Draw program. Select the rectangle shape from shape toolbar at the bottom of drawing page. Click a point and drag-and-re...
No comments:
Post a Comment