Revealing the skeleton from imperfect point clouds