meshing/IO.cpp
///Returns true if the extension is a file type that we can save to
Returns true if the extension is a file type that we can save to
Returns true if the extension is a file type that we can save to
bool CanSaveTriMeshExt(const char* ext)
{
  if(0==strcmp(ext,"tri")) return true;
  else if(0==strcmp(ext,"off")) return true;
  else if(0==strcmp(ext,"obj")) return true;
  else {
#if HAVE_ASSIMP
    Assimp::Exporter exporter;
    for(size_t i=0;i<exporter.GetExportFormatCount();i++) {
      if(0 == strcmp(ext,exporter.GetExportFormatDescription(i)->fileExtension))
        return true;
    }
    return false;
#endif
  }
  return false;
}
bool CanSaveTriMeshExt ( const char * ext ) { if ( 0 == strcmp ( ext , " " ) ) return true ; else if ( 0 == strcmp ( ext , " " ) ) return true ; else if ( 0 == strcmp ( ext , " " ) ) return true ; else { #if HAVE_ASSIMP Assimp :: Exporter exporter ; for ( size_t i = 0 ; i < exporter . GetExportFormatCount ( ) ; i ++ ) { if ( 0 == strcmp ( ext , exporter . GetExportFormatDescription ( i ) -> fileExtension ) ) return true ; } return false ; #endif } return false ; }
Returns true if the extension is a file type that we can save to
Returns true if the extension is a file type that we can save to