62 { |
62 { |
63 return utility::format("%1 %2 %3 %4", |
63 return utility::format("%1 %2 %3 %4", |
64 vertexToStringParens(points[0]), |
64 vertexToStringParens(points[0]), |
65 vertexToStringParens(points[1]), |
65 vertexToStringParens(points[1]), |
66 vertexToStringParens(points[2]), |
66 vertexToStringParens(points[2]), |
67 vertexToStringParens(points[3])); |
67 vertexToStringParens(points[3])); |
68 } |
68 } |
|
69 |
|
70 void linetypes::Quadrilateral::getPolygons( |
|
71 std::vector<gl::Polygon>& polygons, |
|
72 GetPolygonsContext* context) const |
|
73 { |
|
74 Q_UNUSED(context) |
|
75 polygons.push_back(gl::quadrilateral( |
|
76 this->points[0], |
|
77 this->points[1], |
|
78 this->points[2], |
|
79 this->points[3], |
|
80 this->colorIndex, |
|
81 this->id)); |
|
82 } |