src/linetypes/conditionaledge.cpp

changeset 141
185eb297dc1e
parent 132
488d0ba6070b
child 158
5bd755eaa5a8
equal deleted inserted replaced
140:2f383e88acf4 141:185eb297dc1e
11 11
12 ldraw::Object::Type ldraw::ConditionalEdge::typeIdentifier() const 12 ldraw::Object::Type ldraw::ConditionalEdge::typeIdentifier() const
13 { 13 {
14 return Type::ConditionalEdge; 14 return Type::ConditionalEdge;
15 } 15 }
16
17 QString ldraw::ConditionalEdge::toLDrawCode() const
18 {
19 return utility::format(
20 "5 %1 %2 %3 %4 %5",
21 this->colorIndex.index,
22 utility::vertexToString(this->points[0]),
23 utility::vertexToString(this->points[1]),
24 utility::vertexToString(this->points[2]),
25 utility::vertexToString(this->points[3]));
26 }

mercurial