There is necessary to account also x-coordinate of the end of the edge when determining bounding box of the edge collection.