Reinstate min/max methods
This commit is contained in:
parent
fc0f4d267c
commit
cef3c92b11
3 changed files with 52 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue