METHOD TO COMPUTE THREE-DIMENSIONAL STOKES