[Addon] Minimum Bounding Volume

Purpose:
An addon to calculate the aproximate minimum bounding box of objects

Useage:

  1. Download source from GitHub
  2. Unzip into Addons directory or install from .zip
  3. Select a MESH object
  4. “SpaceBar” menu -> “Min Bounding Box”
  5. Adjust variables as desired in props popup dialogue
  6. A new mesh obeject (box) will be added to the scene, with it’s local axes aligned with the faces of the min bounding box.

ToDo: (Feel free to fork repo and tackle a task)
Non Mesh objects
Editmode work on selected geometry
Optionally modify original object orientation to match bounding box
Optionally add a bone aligned with the box
Organize props/variables in popup dialogue
Screenshots on github page
Implement ORoukes big but accurate solution
Convince someone else to implement ORourkes big but accurate solution
Optimize the PCA algorithm to project coords to solve the 2d problem in 2d instead of 3d (speed increase)
Combine all 3 PCA axes tests into a single test

Bugs and Suggestions:
Discussed here, tracked on github. Please add

1 Like

This is really cool!

What is the real need for a box on an object ?

  1. efficient intersection testing with less false positives
  2. nesting objects together for milling or other CAM related functions
  3. Decreased packaging and shipping costs
    .
    .
    .
    N. Initial guesses before other more complex analysis