colocando codigo do minimum bounding box