-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVertexC.pde
39 lines (32 loc) · 823 Bytes
/
VertexC.pde
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
class VertexC
{
int[] posArr; // x, y, z values
int id;
VertexC nextVer, prevVer; // next and prev vertices of vertexlist
EdgeC duplicateEdge; // new edge to be added
boolean onhullF, processedF; // onhullF if point is on hull; processedF if it is already processed
// default constructor function
VertexC()
{
this(0, 0, 0);
}
// constructor function
VertexC(int posX, int posY, int posZ)
{
posArr = new int[3];
posArr[0] = posX;
posArr[1] = posY;
posArr[2] = posZ;
nextVer = prevVer = null;
duplicateEdge = null;
onhullF = false;
processedF = false;
}
// function to print vertex
String printVertex()
{
String str = "(" + posArr[0] + ", " + posArr[1] + ", " + posArr[2] + ")";
// println(str);
return str;
}
}