Rev 511 | Rev 572 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
/* ----------------------------------------------------------------------- *
* This file is part of GEL, www.imm.dtu.dk/GEL
* Copyright (C) the authors (see AUTHORS.txt) and DTU Informatics
*
* Principal authors:
* Christian Thode Larsen (thode2d@gmail.com)
* J. Andreas Baerentzen (jab@imm.dtu.dk)
*
* See LICENSE.txt for licensing information
* ----------------------------------------------------------------------- */
#include "load.h"
#include "Manifold.h"
#include "ply_load.h"
#include "x3d_load.h"
#include "obj_load.h"
#include "off_load.h"
namespace HMesh
{
using std::string;
bool load(const string& file_name, Manifold& mani)
{
if(file_name == ""){
return false;
}
if(file_name.substr(file_name.length()-4,file_name.length())==".obj"){
return obj_load(file_name, mani);
}
else if(file_name.substr(file_name.length()-4,file_name.length())==".x3d"){
return x3d_load(file_name, mani);
}
else if(file_name.substr(file_name.length()-4,file_name.length())==".ply"){
return ply_load(file_name, mani);
}
else if(file_name.substr(file_name.length()-4,file_name.length())==".off"){
return off_load(file_name, mani);
}
return false;
}
}
Generated by GNU Enscript 1.6.6.