Reinstate min/max methods

This commit is contained in:
Matt Keeter 2014-03-08 13:47:51 -08:00
parent fc0f4d267c
commit cef3c92b11
3 changed files with 52 additions and 23 deletions

View file

@ -23,7 +23,6 @@ Canvas::~Canvas()
void Canvas::load_mesh(Mesh* m)
{
mesh = new GLMesh(m);
/*
center = QVector3D(m->xmin() + m->xmax(),
m->ymin() + m->ymax(),
m->zmin() + m->zmax()) / 2;
@ -31,7 +30,6 @@ void Canvas::load_mesh(Mesh* m)
pow(m->xmax() - m->xmin(), 2) +
pow(m->ymax() - m->ymin(), 2) +
pow(m->zmax() - m->zmin(), 2));
*/
update();
delete m;