src/linetypes/edge.cpp

changeset 21
0133e565e072
parent 18
918b6c0f8b5b
child 33
4c41bfe2ec6e
equal deleted inserted replaced
20:cef43609a374 21:0133e565e072
46 46
47 QString linetypes::Edge::textRepresentation() const 47 QString linetypes::Edge::textRepresentation() const
48 { 48 {
49 return utility::format("%1 %2", vertexToStringParens(point_1), vertexToStringParens(point_2)); 49 return utility::format("%1 %2", vertexToStringParens(point_1), vertexToStringParens(point_2));
50 } 50 }
51
52 void linetypes::Edge::getPolygons(
53 std::vector<gl::Polygon>& polygons,
54 GetPolygonsContext* context) const
55 {
56 Q_UNUSED(context)
57 polygons.push_back(gl::edgeLine(this->point_1, this->point_2, this->colorIndex, this->id));
58 }

mercurial