src/CSLModels.cpp
float CSLModel::FetchVertOfsFromObjFile () const
{
    // This is a thread main function, set thread's name and try to catch all exceptions
    SET_THREAD_NAME("XPMP2_VertOfs");

    float ret = 0.0f;
    try {
        for (const CSLObj& obj: listObj) {
            const float o = obj.FetchVertOfsFromObjFile();
            if (o > ret)
                ret = o;
        }
    }
    catch(const std::exception& e) {
        LOG_MSG(logERR, "Reading vertical offsets failed: %s", e.what());
    }
    catch (...) {
        LOG_MSG(logERR, "Reading vertical offsets failed with an exception");
    }
    return ret;
}
// Read the obj files to fill CSLModel::vertOfs
/// @note Expected to be called in a separate thread via std::async
Read the obj files to fill CSLModel::vertOfs
Read the obj files to fill CSLModel :: vertOfs
float CSLModel::FetchVertOfsFromObjFile () const
{
    SET_THREAD_NAME("XPMP2_VertOfs");
    float ret = 0.0f;
    try {
        for (const CSLObj& obj: listObj) {
            const float o = obj.FetchVertOfsFromObjFile();
            if (o > ret)
                ret = o;
        }
    }
    catch(const std::exception& e) {
        LOG_MSG(logERR, "Reading vertical offsets failed: %s", e.what());
    }
    catch (...) {
        LOG_MSG(logERR, "Reading vertical offsets failed with an exception");
    }
    return ret;
}
float CSLModel :: FetchVertOfsFromObjFile ( ) const { SET_THREAD_NAME ( " " ) ; float ret = 0.0f ; try { for ( const CSLObj & obj : listObj ) { const float o = obj . FetchVertOfsFromObjFile ( ) ; if ( o > ret ) ret = o ; } } catch ( const std :: exception & e ) { LOG_MSG ( logERR , " " , e . what ( ) ) ; } catch ( ... ) { LOG_MSG ( logERR , " " ) ; } return ret ; }
Read the obj files to fill CSLModel::vertOfs
Read the obj files to fill CSLModel :: vertOfs
// This is a thread main function, set thread's name and try to catch all exceptions