-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScene.h
63 lines (43 loc) · 946 Bytes
/
Scene.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef SCENE_H
#define SCENE_H
#include <QtOpenGL/qgl.h>
#include <iostream>
#include <cmath>
#include "types.h"
class Scene
{
public:
Scene();
~Scene();
public:
// types
typedef CGAL::Bbox_3 Bbox;
public:
void update_bbox();
Bbox bbox() { return m_bbox; }
private:
// member data
Bbox m_bbox;
Polyhedron *m_pPolyhedron;
// view options
bool m_view_polyhedron;
public:
// file menu
int open(QString filename);
// toggle view options
void toggle_view_poyhedron();
// algorithms
Vector normalize(const Vector& v);
void refine_loop();
void refine_catmull();
void simplify_mesh();
void isotropic_remesh();
// rendering
void draw();
void render_polyhedron();
//For showing mesh stats.
void ShowStats();
private :
void CreateFaceMap(std::map<face_descriptor, std::size_t>& fi_map);
}; // end class Scene
#endif // SCENE_H