Home

If you're new to Python
and VPython: Introduction

A VPython tutorial

Pictures of 3D objects

Choose a 3D object:

Work with 3D objects:

Windows, Events, & Files:

Vector operations

Graphs

factorial/combin

What's new in Visual 5

VPython web site
Visual license
Python web site
Math module (sqrt etc.)
Numpy module (arrays)

# Convenient Defaults

Objects can be specified with convenient defaults:

arrow() is equivalent to arrow(pos=(0,0,0), axis=(1,0,0), radius=1)

box() is equivalent to box(pos=(0,0,0), size=(1,1,1))

cone() is equivalent to cone(pos=(0,0,0), axis=(1,0,0), radius=1)

convex() establishes an "empty" object to which points can be appended

curve() establishes an "empty" curve to which points can be appended

cylinder() is equivalent to cylinder(pos=(0,0,0), axis=(1,0,0), radius=1)

ellipsoid() is equivalent to ellipsoid(pos=(0,0,0), size=(1,1,1))

frame() establishes a frame with pos=(0,0,0) and axis=(1,0,0)

helix() is equivalent to helix(pos=(0,0,0), axis=(1,0,0), radius=1, thickness=0.05, coils=5)

points() establishes an "empty" set of points to which points can be appended

pyramid() is equivalent to pyramid(pos=(0,0,0), size=(1,1,1), axis=(1,0,0))

ring() is equivalent to ring(pos=(0,0,0), axis=(1,0,0), radius=1)

sphere() is equivalent to sphere(pos=(0,0,0), radius=1 )