VPython is an easy-to-use, powerful environment for creating 3D animations. Here at glowscript.org (or webvpython.org, which takes you here), you can write and run VPython programs right in your browser, store them in the cloud for free, and easily share them with others. You can also use VPython with installed Python: see vpython.org.
The Help provides full documentation.
Welcome to VPython, a Trinket tutorial, is useful for anyone new to programming in VPython.
helical gear generator
The tooth profile in the transverse plane is an involute of the base circle. Parametric equations for an involute point at radius $r$ ($r_b \le r \le r_a$):
All modern gears use an involute tooth profile. This is a specific curve that ensures constant velocity ratio during meshing. The generator calculates the coordinates of this curve based on the base circle diameter.
Before discussing how a generator works, one must understand why helical gears are difficult to model. A helical gear’s teeth are cut at an angle (the helix angle, typically 15° to 45°) relative to the gear’s axis.
To use webvpython.org you will need to choose a unique name for yourself. This name will be visible to other internet users and will be part of the URLs you can use to share programs. You can use your own name or a pseudonym, but please try not to offend others.
Program does not start with the required version declaration: