From 976853309555e0d31dc6fe0295e23d5cd836f64a Mon Sep 17 00:00:00 2001 From: ganovelli Date: Fri, 12 Mar 2010 14:58:02 +0000 Subject: [PATCH] (involuntary commit reverted) --- apps/sample/trimesh_QT/glarea.cpp | 123 +++++++-------------------- apps/sample/trimesh_QT/para_body.pro | 45 ---------- 2 files changed, 31 insertions(+), 137 deletions(-) delete mode 100755 apps/sample/trimesh_QT/para_body.pro diff --git a/apps/sample/trimesh_QT/glarea.cpp b/apps/sample/trimesh_QT/glarea.cpp index 38d86e30..8c2a372d 100644 --- a/apps/sample/trimesh_QT/glarea.cpp +++ b/apps/sample/trimesh_QT/glarea.cpp @@ -97,111 +97,50 @@ void GLArea::resizeGL (int w, int h) initializeGL(); } -vcg::Point3f EP_right_shoulder(float s_dx, float r, float r1, unsigned int N ,unsigned int i){ - float delta = (r-r1)*0.5/N; - if(ibbox.Center()); + // the trimesh drawing calls + switch(drawmode) + { + case SMOOTH: + glWrap.Draw (); + break; + case POINTS: + glWrap.Draw (); + break; + case WIRE: + glWrap.Draw (); + break; + case FLATWIRE: + glWrap.Draw (); + break; + case HIDDEN: + glWrap.Draw (); + break; + case FLAT: + glWrap.Draw (); + break; + default: + break; + } glPopMatrix(); - // track.DrawPostApply(); + track.DrawPostApply(); } void GLArea::keyReleaseEvent (QKeyEvent * e) diff --git a/apps/sample/trimesh_QT/para_body.pro b/apps/sample/trimesh_QT/para_body.pro deleted file mode 100755 index 6134c803..00000000 --- a/apps/sample/trimesh_QT/para_body.pro +++ /dev/null @@ -1,45 +0,0 @@ -# Base options -TEMPLATE = app -LANGUAGE = C++ - -# QT modules -QT += opengl - -# Executable name -TARGET = para_body - -# Directories -DESTDIR = . -UI_DIR = build/ui -MOC_DIR = build/moc -OBJECTS_DIR = build/obj - -# Lib headers -INCLUDEPATH += . -INCLUDEPATH += ../../../../../vcglib - -# Lib sources -SOURCES += ../../../../../vcglib/wrap/ply/plylib.cpp -SOURCES += ../../../../../vcglib/wrap/gui/trackball.cpp -SOURCES += ../../../../../vcglib/wrap/gui/trackmode.cpp - - -# Compile glew -DEFINES += GLEW_STATIC -INCLUDEPATH += ../../../../../code/lib/glew/include -SOURCES += ../../../../../code/lib/glew/src/glew.c - -# Awful problem with windows.. -win32{ - DEFINES += NOMINMAX -} - -# Input -HEADERS += mainwindow.h -HEADERS += glarea.h - -SOURCES += main.cpp -SOURCES += mainwindow.cpp -SOURCES += glarea.cpp - -FORMS += mainwindow.ui