Made calculating mesh simpler for ik