Skip to content

Instantly share code, notes, and snippets.

@sherief
Created October 15, 2013 22:54
Show Gist options
  • Save sherief/6999924 to your computer and use it in GitHub Desktop.
Save sherief/6999924 to your computer and use it in GitHub Desktop.
int main(int argc, const char * argv[])
{
Assimp::Importer importer;
unsigned int ppsteps =
aiProcess_FindInvalidData | // detect invalid model data, such as invalid normal vectors
0;
// And have it read the given file with some example postprocessing
// Usually - if speed is not the most important aspect for you - you'll
// propably to request more postprocessing than we do in this example.
const aiScene* scene = importer.ReadFile("untitled.dae",
ppsteps);
// If the import failed, report it
if(!scene)
{
return 1;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment