summaryrefslogtreecommitdiffstats
path: root/model.h
diff options
context:
space:
mode:
Diffstat (limited to 'model.h')
-rw-r--r--model.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/model.h b/model.h
index ed759b7..be7881a 100644
--- a/model.h
+++ b/model.h
@@ -1,6 +1,7 @@
#ifndef MODEL_H
#define MODEL_H
+#include <QString>
#include <QVector>
#include <math.h>
@@ -11,15 +12,17 @@ class Model
{
public:
Model() {}
- Model(const QString &filename);
+ Model(const QString &filePath);
void render(bool wireframe = false, bool normals = false) const;
+ QString fileName() const { return m_fileName; }
int faces() const { return m_pointIndices.size() / 3; }
int edges() const { return m_edgeIndices.size() / 2; }
int points() const { return m_points.size(); }
private:
+ QString m_fileName;
QVector<Point3d> m_points;
QVector<Point3d> m_normals;
QVector<int> m_edgeIndices;