It is true that we are calling setYawPitchDist() twice, but it is necessary to set an initial value of the camera distance and also it is only the first time.
The diam is computed from the bounding box of the object so that it is at a proper distance.
It is true that we are calling
setYawPitchDist()
twice, but it is necessary to set an initial value of the camera distance and also it is only the first time.The
diam
is computed from the bounding box of the object so that it is at a proper distance.