This demo shows a spherical domain colored according to the value of the function.  The white point is the center of mass of this region.

The readout "M" gives the total mass of this region.

The readouts "XC", "YC", and "ZC" give the x-center, y-center, and z-centers of mass respectively.