Delete via point programatically
Posted: Fri Aug 19, 2022 2:56 pm
Hello all,
I am having some trouble figuring out how to safely delete muscle via points through the Matlab API.
Currently I am using:
but I am not sure about calling initSystem() on my model like this. If I do not call initSystem() after finalizeConnections() then I cannot place my model in any poses that I want to analyse. And if I do not call finalizeConnections() then Matlab crashes on the next API call.
Is this an ok way to work around this problem or am I missing something?
Thanks a lot!
Pavlos
I am having some trouble figuring out how to safely delete muscle via points through the Matlab API.
Currently I am using:
Code: Select all
% Delete via point
if flag_delt2ViaDelete == true
delt2_GP.deletePathPoint(init_state, point_count);
osim_model.initSystem();
osim_model.finalizeConnections();
osim_model.initSystem();
end
Is this an ok way to work around this problem or am I missing something?
Thanks a lot!
Pavlos