vladxky
11-20-2001, 10:08 PM
Hi All,
I suggest to add function which returns axis aligned bounding box of a drawing, i.e. calculates extremes of data to be drawn. This function would be very useful to set correct projection parameters.
The straightforward way to calc vertex extremes separate from OpenGL is not elegant and easy. Some primitives are drawn with some glTranslate and glRotate is applied to them so that to calc the bounding box I have to do the same transformation calculations which OpenGL already has done. Why to do the same work twice??
For example, in Win32 API there is the function GetRgnBox() which returns bounding box of defined region.
Thanks,
Vlad.
I suggest to add function which returns axis aligned bounding box of a drawing, i.e. calculates extremes of data to be drawn. This function would be very useful to set correct projection parameters.
The straightforward way to calc vertex extremes separate from OpenGL is not elegant and easy. Some primitives are drawn with some glTranslate and glRotate is applied to them so that to calc the bounding box I have to do the same transformation calculations which OpenGL already has done. Why to do the same work twice??
For example, in Win32 API there is the function GetRgnBox() which returns bounding box of defined region.
Thanks,
Vlad.