A Fractal-Based Model for Fracture Deformation Under Shearing and Compression