void reinitializeModel() { if (m_wheel_model_reinitialize_disable) { return; } m_wheel_model = new WheelModel(); m_wheel_model.initialize(m_config_n_spokes, m_config_n_cross, m_config_rim_d, m_config_hub_d, m_config_axle_length, m_config_l_dish, m_config_r_dish); if (!m_wheel_model.compute()) { m_assign_spoke_count_slider.value = 3; m_assign_cross_count_slider.value = 3; m_assign_rimd_slider.value = 519; m_assign_hubd_slider.value = 50; m_assign_axlel_slider.value = 100; m_assign_ldish_slider.value = 15; m_assign_rdish_slider.value = 15; updateWheelModelSliders(); m_wheel_model.reset_balance(); m_wheel_model.compute(); } updateModelDrawer(); }