Remove dependancy on eigen

This commit is contained in:
Matt Keeter 2014-03-07 13:22:03 -06:00
parent 772e8a23d5
commit fc0f4d267c
4 changed files with 68 additions and 50 deletions

View file

@ -1,6 +1,8 @@
#include <QMouseEvent>
#include <QDebug>
#include <cmath>
#include "canvas.h"
#include "backdrop.h"
#include "glmesh.h"
@ -21,6 +23,7 @@ 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;
@ -28,7 +31,7 @@ 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;