Exemplo n.º 1
0
        public void UpdateUserCenterPositions()
        {
            var center = UpdateUserCenterPositions(headController.GetLeftEyeIndexes());  // Left eye

            if (center != Vector2.Zero)
            {
                ProgramCore.Project.LeftEyeUserCenter = center;
            }

            center = UpdateUserCenterPositions(headController.GetRightEyeIndexes());  // Right eye
            if (center != Vector2.Zero)
            {
                ProgramCore.Project.RightEyeUserCenter = center;
            }

            center = UpdateUserCenterPositions(headController.GetMouthIndexes());  // Mouth
            if (center != Vector2.Zero)
            {
                ProgramCore.Project.MouthUserCenter = center;
            }

            center = UpdateUserCenterPositions(headController.GetNoseIndexes());  // Nose
            if (center != Vector2.Zero)
            {
                ProgramCore.Project.NoseUserCenter = center;
            }

            #region Определяем прямоугольник, охватывающий все автоточки

            //if (updateRect)
            //    UpdateFaceRect();

            #endregion

            //RecalcUserCenters();
        }