updated
This commit is contained in:
parent
383c16acd4
commit
5c7608030f
|
@ -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);
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue