add getFaceCenter function to core/cmd.py