diff -r cef43609a374 -r 0133e565e072 src/linetypes/quadrilateral.cpp --- 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& 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)); +}