Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"03-10-09 - Snark Suppository"

5 Comments -

1 – 5 of 5
Blogger John W. Ratcliff said...

Thanks Charles, I'll update my code when I get a chance. I have a graphics tool where I generate random point clouds and then visualize the best fit OBB; it looked 'good enough' so I was satisfied with the implementation I had at the moment.

I had an older implementation, more like the rotating calipers method, but it was a lot slower.

I agree that the point cloud input should be based on a convex hull; I do that already in my own code but forgot to mention it in the post.

Thanks,

John

March 11, 2009 at 6:48 AM

Blogger cbloom said...

I've solved part of the challenge.

The Barequet & Har-Peled method has bounded execution time and error.

I am however unaware of any implementation of their method and it is quite complex.

BTW another practical obvious method is to make the convex hull then simplify it by pushing the planes out by epsilon. Find the optimal bbox for that convex hull, then refit the dimensions to the original point set. This has bounded error.

March 11, 2009 at 3:19 PM

Blogger cbloom said...

Never mind, I found it :

http://valis.cs.uiuc.edu/~sariel/papers/00/diameter/diam_prog.html

March 11, 2009 at 3:22 PM

Blogger cbloom said...

This page has some good general stuff :

http://softsurfer.com/Archive/algorithm_0107/algorithm_0107.htm

March 11, 2009 at 3:23 PM

Blogger John W. Ratcliff said...

Charles,

I refactored my best fit sphere code per your recommendation and have uploaded revised copies of my code snippets.

Thanks for the great links and references.

John

March 11, 2009 at 4:00 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.