'Calculate an axis-aligned box enclosing the model.'

def _calculate_bounding_box(self):

    xyz_rows = self.vertices.reshape((-1), order='F').reshape(3, (-1))
    lower_corner = xyz_rows.min(1)
    upper_corner = xyz_rows.max(1)
    box = BoundingBox(upper_corner, lower_corner)
    return box
