1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="GENERATOR"
content="Adobe FrameMaker 5.5/HTML Export Filter">
<link rel="STYLESHEET" href="VisualRef.css" charset="ISO-8859-1"
type="text/css">
<title>Description of Objects in VPython</title>
</head>
<body bgcolor="#ffffff">
<div class="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tbody>
<tr>
<td><a href="curve.html"><img src="icons/previous.gif"
border="0" height="32" alt="Previous Page" width="32"></a></td>
<td><a href="index.html"><img src="icons/up.gif" border="0"
height="32" alt="Up One Level" width="32"></a></td>
<td><a href="convex.html"><img src="icons/next.gif" border="0"
height="32" alt="Next Page" width="32"></a></td>
<td align="center" width="100%">Visual Reference</td>
<td><a href="index.html"><img src="icons/contents.gif" border="0"
height="32" alt="Contents" width="32"></a></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
</tr>
</tbody>
</table>
<b class="navlabel">Previous:</b> <a class="sectref" href="curve.html">The
curve Object</a>
<b class="navlabel">Up:</b> <a class="sectref" href="index.html">Contents</a>
<b class="navlabel">Next:</b> <a class="sectref" href="convex.html">The
convex Object</a>
<br>
<hr></div>
<div>
<h1 class="Heading-1"> <font color="#0000a0">The helix Object</font></h1>
</div>
<div>
<p class="Normal">The following statement will display a helix that is
parallel to the x axis:</p>
<div>
<h2 class="program0">spring = helix(pos=(0,2,1), axis=(5,0,0),
radius=0.5)</h2>
<p class="Normal"> The helix object has the following attributes and
default values: <span class="attribute">pos<font color="#000000">
(0,0,0)</font></span>, <span class="attribute">x</span><span
class="attribute"><font color="#000000"> (0)</font></span>, <span
class="attribute">y<font color="#000000">(0)</font></span>, <span
class="attribute">z<font color="#000000">(0)</font></span>, <span
class="attribute">axis<font color="#000000"> (1,0,0)</font></span>, <span
class="attribute">length<font color="#000000"> (1)</font></span>, <span
class="attribute">radius<font color="#000000"> </font></span>(0.2), <span
class="attribute">coils </span>(5), <span class="attribute">thickness
</span>(radius/20), <span class="attribute">color<font color="#000000">
(1,1,1) which is color.white</font></span>, <span class="attribute">red<font
color="#000000"> (1)</font></span>, <span class="attribute">green<font
color="#000000"> (1)</font></span>, <span class="attribute">blue<font
color="#000000"> (1)</font></span>, and <span class="attribute">up<font
color="#000000"> (0,1,0)</font></span>. </p>
<p class="Normal">Note that the <span class="attribute">pos</span>
attribute for cylinder, arrow, cone, pyramid, and helix corresponds to
one end of the object, whereas for a box, sphere, or ring it
corresponds to the center of the object. </p>
</div>
</div>
<div> </div>
<hr>
<div class="navigation">
<table align="center" width="100%" cellpadding="0" cellspacing="2">
<tbody>
<tr>
<td><a href="curve.html"><img src="icons/previous.gif"
border="0" height="32" alt="Previous Page" width="32"></a></td>
<td><a href="index.html"><img src="icons/up.gif" border="0"
height="32" alt="Up One Level" width="32"></a></td>
<td><a href="convex.html"><img src="icons/next.gif" border="0"
height="32" alt="Next Page" width="32"></a></td>
<td align="center" width="100%">Visual Reference</td>
<td><a href="index.html"><img src="icons/contents.gif" border="0"
height="32" alt="Contents" width="32"></a></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
<td><img src="icons/blank.gif" border="0" height="32" alt=""
width="32"></td>
</tr>
</tbody>
</table>
<b class="navlabel">Previous:</b> <a class="sectref"
href="curve.html">The curve Object</a>
<b class="navlabel">Up:</b> <a class="sectref" href="index.html">Contents</a>
<b class="navlabel">Next:</b> <a class="sectref" href="convex.html">The
convex Object</a>
<br>
<hr></div>
</body>
</html>
|