-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel.h
More file actions
24 lines (19 loc) · 741 Bytes
/
Copy pathmodel.h
File metadata and controls
24 lines (19 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef MODEL_H
#define MODEL_H
#include <vector>
#include "vertex.h"
#include "triangle.h"
class Model {
public:
std::vector<Vertex> vertexes;
std::vector<Triangle> triangles;
Vertex bounds_center; // geometric center of the model
double bounds_radius; // radius of the bounding sphere
Model(const std::vector<Vertex>& vertexes, const std::vector<Triangle>& triangles)
: vertexes(vertexes), triangles(triangles) {}
Model(const std::vector<Vertex>& vertexes, const std::vector<Triangle>& triangles,
const Vertex& bounds_center, double bounds_radius)
: vertexes(vertexes), triangles(triangles),
bounds_center(bounds_center), bounds_radius(bounds_radius) {}
};
#endif // MODEL_H