Vortex method in three-dimensional flow