Director reorientation and order reconstruction: competing mechanisms in a nematic cell