| 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 } |