Determine centerline, medial axis and branches in shape