-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMesh.h
36 lines (28 loc) · 749 Bytes
/
Mesh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __MESH_H__
#define __MESH_H__
#include <vector>
#include <iostream>
#include "Triangle.h"
#include "Transformation/Base.h"
using namespace std;
class Mesh
{
public:
int meshId;
int type; // 0 for wireframe, 1 for solid
int numberOfTransformations;
vector<int> transformationIds;
vector<char> transformationTypes;
int numberOfTriangles;
vector<Triangle> triangles;
vector<Base*> transformations;
Matrix4 modelingTransform;
Mesh();
Mesh(int meshId, int type, int numberOfTransformations,
vector<int> transformationIds,
vector<char> transformationTypes,
int numberOfTriangles,
vector<Triangle> triangles);
void computeModelingTransform();
};
#endif