-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata_types.h
More file actions
104 lines (70 loc) · 1.98 KB
/
data_types.h
File metadata and controls
104 lines (70 loc) · 1.98 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
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
class point2D{
public:
double x_val,y_val ;
bool visible;
point2D(double m , double n , bool q);
};
class point3D{
public:
double x_val,y_val,z_val;
point3D(double m , double n , double o);
point3D* duplicate();
void rotate( double x , double y , double z , double ab_x , double ab_y , double ab_z);
point3D* rotate_new( double x , double y , double z , double ab_x , double ab_y , double ab_z);
};
class ad_list{
public:
bool** points ;
int length ;
ad_list(int m);
bool edge_exists(int a , int b );
void set_edge(int a , int b );
void swap_num(int a , int b);
};
class tr_plane {
public:
double* coe ;//with fixed z coeff sign
point3D** set ;
int set_length ;
static double max(double m , double n);
static double min(double m , double n);
tr_plane(point3D** in_order, int start , int end );
tr_plane(point3D** in_order, int* po);
bool above(point3D* p);
bool on_plane(point3D* p);
static bool meet(point3D* point ,point3D* p1 ,point3D* p2 );
bool visible(point3D* point);
};
class array{
public:
int i ;
tr_plane** j ;
int j_length;
array(int m);
void add_pl(tr_plane* m);
bool visible(point3D* point);
};
class Structure2D{
public:
point2D** points ;
int points_num ;
ad_list* ad ;
ad_list* visi;
int current ;
Structure2D(int a);
void set_ad(ad_list* a );
void addpoint3D(point3D* m, bool visi);
};
class Structure3D{
public:
point3D** points ;
int points_num ;
ad_list* ad ;
int current ;
Structure3D(int a);
void set_ad(ad_list* a );
void addpoint2D(point2D* t, point2D*f ,point2D* s);
void swap(int a , int b );
Structure3D* rotate_new(double x , double y , double z );
};
int** facedetection(Structure3D* Image_3d) ;