Joint modelling for rock mechanics