preparation for polygon based bounding boxes