I am using dimensions to get the bounding box dimensions of the object.
me_ob = bpy.data.objects['myobj'] cor = me_ob.dimensions
When i construct a cube with those dimensions, the cube appears to be shifted along the z & y axis. It is good along the x axis.
I am creating the cube from blender wiki
At first i thought that it be be because of the arbitrary shape than the cube or a cuboid. For cube and cuboid, the center can be found out by dividing the sides into two. but for a arbitary shape it will not always be half. To validate it, i shifted the cube manually. It fits perfectly after this.
Why do we remove the shift ?