Shape coding by vision and touch