Bridges-C++  3.4.4
Bridges(C++ API)
mesh.h
Go to the documentation of this file.
1 #include <vector>
2 #include <string>
3 using namespace std;
4 
5 namespace bridges {
6  class Mesh {
7 
8  struct objectJson {
9  string type;
10  vector<float> vertices;
11  };
12 
13  public:
14  vector<float> vertices;
15  Mesh(vector<float> vertices) : setVertices(vertices) {
16  float color[4] = {1.0, 1.0, 0.5, 1.0};
17  float transform[0] = {};
18  objectJson obJ1;
19  obJ1.type = "custom mesh";
20  obJ1.vertices = vertices;
21  }
22 
23  setVertices(vector<float> v) {
24  vertices = v;
25  }
26  };
27 } //namespace bridges
Definition: mesh.h:6
Mesh(vector< float > vertices)
Definition: mesh.h:15
setVertices(vector< float > v)
Definition: mesh.h:23
vector< float > vertices
Definition: mesh.h:14
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4