Compute the fit pose for a scene's bounding box. Pure function — no
side-effects; returns the pose the caller should apply to the camera.
The compact branch reproduces the legacy fitToBounds() pose exactly
(south-east isometric at maxSize * 2) so a model that scored "compact"
frames identically to today's build. The linear branch only kicks in
once the bbox aspect ratio crosses the threshold, so building / room /
piece geometry never sees a behaviour change.
Compute the fit pose for a scene's bounding box. Pure function — no side-effects; returns the pose the caller should apply to the camera.
The compact branch reproduces the legacy
fitToBounds()pose exactly (south-east isometric atmaxSize * 2) so a model that scored "compact" frames identically to today's build. The linear branch only kicks in once the bbox aspect ratio crosses the threshold, so building / room / piece geometry never sees a behaviour change.