pub fn sort_poly_boxes(boxes: &[BoundingBox]) -> Vec<BoundingBox>Expand description
Sort polygon boxes (N-point bounding boxes) in reading order.
The boxes are sorted by their minimum y-coordinate (top edge), from top to bottom. This is a simpler sorting strategy suitable for arbitrary polygon shapes.
This follows standard poly box sorting implementation.
§Arguments
boxes- Slice of bounding boxes to sort
§Returns
A vector of sorted bounding boxes