Page 1 of 1

Ligament length

Posted: Thu Oct 27, 2022 4:00 am
by yurovaa
Hello,

is there any way to find out the length of the ligament taking in account its wrapping over the surface of the wrap object? It seems, that getLength() procedure outputs just the distance between origin and insertion points.

Best,
Alexandra

Re: Ligament length

Posted: Thu Oct 27, 2022 9:03 am
by tkuchida
The getLength() method returns the length of the underlying GeometryPath, which is calculated by GeometryPath::computePath() and does consider via points and wrapping surfaces. https://github.com/opensim-org/opensim- ... h.cpp#L901