Last change
on this file since 28897 was 28897, checked in by davidb, 10 years ago |
GUI front-end to server base plus web page content
|
File size:
1.8 KB
|
Line | |
---|
1 | <!DOCTYPE html>
|
---|
2 | <html lang="en">
|
---|
3 | <head>
|
---|
4 | <meta charset="utf-8" />
|
---|
5 | <script src="../../../list.js"></script>
|
---|
6 | <script src="../../../page.js"></script>
|
---|
7 | <link type="text/css" rel="stylesheet" href="../../../page.css" />
|
---|
8 | </head>
|
---|
9 | <body>
|
---|
10 | [page:Geometry] →
|
---|
11 |
|
---|
12 | <h1>[name]</h1>
|
---|
13 |
|
---|
14 | <div class="desc">A class for generating sphere geometries</div>
|
---|
15 |
|
---|
16 |
|
---|
17 | <h2>Constructor</h2>
|
---|
18 |
|
---|
19 |
|
---|
20 | <h3>[name]([page:Float radius], [page:Integer widthSegments], [page:Integer heightSegments], [page:Float phiStart], [page:Float phiLength], [page:Float thetaStart], [page:Float thetaLength])</h3>
|
---|
21 |
|
---|
22 | <div>
|
---|
23 | radius â sphere radius. Default is 50.<br />
|
---|
24 | widthSegments â number of horizontal segments. Minimum value is 3, and the default is 8.<br />
|
---|
25 | heightSegments â number of vertical segments. Minimum value is 2, and the default is 6.<br />
|
---|
26 | phiStart â specify horizontal starting angle. Default is 0.<br />
|
---|
27 | phiLength â specify horizontal sweep angle size. Default is Math.PI * 2.<br />
|
---|
28 | thetaStart â specify vertical starting angle. Default is 0.<br />
|
---|
29 | thetaLength â specify vertical sweep angle size. Default is Math.PI.<br />
|
---|
30 | </div>
|
---|
31 |
|
---|
32 | <div>
|
---|
33 | The geometry is created by sweeping and calculating vertexes around the Y axis (horizontal sweep) and the Z axis (vertical sweep). Thus, incomplete spheres (akin to <em>'sphere slices'</em>) can be created through the use of different values of phiStart, phiLength, thetaStart and thetaLength, in order to define the points in which we start (or end) calculating those vertices.
|
---|
34 | </div>
|
---|
35 |
|
---|
36 |
|
---|
37 | <h2>Properties</h2>
|
---|
38 |
|
---|
39 | <div>
|
---|
40 | Each of the contructor parameters is accessible as a property of the same name. Any modification of these properties after instantiation does not change the geometry.
|
---|
41 | </div>
|
---|
42 |
|
---|
43 | <h2>Source</h2>
|
---|
44 |
|
---|
45 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
46 | </body>
|
---|
47 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.