If an edge is drawn diagonally between the X and Y axis, that formula would still make the “rotary” bounding box include all content, while being based on the actual bounding box as opposed to being based directly on the geometry.
Seems to be special handling of special cases stacked on top of each other.
OH! I was confused by @CAUL’s terminology for the topic title.
I thought he was really speaking of bounding boxes not selected boxes.
I agree, they are two separate things. And currently there is no padding control for the latter.
Just to be clear, I’m interested in the Sketchup’s internal representation, that is, the size contained in entity.bounds.
The normal graphic oversizing in the viewport is if I’m correctly informed (by @eneroth3) a constant 30px in screen space or something like that. The problem under discussion is an oversizing by a factor √2 of entitiy.bounds