--- a/src/linetypes/triangle.cpp Mon Mar 09 22:12:50 2020 +0200 +++ b/src/linetypes/triangle.cpp Mon Mar 09 23:42:26 2020 +0200 @@ -10,7 +10,13 @@ { } -ldraw::Triangle::Triangle(const QVector<glm::vec3>& vertices, const Color color) : +ldraw::Triangle::Triangle(const std::array<glm::vec3, 3>& vertices, const Color color) : + ColoredObject{color}, + points{vertices[0], vertices[1], vertices[2]} +{ +} + +ldraw::Triangle::Triangle(const glm::vec3 (&vertices)[3], const Color color) : ColoredObject{color}, points{vertices[0], vertices[1], vertices[2]} {