-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettings.h
More file actions
77 lines (59 loc) · 1.38 KB
/
Copy pathSettings.h
File metadata and controls
77 lines (59 loc) · 1.38 KB
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
/* Created on: 04/06/2021
* Author: Ziniu Lu (luziniuoskar@outlook.com)
*/
#pragma once
#include "project.h"
BEGIN_PROJECT_NAMESPACE
struct MESH_FILE
{
std::string folder_path;
std::string name;
};
struct REMESHING
{
double remeshing_edge_length = 1;
size_t remeshing_nr_iter = 3;
std::string remeshing_out_suffix = "_rem.off";
};
struct STITCH
{
double obj_scale = 1;
double stitch_width = 0.96;
double stitch_height = 0.42;
double layer0_offset = 1;
};
struct VIEWER
{
float point_size_default = 1;
float line_width_default = 1;
float point_size_mesh = 1;
float line_width_mesh = 1;
float point_size_skel = 5;
float line_width_skel = 5;
float point_size_skel_map = 1;
float line_width_skel_map = 1;
float point_size_skel_ext = 5;
float line_width_skel_ext = 5;
float point_size_stitch = 5;
float line_width_stitch = 5;
};
struct SKEL_OUT
{
std::string out_file_suffix = ".obj";
std::string out_suffix_skel = "_skel";
std::string out_suffix_skel_map = "_skel_map";
std::string out_suffix_skel_ext = "_skel_ext";
};
struct Settings
{
std::string root_path; // root directory of current solution
MESH_FILE File; // file name of 3d mesh, read from Settings.csv
REMESHING Remeshing;
STITCH Stitch;
VIEWER Viewer;
SKEL_OUT Skel_out;
bool load(size_t& output);
void print(size_t& output);
};
END_PROJECT_NAMESPACE
extern PROJECT_NAME::Settings* settings;