<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.physicsbook.gatech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dkim694</id>
	<title>Physics Book - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.physicsbook.gatech.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Dkim694"/>
	<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/Special:Contributions/Dkim694"/>
	<updated>2026-04-30T19:44:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.7</generator>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30039</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30039"/>
		<updated>2017-11-29T03:10:13Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* Object Application */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Application==&lt;br /&gt;
Following code is an example usage and application of object creation for lab simulations.&lt;br /&gt;
&lt;br /&gt;
 ## objects&lt;br /&gt;
 ceiling = box(pos=vector(0,0,0), size = vector(0.2, 0.01, 0.2))         # origin is at ceiling&lt;br /&gt;
 ball = sphere(pos=vector(.1,-.2,.3), radius=0.025, color=color.orange) # note: spring initially compressed&lt;br /&gt;
 spring = helix(pos=ceiling.pos, color=color.cyan, thickness=.003, coils=40, radius=0.015)&lt;br /&gt;
 parrow = arrow(color=color.magenta, pos=ball.pos, axis=vector(0,0,0))&lt;br /&gt;
 farrow = arrow(color=color.red, pos=ball.pos, axis=vector(0,0,0))&lt;br /&gt;
 trail = curve(color=ball.color)&lt;br /&gt;
 &lt;br /&gt;
 #graphs&lt;br /&gt;
 Kgraph=gcurve(color=color.red)&lt;br /&gt;
 Ugraph=gcurve(color=color.cyan)&lt;br /&gt;
 KUgraph=gcurve(color=color.yellow)&lt;br /&gt;
&lt;br /&gt;
 #graph updates are done in the while loop.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30038</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30038"/>
		<updated>2017-11-29T03:09:39Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* Object Application */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Object Application==&lt;br /&gt;
Following code is an example usage and application of object creation for lab simulations.&lt;br /&gt;
&lt;br /&gt;
 ## objects&lt;br /&gt;
 ceiling = box(pos=vector(0,0,0), size = vector(0.2, 0.01, 0.2))         # origin is at ceiling&lt;br /&gt;
 ball = sphere(pos=vector(.1,-.2,.3), radius=0.025, color=color.orange) # note: spring initially compressed&lt;br /&gt;
 spring = helix(pos=ceiling.pos, color=color.cyan, thickness=.003, coils=40, radius=0.015)&lt;br /&gt;
 parrow = arrow(color=color.magenta, pos=ball.pos, axis=vector(0,0,0))&lt;br /&gt;
 farrow = arrow(color=color.red, pos=ball.pos, axis=vector(0,0,0))&lt;br /&gt;
 trail = curve(color=ball.color)&lt;br /&gt;
 &lt;br /&gt;
 #graphs&lt;br /&gt;
 Kgraph=gcurve(color=color.red)&lt;br /&gt;
 Ugraph=gcurve(color=color.cyan)&lt;br /&gt;
 KUgraph=gcurve(color=color.yellow)&lt;br /&gt;
&lt;br /&gt;
 #graph updates are done in the while loop.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30037</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30037"/>
		<updated>2017-11-29T03:09:13Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Object Application==&lt;br /&gt;
Following code is an example usage and application of object creation for lab simulations.&lt;br /&gt;
&lt;br /&gt;
 ## objects&lt;br /&gt;
 ceiling = box(pos=vector(0,0,0), size = vector(0.2, 0.01, 0.2))         ## origin is at ceiling&lt;br /&gt;
 ball = sphere(pos=vector(.1,-.2,.3), radius=0.025, color=color.orange) ## note: spring initially compressed&lt;br /&gt;
 spring = helix(pos=ceiling.pos, color=color.cyan, thickness=.003, coils=40, radius=0.015) ## change the color to be your spring color&lt;br /&gt;
 parrow = arrow(color=color.magenta, pos=ball.pos, axis=vector(0,0,0))&lt;br /&gt;
 farrow = arrow(color=color.red, pos=ball.pos, axis=vector(0,0,0))&lt;br /&gt;
 trail = curve(color=ball.color)&lt;br /&gt;
 &lt;br /&gt;
 #graphs&lt;br /&gt;
 Kgraph=gcurve(color=color.red)&lt;br /&gt;
 Ugraph=gcurve(color=color.cyan)&lt;br /&gt;
 KUgraph=gcurve(color=color.yellow)&lt;br /&gt;
&lt;br /&gt;
 #graph updates are done in the while loop.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30036</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30036"/>
		<updated>2017-11-29T03:00:42Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Object Syntax==&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30035</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30035"/>
		<updated>2017-11-29T03:00:10Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Object Syntax==&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/&lt;br /&gt;
&lt;br /&gt;
[[Category:Week 1]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30034</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30034"/>
		<updated>2017-11-29T02:59:30Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Object Syntax==&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
http://vpython.org/&lt;br /&gt;
&lt;br /&gt;
[[Category:VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30033</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30033"/>
		<updated>2017-11-29T02:55:57Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* Object Uses */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Object Syntax==&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30032</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30032"/>
		<updated>2017-11-29T02:55:08Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* Commonly Used Objects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow, the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set.&lt;br /&gt;
&lt;br /&gt;
===Curve===&lt;br /&gt;
The curve is often used to create a trail mark that represents a path that the object has moved, and it is also frequently used to create graphs. To create a curve, put the initial position vector of the curve, and append the next positions while updating the position in the while loop.&lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===VPython Syntax of each objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30028</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30028"/>
		<updated>2017-11-29T02:50:16Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* Image of Each Objects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
The objects are listed in alphabetical order.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===VPython Syntax of each objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30027</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30027"/>
		<updated>2017-11-29T02:48:21Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===VPython Syntax of each objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30026</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30026"/>
		<updated>2017-11-29T02:47:17Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|Example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|Example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|Example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|Example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|Example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|Example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|Example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|Example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|Example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|Example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|Example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|Example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|Example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|Example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but it is mostly used to represent spherical objects such as planets or particles such as protons and electrons. Two things must be set; the position (vector), and the radius (numerical value).&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics simulation. It can be used to represent various forces as well as visualizing vectors. To create an arrow the position (vector), axis (vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===VPython Syntax of each objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30025</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=30025"/>
		<updated>2017-11-29T02:41:35Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|The example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|The example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|The example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|The example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|The example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:GoldHelix.png|thumb|none|alt=Yellow Arrow|The example helix]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
[[File:WhiteLabel.png|thumb|none|alt=Yellow Arrow|The example label]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
[[File:IvoryPoints.png|thumb|none|alt=Yellow Arrow|The example points]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
[[File:BrownPyramid.png|thumb|none|alt=Yellow Arrow|The example pyramid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
[[File:AquaMarineRing.png|thumb|none|alt=Yellow Arrow|The example ring]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
[[File:LightGreenSphere.png|thumb|none|alt=Yellow Arrow|The example sphere]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
[[File:KhakiText.png|thumb|none|alt=Yellow Arrow|The example text]]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.96,0.73,0.14))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
 l = label(pos=vector(0,0.25,0), text=&#039;This is a Label&#039;, xoffset=20, yoffset=50, space=30, height=16, border=4,font=&#039;sans&#039;)&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
 p = points(pos=[vector(-1,0,0), vector(1,0,0)], radius=50, color=(1,1,.94))&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
 p = pyramid(pos=vector(5,2,0), size=vector(3,3,2), color=(0.82, 0.41, 0.12))&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
 r = ring(pos=vector(1,1,1), axis=vector(0,1,0),radius=0.5, thickness=0.1, color=(0.14, 1, 0.83))&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
 s = s = sphere(pos=vector(1,1,1), radius=5, color=(0.5, 1, 0.5))&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
 t = text(text=&#039;This is \ntext&#039;, #use \n for changing line&lt;br /&gt;
     align=&#039;center&#039;, color=(0.94, 0.90, 0.55))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:AquaMarineRing.png&amp;diff=30024</id>
		<title>File:AquaMarineRing.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:AquaMarineRing.png&amp;diff=30024"/>
		<updated>2017-11-29T02:38:46Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:BrownPyramid.png&amp;diff=30023</id>
		<title>File:BrownPyramid.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:BrownPyramid.png&amp;diff=30023"/>
		<updated>2017-11-29T02:38:38Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:KhakiText.png&amp;diff=30022</id>
		<title>File:KhakiText.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:KhakiText.png&amp;diff=30022"/>
		<updated>2017-11-29T02:38:26Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:LightGreenSphere.png&amp;diff=30021</id>
		<title>File:LightGreenSphere.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:LightGreenSphere.png&amp;diff=30021"/>
		<updated>2017-11-29T02:38:17Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:WhiteLabel.png&amp;diff=30020</id>
		<title>File:WhiteLabel.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:WhiteLabel.png&amp;diff=30020"/>
		<updated>2017-11-29T02:38:06Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:IvoryPoints.png&amp;diff=30019</id>
		<title>File:IvoryPoints.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:IvoryPoints.png&amp;diff=30019"/>
		<updated>2017-11-29T02:37:56Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:GoldHelix.png&amp;diff=30018</id>
		<title>File:GoldHelix.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:GoldHelix.png&amp;diff=30018"/>
		<updated>2017-11-29T02:37:25Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29835</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29835"/>
		<updated>2017-11-28T07:39:14Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|The example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|The example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|The example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|The example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|The example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
[[File:LightGreenHelix.png|thumb|none|alt=Yellow Arrow|The example helix]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
 h = helix(pos=vector(0,2,1), axis=vector(5,0,0), radius=0.5, color=(0.5,1,0))&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:LightGreenHelix.png&amp;diff=29834</id>
		<title>File:LightGreenHelix.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:LightGreenHelix.png&amp;diff=29834"/>
		<updated>2017-11-28T07:38:52Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29833</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29833"/>
		<updated>2017-11-28T07:27:29Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|The example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|The example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|The example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|The example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|The example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects VPython Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29832</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29832"/>
		<updated>2017-11-28T07:27:07Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|The example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|The example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|The example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|The example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|The example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Objects]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29831</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29831"/>
		<updated>2017-11-28T07:24:26Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
[[File:YellowCone.png|thumb|none|alt=Yellow Arrow|The example cone]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
[[File:GreenCurve.png|thumb|none|alt=Yellow Arrow|The example curve]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
[[File:CyanCylinder.png|thumb|none|alt=Yellow Arrow|The example cylinder]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
[[File:BlueEllipsoid.png|thumb|none|alt=Yellow Arrow|The example ellipsoid]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
[[File:MagentaExtrusion.png|thumb|none|alt=Yellow Arrow|The example extrusion]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.magenta)&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
&lt;br /&gt;
Lights&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:MagentaExtrusion.png&amp;diff=29830</id>
		<title>File:MagentaExtrusion.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:MagentaExtrusion.png&amp;diff=29830"/>
		<updated>2017-11-28T07:19:54Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:BlueEllipsoid.png&amp;diff=29829</id>
		<title>File:BlueEllipsoid.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:BlueEllipsoid.png&amp;diff=29829"/>
		<updated>2017-11-28T07:19:38Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:CyanCylinder.png&amp;diff=29828</id>
		<title>File:CyanCylinder.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:CyanCylinder.png&amp;diff=29828"/>
		<updated>2017-11-28T07:19:26Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:GreenCurve.png&amp;diff=29827</id>
		<title>File:GreenCurve.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:GreenCurve.png&amp;diff=29827"/>
		<updated>2017-11-28T07:19:12Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:YellowCone.png&amp;diff=29826</id>
		<title>File:YellowCone.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:YellowCone.png&amp;diff=29826"/>
		<updated>2017-11-28T07:18:58Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29825</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29825"/>
		<updated>2017-11-28T07:16:37Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
This document is written based on VPython 7.&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
Cylinder&lt;br /&gt;
 c = cylinder(pos=vector(0,2,1), axis=vector(5,0,0), radius=1, color=color.cyan)&lt;br /&gt;
&lt;br /&gt;
Ellipsoid&lt;br /&gt;
 e = ellipsoid(pos=vector(0,0,0), length=3, height=5, width=7, color=color.blue)&lt;br /&gt;
&lt;br /&gt;
Extrusion&lt;br /&gt;
 #define polygons first&lt;br /&gt;
 tri = Polygon( [(-2,0), (0,4), (2,0)] )&lt;br /&gt;
 circ = shapes.circle(pos=(0,1.5), radius=0.8)&lt;br /&gt;
 straight = [(0,0,0),(0,0,-4)]&lt;br /&gt;
 #create extrusion&lt;br /&gt;
 e = extrusion(pos=straight, shape=tri-circ, color=color.yellow)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Helix&lt;br /&gt;
&lt;br /&gt;
Label&lt;br /&gt;
&lt;br /&gt;
Lights&lt;br /&gt;
&lt;br /&gt;
Points&lt;br /&gt;
&lt;br /&gt;
Pyramid&lt;br /&gt;
&lt;br /&gt;
Ring&lt;br /&gt;
&lt;br /&gt;
Sphere&lt;br /&gt;
&lt;br /&gt;
Text&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29824</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29824"/>
		<updated>2017-11-28T06:58:08Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/faces.html Faces]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
 a = arrow(pos=(0,2,1),axis=(5,0,0), color = color.red)&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
 b = box(pos=(0,0,0),length=3, height=3, width=3, color = color.orange)&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
 c = cone(pos=(0,0,0),axis=vector(2,0,0), radius=1, color = color.yellow)&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green) #create object&lt;br /&gt;
 c.append(pos=(3,2,-2)) #append next position vector&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29823</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29823"/>
		<updated>2017-11-28T06:54:45Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from Glowscript.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/faces.html Faces]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===Example Code of Each Objects ===&lt;br /&gt;
Arrow&lt;br /&gt;
&lt;br /&gt;
Box&lt;br /&gt;
&lt;br /&gt;
Cone&lt;br /&gt;
&lt;br /&gt;
Curve&lt;br /&gt;
 &lt;br /&gt;
 c = curve(pos=[(-1,-1,0), (1,-1,0)], color = color.green)&lt;br /&gt;
 c.append(pos=(3,2,-2))&lt;br /&gt;
 c.append(pos=(4,1,2))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29822</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29822"/>
		<updated>2017-11-28T06:36:08Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017) (In Progress)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from VPython.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:OrangeBox.png|thumb|none|alt=Yellow Arrow|The example box]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/convex.html Convex]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/faces.html Faces]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===VPython Creation of Each Objects ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:OrangeBox.png&amp;diff=29821</id>
		<title>File:OrangeBox.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:OrangeBox.png&amp;diff=29821"/>
		<updated>2017-11-28T06:35:47Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: Orange Box VPython&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Orange Box VPython&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29820</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29820"/>
		<updated>2017-11-28T06:34:54Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
===Image of Each Objects===&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. By clicking each names of the objects, you can go to the official description of each objects from VPython.&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/convex.html Convex]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/faces.html Faces]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
===VPython Creation of Each Objects ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29819</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29819"/>
		<updated>2017-11-28T06:29:57Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding. &lt;br /&gt;
&lt;br /&gt;
Before start coding, make sure to have &lt;br /&gt;
&lt;br /&gt;
 from __future__ import division&lt;br /&gt;
 from visual import *&lt;br /&gt;
&lt;br /&gt;
on the top of your script.&lt;br /&gt;
&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. These objects include:&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
[[File:RedArrow.png|thumb|none|alt=Yellow Arrow|The example arrow]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/convex.html Convex]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/faces.html Faces]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
&lt;br /&gt;
[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Commonly Used Objects==&lt;br /&gt;
The following objects are often used in class lab.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=File:RedArrow.png&amp;diff=29818</id>
		<title>File:RedArrow.png</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=File:RedArrow.png&amp;diff=29818"/>
		<updated>2017-11-28T06:20:54Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: A red arrow&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A red arrow&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29817</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29817"/>
		<updated>2017-11-28T06:08:52Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main purpose of the VPython programming language is to create 3D simulation with creating the 3D objects. To achieve this purpose, VPython already contains a number of built-in 3-dimensional objects, and these objects are displayed in a 3D graphics module called Visual. Familiarizing with these objects is important for lab coding.&lt;br /&gt;
&lt;br /&gt;
==List of 3D Objects==&lt;br /&gt;
&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. These objects include:&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/convex.html Convex]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/faces.html Faces]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
The ease with which these objects can be manipulated using python makes them popular in physics classes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Important Objects==&lt;br /&gt;
The following objects appear often in Physics 2.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
	<entry>
		<id>http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29788</id>
		<title>VPython 3D Objects</title>
		<link rel="alternate" type="text/html" href="http://www.physicsbook.gatech.edu/index.php?title=VPython_3D_Objects&amp;diff=29788"/>
		<updated>2017-11-28T04:10:20Z</updated>

		<summary type="html">&lt;p&gt;Dkim694: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Claimed by Do Won Kim (Fall 2017)&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The VPython programming language contains a number of 3-dimensional objects that can be displayed in a 3D graphics module called Visual.&lt;br /&gt;
&lt;br /&gt;
==Overview==&lt;br /&gt;
&lt;br /&gt;
VPython is packaged with a variety of 3-Dimensional objects. These objects include:&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/arrow.html Arrow]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/box.html Box]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/cone.html Cone]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/convex.html Convex]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/curve.html Curve]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/cylinder.html Cylinder]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/ellipsoid.html Ellipsoid]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/extrusion.html Extrusion]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/faces.html Faces]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/helix.html Helix]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/label.html Label]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/points.html Points]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/pyramid.html Pyramid]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/ring.html Ring]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/sphere.html Sphere]&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/text.html Text]&lt;br /&gt;
The ease with which these objects can be manipulated using python makes them popular in physics classes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Important Objects==&lt;br /&gt;
The following objects appear often in Physics 2.&lt;br /&gt;
&lt;br /&gt;
===Sphere===&lt;br /&gt;
The sphere object can be used to represent a wide variety of things, but perhaps the most important for use in Physics 2 is point charges and protons/electrons. Two things must be set; the position, a vector; and the radius, a numerical value.&lt;br /&gt;
&lt;br /&gt;
===Arrow===&lt;br /&gt;
The arrow is perhaps the most important object for Physics 2. It can be used to represent Electric and magnetic fields as well as visualizing vectors. To create an arrow the position (a vector), axis (a vector), and the shaftwidth (a numerical value) must be set. &lt;br /&gt;
&lt;br /&gt;
==Object Uses==&lt;br /&gt;
&lt;br /&gt;
===Examples of Simple Objects===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:sphere1 = sphere(pos=vector(4,8,15), radius=16)&lt;br /&gt;
:&lt;br /&gt;
:arrow1 = arrow(pos=vector(4,8,15), axis=vector(16,23,42)&lt;br /&gt;
:&lt;br /&gt;
:helix1 = helix(pos=vector(4,8,15), axis=vector(16,23,42) radius=.23)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Modeling Fields===&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
:from visual import *&lt;br /&gt;
:mzofp = 1e-7&lt;br /&gt;
:oofpez = 9e9&lt;br /&gt;
:qe = 1.6e-19&lt;br /&gt;
:&lt;br /&gt;
:proton = sphere(pos=vector(3e-10,0,0), radius=1e-11, color=color.red)&lt;br /&gt;
:velocity = vector(-5.2e4,0,0) #The proton&#039;s velocity&lt;br /&gt;
:r_obs = vector(0,8e-11,0) #The observation location&lt;br /&gt;
:deltat = 1e-19 #Timestep&lt;br /&gt;
:&lt;br /&gt;
:while proton.x &amp;lt; 5e-10:&lt;br /&gt;
::    r = r_obs - proton.pos &lt;br /&gt;
::    rhat = r/mag(r)&lt;br /&gt;
::    Efield = oofpez*qe*rhat/(mag(r)**2)&lt;br /&gt;
::    Bfield = mzofp*qe*cross(velocity,that)/(mag(r)**2)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_basics VPython Basics]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython VPython]&lt;br /&gt;
#[http://www.physicsbook.gatech.edu/VPython_Animation VPython Animation]&lt;br /&gt;
&lt;br /&gt;
===Further reading===&lt;br /&gt;
&lt;br /&gt;
#[http://www.glowscript.org/docs/VPythonDocs/primitives.html 3D object details]&lt;br /&gt;
#[http://vpython.org VPython Information]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
http://www.glowscript.org/docs/VPythonDocs/primitives.html&lt;br /&gt;
http://vpython.org/contents/docs/shapes.html&lt;br /&gt;
&lt;br /&gt;
[[Category:Modeling With VPython]]&lt;/div&gt;</summary>
		<author><name>Dkim694</name></author>
	</entry>
</feed>