The Geometric Approach for Computing the Joint Spectral Radius