added support Export OBJ(base)

added comment line history
deleted bug-fix in meshio.pro in unix{ ... }
This commit is contained in:
Paolo Cignoni cignoni 2005-11-30 01:06:59 +00:00
parent 518c8ad3a5
commit d7f7fd9068
3 changed files with 38 additions and 11 deletions

View File

@ -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 <QtGui>
#include "meshio.h"
// temporaneamente prendo la versione corrente dalla cartella test
#include "../../test/io/import_obj.h"
#include "../../test/io/export_obj.h"
#include<vcg/complex/trimesh/update/bounding.h>
#include <QMessageBox>
@ -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<CMeshO>::Save(m,"La_Prova.obj",false,mask,cb);
}
return false;
}
Q_EXPORT_PLUGIN(ExtraMeshIOPlugin)

View File

@ -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

View File

@ -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
}