Rock Mechanical Property Influenced by Inhomogeneity