I have tried to set the origin of a mesh using "Origin to Geometry", "Origin to Center of Mass (Surface)" and "Origin to Center of Mass (Volume)".
None gave me the correct result.
What am I doing wrong?
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It only takes a minute to sign up.Sign up to join this community
Because your mesh is fatter at the bottom than it is at the top, the center of of mass by volume and by surface are toward the fatter end of your mesh.
Your best bet is to position your 3D cursor where you want your origin to be, and then set the origin to the 3D cursor.
In Edit Mode, select one vertex on each end of your mesh. In your case this is easy because you have conveniently centered vertices.
Hit SHIFT + S and choose 'Cursor to Selected'
In Object Mode, set the Origin to 3D Cursor.
I understand that you want the origin to be at the centre of the bounding box. Origin to Geometry will do this if you first set the transform pivot point to Bounding Box Center. (The button for setting the transform pivot point is the second of the four buttons near the centre of the 3D Viewpoint header.)