This commit is contained in:
ganovelli 2013-03-08 09:07:25 +00:00
parent 383c16acd4
commit 5c7608030f
2 changed files with 3 additions and 5 deletions

View File

@ -71,8 +71,8 @@ void GLArea::initMesh(QString message)
// update bounding box
vcg::tri::UpdateBounding<CMesh>::Box(mesh);
// update Normals
vcg::tri::UpdateNormals<CMesh>::PerVertexNormalizedPerFace(mesh);
vcg::tri::UpdateNormals<CMesh>::PerFaceNormalized(mesh);
vcg::tri::UpdateNormal<CMesh>::PerVertexNormalizedPerFace(mesh);
vcg::tri::UpdateNormal<CMesh>::PerFaceNormalized(mesh);
// Initialize the opengl wrapper
glWrap.m = &mesh;
glWrap.Update();
@ -109,7 +109,7 @@ void GLArea::paintGL ()
track.center=vcg::Point3f(0, 0, 0);
track.radius= 1;
track.GetView();
track.Apply(false);
track.Apply();
glPushMatrix();
float d=1.0f/mesh.bbox.Diag();
vcg::glScale(d);

View File

@ -38,8 +38,6 @@ Initial release.
#include <QtOpenGL/QGLWidget>
/// vcg imports
#include <vcg/simplex/vertex/base.h>
#include <vcg/simplex/face/base.h>
#include <vcg/complex/complex.h>
#include <vcg/complex/algorithms/update/bounding.h>
#include <vcg/complex/algorithms/update/normal.h>