Move functions to count visible points in viewport class