80:764381756899 | 81:62373840e33a |
---|---|
81 { | 81 { |
82 // 0 1 2 | 82 // 0 1 2 |
83 // -> 1 0 2 | 83 // -> 1 0 2 |
84 std::swap(this->points[0], this->points[1]); | 84 std::swap(this->points[0], this->points[1]); |
85 } | 85 } |
86 | |
87 int ldraw::Triangle::numPoints() const | |
88 { | |
89 return 3; | |
90 } | |
91 | |
92 const glm::vec3& ldraw::Triangle::getPoint(int index) const | |
93 { | |
94 if (index >= 0 and index < 3) | |
95 { | |
96 return this->points[index]; | |
97 } | |
98 else | |
99 { | |
100 return ldraw::ColoredObject::getPoint(index); | |
101 } | |
102 } |