src/linetypes/triangle.cpp

changeset 77
028798a72591
parent 35
98906a94732f
child 81
62373840e33a
--- 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]}
 {

mercurial