src/linetypes/triangle.cpp

changeset 77
028798a72591
parent 35
98906a94732f
child 81
62373840e33a
equal deleted inserted replaced
76:7c4a63a02632 77:028798a72591
8 ColoredObject{color_index}, 8 ColoredObject{color_index},
9 points{point_1, point_2, point_3} 9 points{point_1, point_2, point_3}
10 { 10 {
11 } 11 }
12 12
13 ldraw::Triangle::Triangle(const QVector<glm::vec3>& vertices, const Color color) : 13 ldraw::Triangle::Triangle(const std::array<glm::vec3, 3>& vertices, const Color color) :
14 ColoredObject{color},
15 points{vertices[0], vertices[1], vertices[2]}
16 {
17 }
18
19 ldraw::Triangle::Triangle(const glm::vec3 (&vertices)[3], const Color color) :
14 ColoredObject{color}, 20 ColoredObject{color},
15 points{vertices[0], vertices[1], vertices[2]} 21 points{vertices[0], vertices[1], vertices[2]}
16 { 22 {
17 } 23 }
18 24

mercurial