Can't get origin to center correctly on geometry

I am trying to get the origin of my shape to center on the geometry. The problem is that every time I do it, it is a bit off center…I can’t figure out why my meshes seem to do this…

I’ve attached the file. I’ve run into this several times, and I can’t seem to figure it out. I am running 2.55beta on Windows and OS X.

Attachments

castel.blend (334 KB)

Remove doubles, and then try again.

Best wishes,
Matthew

That worked! Thanks a bunch!

So I am still having a problem…I thought it worked, but it’s still not centered correctly. I’ve attached the latest file. Is there something I am totally missing about how it calculates the center? I see 2 options, Median Center and Bounds Center - neither one gives me a different result.

The center is correct for the X and Z axis, but not the Y axis.

Thanks,
Dave

Attachments

castel.blend (341 KB)

You object centre is more towards the opening because your object is not symetrical, there are more vertices there which attracts the center point.
If you want it in the center as if it was a cube, select all of the extreme corner vertices, Shift+S / Curser to Center, then Ctrl+Alt+Shift+C / Origin to 3D curser

Maybe I’m missing something…

I tried doing what you suggested. It moved the little 3-Axis thing to the center. But when I leave edit mode, it doesn’t show the cursor there. Here is what I did step by step:

  1. Switched to top view
  2. Tab to edit mode
  3. Deselect all vertices
  4. Box select all for extreme corners
  5. Shift-S / Cursor to Center
  6. Tab to object mode
  7. Ctrl+Alt+Shift+C / Origin to 3D Cursor

I have to do step 6 because if I do step 7, it gives an error saying you can’t change origin in edit mode

1 Like

Don’t select “all” vertex. Just select two opposite ones as shown will do. That will put the 3D curser at the middle to snap onto.

http://i1135.photobucket.com/albums/m626/cabby24/Blender%20Pics%202010/obcenter.png

1 Like

A demo. As ridix points out you only need the two vertices not all of them as I show
http://www.screencast.com/users/blenderwho/folders/Jing/media/9a2a84ae-e552-4f21-bb6e-8f1c9edf20cc

Thanks for the help! This worked perfectly