Privacy
An open-source, flexible 3D physical simulation framework
snmesh.h
Go to the documentation of this file.
1 /*
2  * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center
3  *
4  * This file is part of the MARS simulation framework.
5  *
6  * MARS is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License
8  * as published by the Free Software Foundation, either version 3
9  * of the License, or (at your option) any later version.
10  *
11  * MARS is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with MARS. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 #ifndef MARS_INTERFACES_SNMESH_H
22 #define MARS_INTERFACES_SNMESH_H
23 
24 #include "MARSDefs.h"
25 #include <mars/utils/Color.h>
26 
27 namespace mars {
28 
29  namespace interfaces {
30 
31  //mesh structure
32  struct snmesh {
33  void setZero(){
34  vertices = 0;
35  normals = 0;
36  color= 0;
37  tCoords = 0;
38  indices = 0;
39  indexcount = 0;
40  vertexcount = 0;
41  }
42 
43  snmesh(){
44  setZero();
45  }
46 
51 
52  int *indices;
55 
56  }; // end of struct snmesh
57 
58  } // end of namespace interfaces
59 
60 } // end of namespace mars
61 
62 #endif /* MARS_INTERFACES_SNMESH_H */
sReal mydVector2[4]
Definition: MARSDefs.h:51
mydVector2 * tCoords
Definition: snmesh.h:50
utils::Color * color
Definition: snmesh.h:49
mydVector3 * normals
Definition: snmesh.h:48
Copyright 2012, DFKI GmbH Robotics Innovation Center.
sReal mydVector3[4]
Definition: MARSDefs.h:50
mydVector3 * vertices
Definition: snmesh.h:47