source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/docs/api/extras/geometries/SphereGeometry.html@ 28897

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] &rarr;
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.