Add bounding box calculation and other function in calculations.py

`if isinstance(vertices, np.ndarray):`