From d7f7fd906827263d71a7964e1dec6f43d3a64e1b Mon Sep 17 00:00:00 2001 From: Paolo Cignoni cignoni Date: Wed, 30 Nov 2005 01:06:59 +0000 Subject: [PATCH] added support Export OBJ(base) added comment line history deleted bug-fix in meshio.pro in unix{ ... } --- src/meshlabplugins/meshio/meshio.cpp | 32 +++++++++++++++++++++------- src/meshlabplugins/meshio/meshio.h | 11 ++++++++++ src/meshlabplugins/meshio/meshio.pro | 6 +++--- 3 files changed, 38 insertions(+), 11 deletions(-) diff --git a/src/meshlabplugins/meshio/meshio.cpp b/src/meshlabplugins/meshio/meshio.cpp index c4b49dbbc..9deae64c2 100644 --- a/src/meshlabplugins/meshio/meshio.cpp +++ b/src/meshlabplugins/meshio/meshio.cpp @@ -18,11 +18,26 @@ ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ****************************************************************************/ +i/**************************************************************************** + History + + $Log$ + Revision 1.7 2005/11/30 01:06:59 fmazzant + added support Export OBJ(base) + added comment line history + deleted bug-fix in meshio.pro in unix{ ... } + + + + *****************************************************************************/ + #include #include "meshio.h" // temporaneamente prendo la versione corrente dalla cartella test #include "../../test/io/import_obj.h" +#include "../../test/io/export_obj.h" + #include #include @@ -87,15 +102,16 @@ bool ExtraMeshIOPlugin::open( return false; } -bool ExtraMeshIOPlugin::save( - const QString &format, - QString &fileName, - MeshModel &m, - int mask, - vcg::CallBackPos *cb, - QWidget *parent) +bool ExtraMeshIOPlugin::save(const QString &format,QString &fileName, MeshModel &m, int mask, vcg::CallBackPos *cb, QWidget *parent) { - return false; + //TODO: aggiungere la possibilita' di selezionare la maschera + //TODO: trattare i casi di errore aprendo una dialog + //TODO: ed antro ancora.....:) + if(format == tr("Export OBJ")) + { + return result = vcg::tri::io::ExporterOBJ::Save(m,"La_Prova.obj",false,mask,cb); + } + return false; } Q_EXPORT_PLUGIN(ExtraMeshIOPlugin) diff --git a/src/meshlabplugins/meshio/meshio.h b/src/meshlabplugins/meshio/meshio.h index a071f2db7..270ff9131 100644 --- a/src/meshlabplugins/meshio/meshio.h +++ b/src/meshlabplugins/meshio/meshio.h @@ -18,7 +18,18 @@ ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ****************************************************************************/ +/**************************************************************************** + History + $Log$ + Revision 1.6 2005/11/30 01:06:59 fmazzant + added support Export OBJ(base) + added comment line history + deleted bug-fix in meshio.pro in unix{ ... } + + + + *****************************************************************************/ #ifndef EXTRAIOPLUGIN_H #define EXTRAIOPLUGIN_H diff --git a/src/meshlabplugins/meshio/meshio.pro b/src/meshlabplugins/meshio/meshio.pro index 474c80b46..52caf1498 100644 --- a/src/meshlabplugins/meshio/meshio.pro +++ b/src/meshlabplugins/meshio/meshio.pro @@ -9,9 +9,9 @@ DESTDIR = ../../meshlab/plugins # the awful min/max macros of windows and the limits max win32:DEFINES += NOMINMAX unix{ - QMAKE_CC = gcc-3.3 - QMAKE_CXX = g++-3.3 - QMAKE_LINK = gcc-3.3 + QMAKE_CC = gcc + QMAKE_CXX = g++ + QMAKE_LINK = gcc CONFIG += debug warn_off }