Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: ┐How to find bounding box of an object?

  1. #1
    Guest

    ┐How to find bounding box of an object?

    I tried to implement some code to find the bounding box of a given object, but doesnt seems to work. How can I find the higher vertex and the lower vertex in the list of vertices?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    235

    Re: ┐How to find bounding box of an object?

    Hi!
    This is a very simple task.Loop throug all vertices and take the highest x-value,the highest y-value and the highest z-value as the coordinates of the max vertex....Same thing for the min vertex only difference:Take the lowest values in each direction....

    HTH,XBTC!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •