src/linetypes/conditionaledge.cpp

changeset 81
62373840e33a
parent 77
028798a72591
child 86
4bec0525ef1b
equal deleted inserted replaced
80:764381756899 81:62373840e33a
52 { 52 {
53 return Edge::textRepresentation() + utility::format("%1 %2", 53 return Edge::textRepresentation() + utility::format("%1 %2",
54 utility::vertexToStringParens(controlPoint_1), 54 utility::vertexToStringParens(controlPoint_1),
55 utility::vertexToStringParens(controlPoint_2)); 55 utility::vertexToStringParens(controlPoint_2));
56 } 56 }
57
58 int ldraw::ConditionalEdge::numPoints() const
59 {
60 return 4;
61 }
62
63 const glm::vec3& ldraw::ConditionalEdge::getPoint(int index) const
64 {
65 switch(index)
66 {
67 case 3:
68 return this->controlPoint_1;
69 case 4:
70 return this->controlPoint_2;
71 default:
72 return ldraw::Edge::getPoint(index);
73 }
74 }

mercurial