-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathpoints.html
More file actions
71 lines (69 loc) · 4.03 KB
/
Copy pathpoints.html
File metadata and controls
71 lines (69 loc) · 4.03 KB
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
<!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" --><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>curve</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<link href="VisualRef.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: x-large}
.style2 {font-size: xx-large}
-->
</style>
<!-- InstanceEndEditable -->
<link href="VisualRef.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="230" height="30" border="0">
<tr>
<td width="66"><a name="top" id="top"></a><a href="index.html"><strong>Home</strong></a></td>
<td width="154"><span class="Normal"><a href="primitives.html"><strong>Pictures</strong></a> of 3D objects</span></td>
</tr>
</table>
<table width="438" height="30" border="0">
<tr>
<td width="151"><select id="menu1" onchange="jumpMenu(this)">
</select></td>
<td width="163"><select id="menu2" onchange="jumpMenu(this)">
</select></td>
<td width="110"><select id="menu3" onchange="jumpMenu(this)">
</select></td>
</tr>
</table>
<table width="454" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutDefaultTable-->
<tr>
<td width="454" rowspan="2" valign="top"><!-- InstanceBeginEditable name="content" -->
<table width="99%" border="1">
<tr>
<td width="431"><div align="center"><span class="style1 style2"><font color="#0000A0">points</font></span></div></td>
<td width="132"><div align="center"><img src="images/points.jpg" alt="curve" width="131" height="127" /><a href="arrow.html"></a></div></td>
</tr>
</table>
<p class="Normal">The points object is essentially the same as the <strong><a href="curve.html">curve</a></strong> object except that it displays individual points at the specified positions instead of connecting them with lines, and it does not have origin, axis, or up attributes. The points are rendered as spheres.</p>
<p class="Normal">The points object takes a list of points for <span
class="attribute">pos</span>, like the curve object. The following statement
will display two points, each of radius 50 pixels: </p>
<p class="program">points(pos=[vec(-1,0,0), vec(1,0,0)], <br />
radius=50, color=color.red)</p>
<p class="Normal">The points object is similar to a curve, but with
disconnected points. As with curve, the <span class="attribute">pos</span> attribute is an array
of points. The size of the points is specified by <span class="attribute">radius</span> and the default radius is 2.5, meaning a sphere whose radius is 2.5 pixels (a diameter of 5 pixels). The radius attribute is in screen
pixels if <span class="attribute">size_units="pixels"</span> (the
default), but if <span class="attribute">size_units="world"</span>, the radius is in the same terms as other objects. Setting the radius to 0 is the same as not specifying a radius, in which case the radius will be 2.5 pixels, just as a curve is thin if its radius is specified as 0. </p>
<p class="Normal">The options for manipulating a <strong><a href="curve.html">curve</a></strong> can also be used with the points object, but currently the points object doesn't handle changes in axis or size, does not have an origin nor a rotate method, nor can be made into a compound.</p>
<div>
<div></div>
</div>
<div> </div>
<p class="Normal"><strong><font color="#0000a0">JavaScript</font></strong></p>
<p class="Normal">See the <a href="cylinder.html"><strong>cylinder</strong></a> documentation for how to create an object in JavaScript.</p>
<p class="Normal"> </p>
<!-- InstanceEndEditable --></td>
</tr>
</table>
<p><a href="#top"><strong>Top of page</strong></a></p>
</body>
<script type="text/javascript" language="javascript" src="navigation.js"></script>
<!-- InstanceEnd --></html>