Compatibility conditions of structural mechanics