The index of convexity and the visibility function.