NGL  6.5
The NCCA Graphics Library
Tetrahedron.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Jon Macey
3 
4  This program is free software: you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation, either version 3 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 // VBO File in the format tx,ty,nx,ny,nz,vx,vy,vz for use with LoadBinaryVBO function in
18 // VBOPrimitives.cpp from the NCCA GraphicsLib.
19 //Automatically generated using WriteVBO function
20 // brief data for a unit tetrahedron stored in GL_T2_N3_V3 format
24 #ifndef TETRAHEDRON_H_
25 #define TETRAHEDRON_H_
26 constexpr unsigned int tetrahedronSIZE=96;
28  //Triangle 0
29  0.250000f,0.375000f,0.0f, -1.000000f, 0.0f,1.000000f,-1.0f,0.0f,
30  0.500000f,0.0f,0.0f, -1.000000f, 0.0f,-1.0f,-1.0f,1.0f,
31  0.750000f,0.375000f,0.0f, -1.000000f, 0.0f,-1.0f,-1.0f,-1.0f,
32  //Triangle 1
33  0.0f,0.0f,0.471405f, 0.333333f, 1.0f,1.000000f,-1.0f,0.0f,
34  0.500000f,0.0f,0.471405f, 0.333333f, 1.0f,0.0f,1.0f,0.0f,
35  0.250000f,0.375000f,0.471405f, 0.333333f, 1.0f,-1.0f,-1.0f,1.0f,
36  //Triangle 2
37  0.250000f,0.375000f,0.471405f, 0.333333f, -0.816497f,0.0f,1.0f,0.0f,
38  0.750000f,0.375000f,0.471405f, 0.333333f, -0.816497f,1.000000f,-1.0f,0.0f,
39  0.500000f,0.750000f,0.471405f, 0.333333f, -0.816497f,-1.0f,-1.0f,-1.0f,
40  //Triangle 3
41  0.750000f,0.375000f,-0.942809f, 0.333333f, 0.0f,-1.0f,-1.0f,1.0f,
42  0.500000f,0.0f,-0.942809f, 0.333333f, 0.0f,0.0f,1.0f,0.0f,
43  1.000000f,0.0f,-0.942809f, 0.333333f, 0.0f,-1.0f,-1.0f,-1.0f
44  //Triangle 4
45 }; //end of declaration
46 #endif
47 
48 /*
49 
50 
51 vn 0.471405, 0.333333, -0.816497
52 vn 0.471405 0.333333 -0.816497
53 vn 0.471405 0.333333 -0.816497
54 vn -0.942809, 0.333333, 0
55 vn -0.942809 0.333333 0
56 vn -0.942809 0.333333 0
57 f 3/1/1 2/2/2 1/3/3
58 f 3/4/4 4/5/5 2/6/6
59 f 4/7/7 3/8/8 1/9/9
60 f 2/10/10 4/11/11 1/12/12
61 
62 
63  */
64 
65 
66 
67 
static float tetrahedron[tetrahedronSIZE]
Definition: Tetrahedron.h:27
constexpr unsigned int tetrahedronSIZE
Definition: Tetrahedron.h:26