src/linetypes/edge.cpp

changeset 141
185eb297dc1e
parent 132
488d0ba6070b
child 158
5bd755eaa5a8
--- 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]));
+}

mercurial