Shape sensing of 3D frame structures using an inverse Finite Element Method