src/linetypes/triangle.h

changeset 1186
eae8b3bce545
parent 1148
96cb15a7611f
equal deleted inserted replaced
1185:c2e0db52ea07 1186:eae8b3bce545
37 int triangleCount() const override; 37 int triangleCount() const override;
38 int numVertices() const override { return 3; } 38 int numVertices() const override { return 3; }
39 QString typeName() const override { return "triangle"; } 39 QString typeName() const override { return "triangle"; }
40 40
41 protected: 41 protected:
42 friend class Model; 42 friend class ResourceVector<LDObject>;
43 LDTriangle (Model* model); 43 LDTriangle (Model* model);
44 LDTriangle (Vertex const& v1, Vertex const& v2, Vertex const& v3, Model* model = nullptr); 44 LDTriangle (Vertex const& v1, Vertex const& v2, Vertex const& v3, Model* model = nullptr);
45 }; 45 };

mercurial