src/OpenSimBindings/UiModel.cpp
// translate a pointer to a component in model A to a pointer to a component in model B
//
// returns nullptr if the pointer cannot be cleanly translated
translate a pointer to a component in model A to a pointer to a component in model B
returns nullptr if the pointer cannot be cleanly translated
translate a pointer to a component in model A to a pointer to a component in model B returns nullptr if the pointer cannot be cleanly translated
static OpenSim::Component const* findComponent(OpenSim::Model const& model, OpenSim::ComponentPath const& absPath) {
    for (OpenSim::Component const& c : model.getComponentList()) {
        if (c.getAbsolutePath() == absPath) {
            return &c;
        }
    }
    return nullptr;
}
static OpenSim :: Component const * findComponent ( OpenSim :: Model const & model , OpenSim :: ComponentPath const & absPath ) { for ( OpenSim :: Component const & c : model . getComponentList ( ) ) { if ( c . getAbsolutePath ( ) == absPath ) { return & c ; } } return nullptr ; }
translate a pointer to a component in model A to a pointer to a component in model B
returns nullptr if the pointer cannot be cleanly translated
translate a pointer to a component in model A to a pointer to a component in model B returns nullptr if the pointer cannot be cleanly translated