-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
78 lines (62 loc) · 1.4 KB
/
main.cpp
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/* Created on: 10/03/2021
* Author: Ziniu Lu ([email protected])
*/
#pragma once
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
#include "project.h"
#include "Settings.h"
#include "MeshFile.h"
#include "Skeletonization.h"
#include "Segmentation.h"
#include "Display.h"
using namespace PROJECT_NAME;
void init()
{
// declared in project.h
print_to = 1;
process_nr = 0;
//settings_loaded = false;
//is_triangle_mesh = false;
gui_console = new GuiConsole();
// declared in Display.h
display = new Display();
// declared in Settings.h
settings = new Settings();
// declared in MeshFile.h
mesh = new Mesh();
// declared in Skeletonization.h
skel = new Skel();
skel_graph = new SkelGraph();
// declared in Segmentation.h
segmentation = new Segmentation();
}
void clear()
{
delete display;
delete settings;
delete gui_console;
delete mesh;
delete skel_graph;
delete skel;
delete segmentation;
display = NULL;
settings = NULL;
gui_console = NULL;
mesh = NULL;
tmesh = NULL;
pmesh = NULL;
skel = NULL;
skel_graph = NULL;
segmentation = NULL;
}
int main(int argc, char *argv[])
{
init();
display->launch();
clear();
return EXIT_SUCCESS;
}