Simply the same code the regular mesh mirror modifier uses. Differential Revision: https://developer.blender.org/D8188