84 { |
84 { |
85 this->previewPolygon.resize(this->polygon.size() + 1); |
85 this->previewPolygon.resize(this->polygon.size() + 1); |
86 this->previewPolygon.back() = this->previewPoint; |
86 this->previewPolygon.back() = this->previewPoint; |
87 if (this->previewPolygon.size() > 2) |
87 if (this->previewPolygon.size() > 2) |
88 { |
88 { |
89 this->isconcave = not geom::convex(this->previewPolygon); |
89 this->isconcave = not geom::isConvex(this->previewPolygon); |
90 } |
90 } |
91 } |
91 } |
92 |
92 |
93 void DrawTool::reset() |
93 void DrawTool::reset() |
94 { |
94 { |