Mesomorphism dependence on molecular rigidity