src/linetypes/triangle.h

changeset 1269
ec691d9472b3
parent 1263
0256edecda54
child 1326
69a90bd2dba2
--- a/src/linetypes/triangle.h	Sat Mar 03 17:59:56 2018 +0200
+++ b/src/linetypes/triangle.h	Mon Mar 05 22:40:34 2018 +0200
@@ -27,18 +27,16 @@
 public:
 	static constexpr LDObjectType SubclassType = LDObjectType::Triangle;
 
+	LDTriangle() = default;
+	LDTriangle(Vertex const& v1, Vertex const& v2, Vertex const& v3);
+
 	virtual LDObjectType type() const override
 	{
-		return SubclassType;
+		return LDObjectType::Triangle;
 	}
 
 	virtual QString asText() const override;
 	int triangleCount(DocumentManager*) const override;
 	int numVertices() const override { return 3; }
 	QString typeName() const override { return "triangle"; }
-
-protected:
-	friend class Model;
-	LDTriangle (Model* model);
-	LDTriangle (Vertex const& v1, Vertex const& v2, Vertex const& v3, Model* model = nullptr);
 };

mercurial