Tuesday, March 24, 2015

3D Computer Modeling

The first challenge in the lab, creating a 3D image of three spheres with arrows.

In the code behind the image are two lines in red. These lines ad a '#' symbol inserted before any of the red letters. This any character placed after the symbol on the same line will not play a role in the program.

By naming variables, referencing them later in the code allows you to re-use whatever information you have stored for that variable.

Placing the left most sphere twice as far from the y-axis lower the magnitude of the slope of each vector.

Here are the codes for vectors.py and vectors2.py

No comments:

Post a Comment