-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathndefs.h
71 lines (41 loc) · 850 Bytes
/
ndefs.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
#include <fstream>
#include <algorithm>
#include <vector>
#include <set>
#include <stack>
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
class face { // face of the input polyhedron
public:
unsigned int orientation;
bool visited;
vector<int> nodes;
// vector<int> dir; // the directions of the edges
face() {
visited=false;
}
};
class edge {
public:
int face1;
int face2; // the two faces incident on the edge
int dir1;
int dir2; // the directions the edge is in the two faces
int index; // index of the bigger vertex
edge(int in) {
index=in;
}
};
class vertex {
public:
double x;
double y;
double z;
vertex(double px,double py,double pz) {
x=px;
y=py;
z=pz;
}
};