summaryrefslogtreecommitdiffstats
path: root/model.h
diff options
context:
space:
mode:
Diffstat (limited to 'model.h')
-rw-r--r--model.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/model.h b/model.h
index 545eedc..b1ef24e 100644
--- a/model.h
+++ b/model.h
@@ -15,6 +15,10 @@ public:
void render(bool wireframe = false, bool normals = false) const;
+ int triangles() const { return m_pointIndices.size() / 3; }
+ int edges() const { return m_edgeIndices.size() / 2; }
+ int points() const { return m_points.size(); }
+
private:
QVector<Point3d> m_points;
QVector<Point3d> m_normals;