Commit 4c547a0f authored by Janis Born's avatar Janis Born

add a geometry loader for the Virtual Aachen (VAP) file format

parent 1c7dd000
......@@ -35,6 +35,10 @@ SharedGeometryData loadGeometryData(const std::string& _filename);
//! face normals are computed from the geometry
SharedGeometryData loadGeometryDataFromOBJ(const std::string& _filename, bool _computeNormals = true);
//! Loads from a VirtualAachen project (VAP) file. If _computeNormals and the mesh had no normals stored,
//! face normals are computed from the geometry
SharedGeometryData loadGeometryDataFromVAP(const std::string& _filename, bool _computeNormals = true);
///////////////////////////////////////////////////////////////////////////////////////////////////
// library specific save
///////////////////////////////////////////////////////////////////////////////////////////////////
......
......@@ -25,10 +25,14 @@ SharedGeometryData loadGeometryData(const std::string& _filename)
// lower case file ending:
std::string fileEnding = Base::FileHelpers::getFileEnding(_filename);
if (fileEnding == "obj")
if(fileEnding == "obj")
{
return loadGeometryDataFromOBJ(_filename);
}
else if(fileEnding == "vap")
{
return loadGeometryDataFromVAP(_filename);
}
else
{
error() << "geometry file format of " << _filename << " not supported" << std::endl;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment