From 5c7608030fa185ef688c3fb81ca392a2cf5a69d9 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 8 Mar 2013 09:07:25 +0000 Subject: [PATCH] updated --- apps/sample/trimesh_QT/glarea.cpp | 6 +++--- apps/sample/trimesh_QT/glarea.h | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apps/sample/trimesh_QT/glarea.cpp b/apps/sample/trimesh_QT/glarea.cpp index 8c2a372d..b539fb71 100644 --- a/apps/sample/trimesh_QT/glarea.cpp +++ b/apps/sample/trimesh_QT/glarea.cpp @@ -71,8 +71,8 @@ void GLArea::initMesh(QString message) // update bounding box vcg::tri::UpdateBounding::Box(mesh); // update Normals - vcg::tri::UpdateNormals::PerVertexNormalizedPerFace(mesh); - vcg::tri::UpdateNormals::PerFaceNormalized(mesh); + vcg::tri::UpdateNormal::PerVertexNormalizedPerFace(mesh); + vcg::tri::UpdateNormal::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); diff --git a/apps/sample/trimesh_QT/glarea.h b/apps/sample/trimesh_QT/glarea.h index 7c38fc37..1151ce63 100644 --- a/apps/sample/trimesh_QT/glarea.h +++ b/apps/sample/trimesh_QT/glarea.h @@ -38,8 +38,6 @@ Initial release. #include /// vcg imports -#include -#include #include #include #include