Bridges-C++
3.5.0-dev2-1-ge3e57bf
Bridges(C++ API)
home
erik
work
bridges
bridges-cxx
src
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
bridges::Mesh
Definition:
mesh.h:6
bridges::Mesh::Mesh
Mesh(vector< float > vertices)
Definition:
mesh.h:15
bridges::Mesh::setVertices
setVertices(vector< float > v)
Definition:
mesh.h:23
bridges::Mesh::vertices
vector< float > vertices
Definition:
mesh.h:14
bridges
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition:
alltypes.h:4
Generated on Thu Aug 7 2025 16:20:15 for Bridges-C++ by
1.9.4