3DSelfie
Hansjoerg Hofer (1026632), Sebastian Metzler (0927550)
|
Control script. More...
Public Member Functions | |
void | findFaceContours (Vector2 leftEyeCenter, Vector2 rightEyeCenter, Vector2 mouthCenter) |
Runs the left/rigt eye and mouth deformation. More... | |
void | findEyebrows (Vector2 leftEyeBrowCenter, Vector2 rightEyeBrowCenter) |
Runs the eyebrow deformation. More... | |
void | resetSnake () |
Reinitializes the snake and control points script. More... | |
void | RunContourDeformation () |
runs the deformation for the face contour More... | |
void | RunLEyeDeformation (Vector2 center) |
runs the deformation for the left eye More... | |
void | RunREyeDeformation (Vector2 center) |
runs the deformation for the right eye More... | |
void | RunLEyeBrowDeformation (Vector2 center) |
runs the deformation for the left eyebrow More... | |
void | RunREyeBrowDeformation (Vector2 center) |
runs the deformation for the right eyebrow More... | |
void | RunMouthDeformation (Vector2 center) |
runs the deformation for the mouth More... | |
void | ApplyDeformation () |
Applies the deformation to the model. More... | |
Control script.
controls the snake and the mesh scripts
Definition at line 28 of file Controller.cs.
void Controller.ApplyDeformation | ( | ) |
Applies the deformation to the model.
Definition at line 307 of file Controller.cs.
void Controller.findEyebrows | ( | Vector2 | leftEyeBrowCenter, |
Vector2 | rightEyeBrowCenter | ||
) |
Runs the eyebrow deformation.
[in] | leftEyeBrowCenter | the center of the left eyebrow feature |
[in] | rightEyeBrowCenter | the center of the right eyebrow feature |
Definition at line 73 of file Controller.cs.
void Controller.findFaceContours | ( | Vector2 | leftEyeCenter, |
Vector2 | rightEyeCenter, | ||
Vector2 | mouthCenter | ||
) |
Runs the left/rigt eye and mouth deformation.
[in] | leftEyeCenter | the center of the left eye feature |
[in] | rightEyeCenter | the center of the right eye feature |
[in] | mouthCenter | the center of the mouth |
Definition at line 61 of file Controller.cs.
void Controller.resetSnake | ( | ) |
Reinitializes the snake and control points script.
the snake updates its image
Definition at line 84 of file Controller.cs.
void Controller.RunContourDeformation | ( | ) |
runs the deformation for the face contour
Sets the contour and executes snake and the deformation. An expanding snake is used
Definition at line 97 of file Controller.cs.
void Controller.RunLEyeBrowDeformation | ( | Vector2 | center | ) |
runs the deformation for the left eyebrow
Sets the contour and executes snake and the deformation. The contour is scaled and a contracting snake is used.
Definition at line 152 of file Controller.cs.
void Controller.RunLEyeDeformation | ( | Vector2 | center | ) |
runs the deformation for the left eye
Sets the contour and executes snake and the deformation. The contour is scaled and a contracting snake is used.
Definition at line 118 of file Controller.cs.
void Controller.RunMouthDeformation | ( | Vector2 | center | ) |
runs the deformation for the mouth
Sets the contour and executes snake and the deformation. The contour is scaled and a expanding snake is used.
Definition at line 185 of file Controller.cs.
void Controller.RunREyeBrowDeformation | ( | Vector2 | center | ) |
runs the deformation for the right eyebrow
Sets the contour and executes snake and the deformation. The contour is scaled and a contracting snake is used.
Definition at line 169 of file Controller.cs.
void Controller.RunREyeDeformation | ( | Vector2 | center | ) |
runs the deformation for the right eye
Sets the contour and executes snake and the deformation. The contour is scaled and a contracting snake is used.
Definition at line 134 of file Controller.cs.