Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Static Public Member Functions | List of all members
MeshLoader Class Reference

#include <MeshLoader.h>

Static Public Member Functions

static void loadCollada (const std::string &path, Mesh *mesh, bool loadNormals=false, bool loadTexCoords=false, bool loadColors=false, bool loadTextures=false)
 
static void loadCollada (const std::string &path, Mesh *mesh, const MeshLoadDescription &descr)
 

Detailed Description

Loads meshes from a COLLADA file

Member Function Documentation

void MeshLoader::loadCollada ( const std::string &  path,
Mesh mesh,
bool  loadNormals = false,
bool  loadTexCoords = false,
bool  loadColors = false,
bool  loadTextures = false 
)
static

legacy, use MeshLoadDescription instead.

void MeshLoader::loadCollada ( const std::string &  path,
Mesh mesh,
const MeshLoadDescription descr 
)
static

Loads a mesh from a COLLADA file. The entire scene graph in the file is flattened to provide a single mesh. Vertex positions are always loaded, optionally normals, texture coordinates and vertex colors are loaded too. If vertex colors are present in the file, they are loaded, otherwise the diffuse color of materials in the file is used. If neither is present, all vertex colors are set to white. If specified in descr, the origin of the mesh is moved.

Parameters
pathpath of the model file relative to the models/ folder
[out]meshstores the loaded mesh
descrProvides options for the loading operation.

The documentation for this class was generated from the following files: