Spring 2015
Professor Mason
VPython assignment
In class, Professor Mason, gave us an assignment, which involves VPython program in order to do 3D modelling. The steps are:
1. Go to vpython.org
2. Download and install Python 2.7 and Vpython by the "Windows" tab.
3. Open VIDLE for Vpython in my directory to start the program.
The first assignment I need to do is to code vectors of sphere and give them arrows, such as:
Next, I need to add # before "arrow" and pick one arrow length to be shorten by half. (*Note: Due to the unseen arrows because it was too short, I put more length to all of the arrows).
Next in the assignment, I need to do a 3D model, which I need to name the variables on each sphere.
Next, I was asked to add twice of one of the y-axis in the vector to the code.
The last part of the tutorial was about placing the [print] command, which is written as print(variable,attribute).
No comments:
Post a Comment