-
Notifications
You must be signed in to change notification settings - Fork 77
/
Copy pathconfig.h
74 lines (67 loc) · 1.49 KB
/
config.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
64
65
66
67
68
69
70
71
72
73
74
#pragma once
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <cstring>
#include <math.h>
#include <limits>
#include <typeinfo>
#include <algorithm>
#include <assert.h>
#include <regex>
#include "shape.h"
namespace coacd
{
class Params
{
public:
/////////////// Basic Config ///////////////
string input_model;
string output_name;
string remesh_output_name;
int mcts_nodes;
double threshold;
unsigned int resolution;
unsigned int seed;
double rv_k;
string preprocess_mode;
int prep_resolution;
bool pca;
bool merge;
int max_convex_hull;
double dmc_thres;
string apx_mode;
bool decimate;
int max_ch_vertex;
bool extrude;
double extrude_margin;
/////////////// MCTS Config ///////////////
int mcts_iteration;
int mcts_max_depth;
Params()
{
input_model = "../model.obj";
output_name = "../output.obj";
remesh_output_name = "../remesh.obj";
mcts_nodes = 20;
threshold = 0.05;
resolution = 2000;
seed = 1234;
rv_k = 0.3;
preprocess_mode = "auto";
prep_resolution = 50;
pca = false;
merge = true;
dmc_thres = 0.55;
apx_mode = "ch";
decimate = false;
max_ch_vertex = 256;
extrude = false;
extrude_margin = 0.01;
mcts_iteration = 150;
mcts_max_depth = 3;
max_convex_hull = -1;
}
};
}