-
Notifications
You must be signed in to change notification settings - Fork 13
/
globaldef.h
executable file
·146 lines (130 loc) · 3.97 KB
/
globaldef.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/*
* Software License Agreement (BSD License)
*
* Xin Wang
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* * Neither the name of the copyright holder(s) nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* Author : Xin Wang
* Email : [email protected]
*
*/
#pragma once
#include <vector>
#define EXIT_CODE_REBOOT -123456789
#define CLOUDXYZ 1
#define CLOUDXYZRGB 2
#define CLOUDXYZI 3
#define EPSILON 0.0000001
#define TWOPI 6.283185307179586476925287
#define STATUS_READY 100
#define STATUS_OPENPCD 101
#define STATUS_RESAMPLE 102
#define STATUS_DOWNSAMPLE 103
#define STATUS_KNNORMAL 104
#define STATUS_RANORMAL 105
#define STATUS_STATICRO 106
#define STATUS_RGS 107
#define STATUS_SAVECLUSTERS 108
#define STATUS_OPENXYZ 109
#define STATUS_SAVEASCII 110
#define STATUS_SAVEBINARY 111
#define STATUS_SAVENORMALS 112
#define STATUS_SHOWPROCESS 113
#define STATUS_TESTING 114
#define STATUS_SHOWSFEATURE 115
#define STATUS_TRIANGULATION 116
#define STATUS_OPENCLUSTERS 117
#define STATUS_SHEARPARA 118
#define STATUS_SAVEPOLYGONMESH 119
#define STATUS_OPENPOLYGONMESH 120
#define STATUS_READNSHOWCLASSES 121
#define STATUS_MULTISTATION 122
#define STATUS_SAVEMESH 123
#define STATUS_LAGRANGETENSOR 124
#define STATUS_SAVETRACEMAP 125
#define FEATURE_ROUGHNESS 1001
#define FEATURE_AREA 1002
#define FEATURE_CURVATURE 1003
#define FEATURE_FRACTURE_CURVATURE 1004
#define FEATURE_FRACTURE_FACES 1005
#define FMAP_LOWER_BOUND 2001
#define FMAP_CIRCULAR 2002
#define FMAP_RECTANGULAR 2003
#define A_L_MODEL_LINEAR 3001
#define A_L_MODEL_SQRT 3002
#define FRACTURE_FEATURE_STRIATION 4001
#define FRACTURE_FEATURE_STEP 4002
struct RGSpara{
double curvature;
double smoothness;
double residual;
int number_of_neighbors;
int min_number_of_Points;
bool IsSmoothMode;
};
struct TriangulationPara{
int knNeighbors;
double searchRadius;
double Mu;
int maxNearestNeighbors;
double maxSurfaceAngle;
double minAngle;
double maxAngle;
bool normalConsistancy;
};
struct FeaturePara{
int feature_type;
float percent_out;
};
struct Vector3f{
float x, y, z;
};
struct Striation{
float ratio;
Vector3f direction;
};
struct Step{
float ratio;
Vector3f facing_direc;
};
struct Line{
Vector3f begin;
Vector3f end;
float r;
float g;
float b;
std::string ID;
double f_p_angle;
};
struct WorkLine{
std::string command;
std::vector<std::string> parameters;
};