1
$\begingroup$

I would like to create a box around an object with a python script ! So I write the script which is in this topic : Create and export bounding boxes for objects

However here's what I get with my object:

enter image description here

I was expecting something more like this:

enter image description here

I don't know how to modify the script to get what I want

Have you guys any ideas on this ?

$\endgroup$
7
  • $\begingroup$ Welcome reflyon :) Can you elaborate? Why the bounding box script doesn't solves your issue? $\endgroup$
    – p2or
    Feb 19 '15 at 13:42
  • 1
    $\begingroup$ Without looking at your script it seems to me you are just creating an AABB which is what you're getting. What you want is OOBB (Object-oriented bounding box). $\endgroup$ Feb 19 '15 at 13:56
  • $\begingroup$ I want to create a mold ! So I need to create a box that surround my object in a special way to easily get my object out of the mold ! In my process, I first translate my object into the center, put it horizontally and then I create the box, but the box is not horizontally. When I replace the last line of the script by this : bound_box.rotation_euler = (0.0, 1.57, 0.0) I get the box horizontally but not adjusted to my object $\endgroup$
    – reflyon
    Feb 19 '15 at 13:56
  • $\begingroup$ or simply rotate the object to the 'correct' orientation before applying your script. With your script the box will always be aligned to the world axis... $\endgroup$ Feb 19 '15 at 14:01
  • 3
    $\begingroup$ I'm voting to close this question as off-topic because it's primarily about minimum bounding box algorithm implementation. $\endgroup$
    – CodeManX
    Feb 19 '15 at 17:03

Browse other questions tagged or ask your own question.