i have what might be a trivial question. But, i would like to know if my approach is correct. So, here is the
I have a 3D model(arbitrary) and i need to fit it appropriately in the viewport.
I calculate the bounding box of the model, fit it into some place within the view frustum such that it would be visible. But calculation of this would be slightly heavy. Is this the right way or is there a better way to achieve the same?