The complementarity principle recently derived for a general three dimensional frictional contact is explicitly implemented
as a linear complementarity problem (LCP). The inherent nonlinearity in the three dimensional friction condition has been
treated by introducing a polyhedral law instead of elliptic law. The two-dimensional formulation previously derived is shown
to be a special case of this three-dimensional formaulation in LCP.