src/document.h

changeset 223
ce81db996275
parent 222
72b456f2f3c2
child 228
948867719906
--- 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<glm::vec3> 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<ModelAction> actions() const;
 	void closeShape();
-	void updatePreviewPolygon();
 	void removeLastPoint();
+	bool isCloseToExistingPoints() const;
 };

mercurial