Modelling of Rock Mass Fractures and Two Quarrying Applications