src/linetypes/triangle.cpp

changeset 26
3a9e761e4faa
parent 21
0133e565e072
child 33
4c41bfe2ec6e
equal deleted inserted replaced
25:6de5ac1fb471 26:3a9e761e4faa
66 polygons.push_back(gl::triangle( 66 polygons.push_back(gl::triangle(
67 this->points[0], 67 this->points[0],
68 this->points[1], 68 this->points[1],
69 this->points[2], 69 this->points[2],
70 this->colorIndex, 70 this->colorIndex,
71 this->id)); 71 this->id));
72 } 72 }
73
74 void linetypes::Triangle::invert()
75 {
76 // 0 1 2
77 // -> 1 0 2
78 std::swap(this->points[0], this->points[1]);
79 }

mercurial