src/linetypes/triangle.cpp

changeset 21
0133e565e072
parent 18
918b6c0f8b5b
child 26
3a9e761e4faa
equal deleted inserted replaced
20:cef43609a374 21:0133e565e072
55 return utility::format("%1 %2 %3", 55 return utility::format("%1 %2 %3",
56 vertexToStringParens(points[0]), 56 vertexToStringParens(points[0]),
57 vertexToStringParens(points[1]), 57 vertexToStringParens(points[1]),
58 vertexToStringParens(points[2])); 58 vertexToStringParens(points[2]));
59 } 59 }
60
61 void linetypes::Triangle::getPolygons(
62 std::vector<gl::Polygon>& polygons,
63 GetPolygonsContext* context) const
64 {
65 Q_UNUSED(context)
66 polygons.push_back(gl::triangle(
67 this->points[0],
68 this->points[1],
69 this->points[2],
70 this->colorIndex,
71 this->id));
72 }

mercurial