source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/src/extras/geometries/OctahedronGeometry.js@ 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: 516 bytes
Line 
1/**
2 * @author timothypratley / https://github.com/timothypratley
3 */
4
5THREE.OctahedronGeometry = function ( radius, detail ) {
6
7 var vertices = [
8 [ 1, 0, 0 ], [ -1, 0, 0 ], [ 0, 1, 0 ], [ 0, -1, 0 ], [ 0, 0, 1 ], [ 0, 0, -1 ]
9 ];
10
11 var faces = [
12 [ 0, 2, 4 ], [ 0, 4, 3 ], [ 0, 3, 5 ], [ 0, 5, 2 ], [ 1, 2, 5 ], [ 1, 5, 3 ], [ 1, 3, 4 ], [ 1, 4, 2 ]
13 ];
14
15 THREE.PolyhedronGeometry.call( this, vertices, faces, radius, detail );
16};
17
18THREE.OctahedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
Note: See TracBrowser for help on using the repository browser.