Simulating the travel of light beams within a path with mirrors of different shapes