-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvertex.h
40 lines (34 loc) · 785 Bytes
/
vertex.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
#ifndef VERTEX
#define VERTEX
#include <QVector3D>
#include <QDebug>
// Forward declaration
class HalfEdge;
class Vertex {
public:
QVector3D coords;
QVector3D limitCoords = QVector3D();
HalfEdge* out;
unsigned short val;
unsigned int index;
unsigned short sharpness;
// Inline constructors
Vertex() {
// qDebug() << "Default Vertex Constructor";
coords = QVector3D();
limitCoords = QVector3D();
out = nullptr;
val = 0;
index = 0;
sharpness = 0;
}
Vertex(QVector3D vcoords, HalfEdge* vout, unsigned short vval, unsigned int vindex, float vsharpness = 0) {
//qDebug() << "QVector3D Vertex Constructor";
coords = vcoords;
out = vout;
val = vval;
index = vindex;
sharpness = vsharpness;
}
};
#endif // VERTEX