meshing/IO.cpp
///Returns true if the extension is a file type that we can load from
Returns true if the extension is a file type that we can load from
Returns true if the extension is a file type that we can load from
bool CanLoadTriMeshExt(const char* ext)
{
  if(0==strcmp(ext,"tri")) return true;
  else if(0==strcmp(ext,"off")) return true;
  else {
#if HAVE_ASSIMP
    Assimp::Importer importer;
    string dext = "."+string(ext);
    return importer.IsExtensionSupported(dext.c_str());
#endif
  }
  return false;
}
bool CanLoadTriMeshExt ( const char * ext ) { if ( 0 == strcmp ( ext , " " ) ) return true ; else if ( 0 == strcmp ( ext , " " ) ) return true ; else { #if HAVE_ASSIMP Assimp :: Importer importer ; string dext = " " + string ( ext ) ; return importer . IsExtensionSupported ( dext . c_str ( ) ) ; #endif } return false ; }
Returns true if the extension is a file type that we can load from
Returns true if the extension is a file type that we can load from