Three dimensional adaptive meshing scheme applied to the control of the spatial representation of complex field pattern in electromagnetics