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 } |