1 | /**
|
---|
2 | * @author timothypratley / https://github.com/timothypratley
|
---|
3 | */
|
---|
4 |
|
---|
5 | THREE.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 |
|
---|
18 | THREE.OctahedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
|
---|