What criteria does the Align command use to find an object's center?

I am trying to duplicate the function of the Align/Concentric command with a script, but it seems with certain open objects I cannot get the same center.

Specifically, if I have an open mesh, the center used by Align does not seem to correspond with either the mesh volume or area centroids, nor the average of the mesh vertices, nor the center of the object bounding box… Also for curve objects, it seems to be neither the center of the object bounding box, nor the average of the control points, nor anything else logical that I can determine…

Gumball is not using the same center as Align either, it consistently uses the BB center… :confused:


All calculations made by the Align command are made off of the object’s tight bounding box.