5 #include <QtOpenGL/QtOpenGL>
12 Mesh(std::vector<GLfloat> vertices, std::vector<GLuint> indices);
13 static Mesh* load_stl(const QString& filename);
15 float xmin() const { return vertices.row(0).minCoeff(); }
16 float xmax() const { return vertices.row(0).maxCoeff(); }
17 float ymin() const { return vertices.row(1).minCoeff(); }
18 float ymax() const { return vertices.row(1).maxCoeff(); }
19 float zmin() const { return vertices.row(2).minCoeff(); }
20 float zmax() const { return vertices.row(2).maxCoeff(); }
23 std::vector<GLfloat> vertices;
24 std::vector<GLuint> indices;