diff --git a/apps/sample/trimesh_QT/glarea.cpp b/apps/sample/trimesh_QT/glarea.cpp index 8c2a372d..38d86e30 100644 --- a/apps/sample/trimesh_QT/glarea.cpp +++ b/apps/sample/trimesh_QT/glarea.cpp @@ -97,50 +97,111 @@ 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; - } + glPolygonMode(GL_FRONT,GL_LINE); + + + // disegna il modello + glDisable(GL_LIGHTING); + DrawBody(); 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 new file mode 100755 index 00000000..6134c803 --- /dev/null +++ b/apps/sample/trimesh_QT/para_body.pro @@ -0,0 +1,45 @@ +# 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