Add LoadMask to OFF importer

This commit is contained in:
Massimiliano Corsini 2006-03-29 08:14:20 +00:00
parent 309fa30451
commit 733bdcbc78
1 changed files with 7 additions and 4 deletions

View File

@ -25,6 +25,9 @@
History
$Log: not supported by cvs2svn $
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
Revision 1.2 2006/01/13 15:47:42 cignoni
Uniformed return type to the style of Open. Now every export function returns 0 in case of success.
@ -41,7 +44,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>
@ -107,8 +110,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;
@ -126,7 +129,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";
}