A framework for automatic modeling of underground excavations in homogeneous rock mass