667 |
khor |
1 |
/* ----------------------------------------------------------------------- *
|
|
|
2 |
* This file is part of GEL, http://www.imm.dtu.dk/GEL
|
|
|
3 |
* Copyright (C) the authors and DTU Informatics
|
|
|
4 |
* For license and list of authors, see ../../doc/intro.pdf
|
|
|
5 |
* ----------------------------------------------------------------------- */
|
|
|
6 |
|
|
|
7 |
/**
|
|
|
8 |
* @file Geometry/obj_load.h
|
|
|
9 |
* @brief Load a Wavefront OBJ file into a triangle mesh.
|
|
|
10 |
*/
|
|
|
11 |
|
|
|
12 |
#ifndef __GEOMETRY_TRIMESH_FUNCTIONS_H__
|
|
|
13 |
#define __GEOMETRY_TRIMESH_FUNCTIONS_H__
|
|
|
14 |
|
|
|
15 |
#include <string>
|
|
|
16 |
#include <vector>
|
|
|
17 |
#include "TriMesh.h"
|
|
|
18 |
|
|
|
19 |
namespace Geometry
|
|
|
20 |
{
|
|
|
21 |
/// Load a TriMesh from an OBJ file
|
|
|
22 |
void obj_load(const std::string &filename, TriMesh &mesh);
|
|
|
23 |
|
|
|
24 |
/// Load materials from an MRL file
|
|
|
25 |
void mtl_load(const std::string& filename, std::vector<Material>& materials);
|
|
|
26 |
}
|
|
|
27 |
|
|
|
28 |
#endif
|