Three-dimensional simulation of the influence of convection on dendritic solidification