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 |