src/linetypes/edge.cpp

changeset 141
185eb297dc1e
parent 132
488d0ba6070b
child 158
5bd755eaa5a8
equal deleted inserted replaced
140:2f383e88acf4 141:185eb297dc1e
18 18
19 ldraw::Object::Type ldraw::Edge::typeIdentifier() const 19 ldraw::Object::Type ldraw::Edge::typeIdentifier() const
20 { 20 {
21 return Type::EdgeLine; 21 return Type::EdgeLine;
22 } 22 }
23
24 QString ldraw::Edge::toLDrawCode() const
25 {
26 return utility::format(
27 "2 %1 %2 %3",
28 this->colorIndex.index,
29 utility::vertexToString(this->points[0]),
30 utility::vertexToString(this->points[1]));
31 }

mercurial