Uncommented obj export. Now obj saving is enabled by default

This commit is contained in:
Paolo Cignoni 2006-07-09 05:32:15 +00:00
parent ff4d9d011d
commit 3c322d2206
1 changed files with 7 additions and 4 deletions

View File

@ -25,6 +25,9 @@
History
$Log: not supported by cvs2svn $
Revision 1.4 2006/03/29 08:14:20 corsini
Add LoadMask to OFF importer
Revision 1.3 2006/02/16 19:28:36 fmazzant
transfer of Export_3ds.h, Export_obj.h, Io_3ds_obj_material.h from Meshlab to vcg
@ -44,7 +47,7 @@ Initial Commit
#include <wrap/io_trimesh/export_stl.h>
#include <wrap/io_trimesh/export_off.h>
#include <wrap/io_trimesh/export_dxf.h>
//#include <wrap/io_trimesh/export_obj.h>
#include <wrap/io_trimesh/export_obj.h>
#include <locale>
@ -110,8 +113,8 @@ static int Save(OpenMeshType &m, const char *filename, const int mask, CallBackP
}
else if(FileExtension(filename,"obj"))
{
//err = ExporterOBJ<OpenMeshType>::Save(m,filename,mask,cb);
//LastType()=KT_OBJ;
err = ExporterOBJ<OpenMeshType>::Save(m,filename,mask,cb);
LastType()=KT_OBJ;
}
else {
err=1;
@ -129,7 +132,7 @@ static const char *ErrorMsg(int error)
case KT_STL : return ExporterSTL<OpenMeshType>::ErrorMsg(error); break;
case KT_OFF : return ExporterOFF<OpenMeshType>::ErrorMsg(error); break;
case KT_DXF : return ExporterDXF<OpenMeshType>::ErrorMsg(error); break;
// case KT_OBJ : return ExporterOBJ<OpenMeshType>::ErrorMsg(error); break;
case KT_OBJ : return ExporterOBJ<OpenMeshType>::ErrorMsg(error); break;
}
return "Unknown type";
}