A method for analysis of rock blocks with complex arbitrary geometries