Sign in to follow this  

Bounding box from a gluQuadric?

This topic is 3869 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

There is no gluGetBounds function, but since *you* have to provide some parameters to those functions to descibe the size of the object (the radius parameter in gluSphere for example), it stands to reason that you already know the size of the object before you create it. Therefore, you can easily compute the bounds of the object. For example, a sphere with radius x will be contained in a box of with a width of 2*x, a height of 2*x, and a depth of 2*x. A cylinder with radius x and height y can be contained in a box of size 2x * 2x * y. Just imagine the shape of the object and you should be able to create a bounding box for it. Sketching it out on paper may make it more apparent.

Share this post


Link to post
Share on other sites

This topic is 3869 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this