--- a/src/linetypes/edge.cpp Mon Sep 27 21:04:45 2021 +0300 +++ b/src/linetypes/edge.cpp Tue Sep 28 00:10:29 2021 +0300 @@ -20,3 +20,12 @@ { return Type::EdgeLine; } + +QString ldraw::Edge::toLDrawCode() const +{ + return utility::format( + "2 %1 %2 %3", + this->colorIndex.index, + utility::vertexToString(this->points[0]), + utility::vertexToString(this->points[1])); +}