I also would move this to MeshLib. Maybe a small class MeshInfo that can be attached to a mesh? Same for ```ElementTreeModel::getMatBounds()```.