diff -r 72b456f2f3c2 -r ce81db996275 src/document.h --- a/src/document.h Tue Jun 14 23:04:49 2022 +0300 +++ b/src/document.h Wed Jun 15 12:17:29 2022 +0300 @@ -50,7 +50,7 @@ { Q_OBJECT std::vector polygon = {{0, 0, 0}}; - bool isconcave = false; + std::size_t numpoints = 1; EditingMode mode = SelectMode; glm::mat4 mvpMatrix; glm::mat4 gridMatrix{1}; @@ -76,6 +76,6 @@ private: const std::vector actions() const; void closeShape(); - void updatePreviewPolygon(); void removeLastPoint(); + bool isCloseToExistingPoints() const; };