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