Bounding box dimension in blender 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 &amp; 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 ?
Create a cube at the origin point position of the object you took dimensions from. That should help to resolve your issue.