src/linetypes/quadrilateral.cpp

changeset 21
0133e565e072
parent 18
918b6c0f8b5b
child 26
3a9e761e4faa
--- a/src/linetypes/quadrilateral.cpp	Sat Dec 14 23:00:01 2019 +0200
+++ b/src/linetypes/quadrilateral.cpp	Wed Jan 01 17:45:56 2020 +0200
@@ -64,5 +64,19 @@
 		vertexToStringParens(points[0]),
 		vertexToStringParens(points[1]),
 		vertexToStringParens(points[2]),
-		vertexToStringParens(points[3]));
+			vertexToStringParens(points[3]));
 }
+
+void linetypes::Quadrilateral::getPolygons(
+	std::vector<gl::Polygon>& polygons,
+	GetPolygonsContext* context) const
+{
+	Q_UNUSED(context)
+	polygons.push_back(gl::quadrilateral(
+		this->points[0],
+		this->points[1],
+		this->points[2],
+		this->points[3],
+		this->colorIndex,
+		this->id));
+}

mercurial