Contact with friction between beams in 3-D Space