Model for plastic deformation and fracture in planar disordered materials.