I am working with a patient-specific model performing a squat and using AnyForceSurfaceContact to calculate knee contact forces. For my evaluation, I need to retrieve the penetrating vertices at each degree of knee flexion.
Additionally, I am using AnyDrawForceSurface, which also relies on the vertices in contact. Is there a way to access this vertex data directly within AnyBody?
Unfortunately, it's not an output, so it's not possible to retrieve the vertices. It should be possible post process the outputs: you have the surfaces and their kinematics from the simulation. Then, an external function may help you in extracting this info.
May I ask you why you need these vertices? Maybe I can suggest you some alternatives.
Thank you for your response—I really appreciate it.
I need this information to determine the ML and AP dimensions at each degree of knee flexion.
I've also been thinking about your suggestion, and I’ll give it a try.
It's not my expertise, but from what I could understand quickly reading about ML and AP dimensions at the knee is that it is based on the surface of the bone. I could be wrong about that.
I suppose you are interested in defining these dimensions based on the penetration of the surfaces, in which case, I believe best way is to post process these results.
You probably have seen that there is an output for ContactArea. And you could make a rough estimate of the penetrating volume by dividing the Force with the pressure module. I don't know if that helps you.