diff -r 2f383e88acf4 -r 185eb297dc1e src/linetypes/quadrilateral.cpp --- a/src/linetypes/quadrilateral.cpp Mon Sep 27 21:04:45 2021 +0300 +++ b/src/linetypes/quadrilateral.cpp Tue Sep 28 00:10:29 2021 +0300 @@ -34,3 +34,14 @@ { return Type::Quadrilateral; } + +QString ldraw::Quadrilateral::toLDrawCode() const +{ + return utility::format( + "4 %1 %2 %3 %4 %5", + this->colorIndex.index, + utility::vertexToString(this->points[0]), + utility::vertexToString(this->points[1]), + utility::vertexToString(this->points[2]), + utility::vertexToString(this->points[3])); +}