54 X, |
54 X, |
55 Y, |
55 Y, |
56 Z |
56 Z |
57 }; |
57 }; |
58 |
58 |
|
59 enum class Winding |
|
60 { |
|
61 CW, |
|
62 CCW, |
|
63 None |
|
64 }; |
|
65 |
|
66 inline void invertWinding (Winding& winding) |
|
67 { |
|
68 if (winding == Winding::CW) |
|
69 winding = Winding::CCW; |
|
70 elif (winding == Winding::CCW) |
|
71 winding = Winding::CW; |
|
72 } |
|
73 |
59 // |
74 // |
60 // Derivative of QVector3D: this class is used for the vertices. |
75 // Derivative of QVector3D: this class is used for the vertices. |
61 // |
76 // |
62 class Vertex : public QVector3D |
77 class Vertex : public QVector3D |
63 { |
78 { |