Visibility and proximity on triangulated surfaces