First implementing of visibility rectangle.