Center of Gravity of a Generic Model Element

This post might also be of interest to you.