ADC Home > Reference Library > Technical Q&As > Legacy Documents > Graphics & Imaging >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

NOTE: This Technical Q&A has been retired. Please see the Technical Q&As page for current documentation.

Finding The Center Of A Model


Q: How can I find the center of a model, so I can position the camera to completely display the model (much like the "home" camera position in the Simple Viewer)?

A: Use the Q3View_StartBoundingBox and Q3View_EndBoundingBox routines to compute an object's bounding box. Next, use the data in the TQ3BoundingBox structure returned by Q3View_EndBoundingBox to compute the center of the object.

[Jul 11 1997]


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.