Jump to content
  • Advertisement
Sign in to follow this  
kelaklub

Which bounding box algorithm?

This topic is 4235 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

Hi. I am trying to find some information about an algorithm that can generate the following type of bounding box as indicated by the green box around the red polygon "B". I already have an algorithm that generates the bounding box around polygon "A", but I have no idea what the name of an algorithm to produce the kind of bounding around polygon "B" would be called. Some help please. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Well I can search for information on how to implement this, if that's correct name of this kind of algorithm. I thought it was something like minimum perimeter bounding box, or something. Thanks.

Share this post


Link to post
Share on other sites
Quote:
Original post by kelaklub
I thought it was something like minimum perimeter bounding box, or something.
Yes, it looks like you're looking for the oriented bounding box with the minimum area/perimiter. There are at least a couple of algorithms that are commonly used; terms to google for to learn more about these might include 'rotating calipers', 'OBB eigenvectors', and 'OBB covariance'.

Here is a google hit that looks promising. I can't vouch for its accuracy, but otherwise it looks like what you're looking for.

Share this post


Link to post
Share on other sites
"Object-Oriented Bounding Box" (OOBB) might bring up more specific relevant information ("A" is bounded by an "Axis-Aligned Bounding Box" (AABB))

Share this post


Link to post
Share on other sites
Quote:
Original post by Extrarius
"Object-Oriented Bounding Box" (OOBB) might bring up more specific relevant information ("A" is bounded by an "Axis-Aligned Bounding Box" (AABB))
For what it's worth, the abbreviation OBB is used much more often than OOBB. I'm sure it wouldn't hurt to search using the term OOBB as well, but 'OBB' will return the greater number of relevant hits.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!