summaryrefslogtreecommitdiffstats
path: root/model.h
blob: 545eedc5f2044ec6e1e127edd5fe37f6ccc128c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef MODEL_H
#define MODEL_H

#include <QVector>

#include <math.h>

#include "point3d.h"

class Model
{
public:
    Model() {}
    Model(const QString &filename);

    void render(bool wireframe = false, bool normals = false) const;

private:
    QVector<Point3d> m_points;
    QVector<Point3d> m_normals;
    QVector<int> m_edgeIndices;
    QVector<int> m_pointIndices;
};

#endif