build bounding boxes when loading model