Subversion Repositories gelsvn

Rev

Rev 510 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 510 Rev 595
-
 
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
 
1
#ifndef __GEOMETRY_TRIMESH_FUNCTIONS_H__
12
#ifndef __GEOMETRY_TRIMESH_FUNCTIONS_H__
2
#define __GEOMETRY_TRIMESH_FUNCTIONS_H__
13
#define __GEOMETRY_TRIMESH_FUNCTIONS_H__
3
 
14
 
4
#include <string>
15
#include <string>
5
#include <vector>
16
#include <vector>
6
#include "TriMesh.h"
17
#include "TriMesh.h"
7
 
18
 
8
namespace Geometry
19
namespace Geometry
9
{
20
{
10
	/// Load a TriMesh from an OBJ file
21
	/// Load a TriMesh from an OBJ file
11
	void obj_load(const std::string &filename, TriMesh &mesh);
22
	void obj_load(const std::string &filename, TriMesh &mesh);
12
 
23
 
13
  /// Load materials from an MRL file
24
  /// Load materials from an MRL file
14
  void mtl_load(const std::string& filename, std::vector<Material>& materials);
25
  void mtl_load(const std::string& filename, std::vector<Material>& materials);
15
}
26
}
16
 
27
 
17
#endif
28
#endif
18
 
29