Analysis of the contact between cubic profiles