updated
This commit is contained in:
parent
383c16acd4
commit
5c7608030f
|
@ -71,8 +71,8 @@ void GLArea::initMesh(QString message)
|
||||||
// update bounding box
|
// update bounding box
|
||||||
vcg::tri::UpdateBounding<CMesh>::Box(mesh);
|
vcg::tri::UpdateBounding<CMesh>::Box(mesh);
|
||||||
// update Normals
|
// update Normals
|
||||||
vcg::tri::UpdateNormals<CMesh>::PerVertexNormalizedPerFace(mesh);
|
vcg::tri::UpdateNormal<CMesh>::PerVertexNormalizedPerFace(mesh);
|
||||||
vcg::tri::UpdateNormals<CMesh>::PerFaceNormalized(mesh);
|
vcg::tri::UpdateNormal<CMesh>::PerFaceNormalized(mesh);
|
||||||
// Initialize the opengl wrapper
|
// Initialize the opengl wrapper
|
||||||
glWrap.m = &mesh;
|
glWrap.m = &mesh;
|
||||||
glWrap.Update();
|
glWrap.Update();
|
||||||
|
@ -109,7 +109,7 @@ void GLArea::paintGL ()
|
||||||
track.center=vcg::Point3f(0, 0, 0);
|
track.center=vcg::Point3f(0, 0, 0);
|
||||||
track.radius= 1;
|
track.radius= 1;
|
||||||
track.GetView();
|
track.GetView();
|
||||||
track.Apply(false);
|
track.Apply();
|
||||||
glPushMatrix();
|
glPushMatrix();
|
||||||
float d=1.0f/mesh.bbox.Diag();
|
float d=1.0f/mesh.bbox.Diag();
|
||||||
vcg::glScale(d);
|
vcg::glScale(d);
|
||||||
|
|
|
@ -38,8 +38,6 @@ Initial release.
|
||||||
#include <QtOpenGL/QGLWidget>
|
#include <QtOpenGL/QGLWidget>
|
||||||
|
|
||||||
/// vcg imports
|
/// vcg imports
|
||||||
#include <vcg/simplex/vertex/base.h>
|
|
||||||
#include <vcg/simplex/face/base.h>
|
|
||||||
#include <vcg/complex/complex.h>
|
#include <vcg/complex/complex.h>
|
||||||
#include <vcg/complex/algorithms/update/bounding.h>
|
#include <vcg/complex/algorithms/update/bounding.h>
|
||||||
#include <vcg/complex/algorithms/update/normal.h>
|
#include <vcg/complex/algorithms/update/normal.h>
|
||||||
|
|
Loading…
Reference in New Issue