orientation1 Orienting Raw Point Sets by Global Contraction and Visibility Voting Debug the main.m, you will find all.