--- a/src/linetypes/conditionaledge.cpp Wed Mar 11 19:05:34 2020 +0200 +++ b/src/linetypes/conditionaledge.cpp Tue Mar 17 23:13:29 2020 +0200 @@ -54,3 +54,21 @@ utility::vertexToStringParens(controlPoint_1), utility::vertexToStringParens(controlPoint_2)); } + +int ldraw::ConditionalEdge::numPoints() const +{ + return 4; +} + +const glm::vec3& ldraw::ConditionalEdge::getPoint(int index) const +{ + switch(index) + { + case 3: + return this->controlPoint_1; + case 4: + return this->controlPoint_2; + default: + return ldraw::Edge::getPoint(index); + } +}