Entropy and Poincaré recurrence from a geometrical viewpoint