3DSelfie
Hansjoerg Hofer (1026632), Sebastian Metzler (0927550)
|
ControlPoints script on mesh. More...
Public Member Functions | |
Vector3[] | CalculateOffset (Vector3[] startPoints, Vector3[] endPoints, bool side=false) |
Calculates the offset of two contours in world coordinates. More... | |
void | DeformContour (Vector3[] offsets) |
Deforms the face contour. More... | |
void | DeformLEye (Vector3[] offsets) |
Deforms the left eye. More... | |
void | DeformREye (Vector3[] offsets) |
Deforms the right eye. More... | |
void | DeformLEyeBrow (Vector3[] offsets) |
Deforms the left eyebrow. More... | |
void | DeformREyeBrow (Vector3[] offsets) |
Deforms the right eyebrow. More... | |
void | DeformMouth (Vector3[] offsets) |
Deforms the mouth. More... | |
void | ApplyDeformation () |
Applies the average of the calculated weighted offsets to every vertex in the mesh. More... | |
void | RotateToProfile () |
Rotates the mesh by 90 degrees around the y axis. More... | |
Properties | |
Vector3[] | LEyeFCP [get] |
Vector3[] | LEyebrowCP [get] |
Vector3[] | REyeFCP [get] |
Vector3[] | REyebrowCP [get] |
Vector3[] | EyeSCP [get] |
Vector3[] | MouthFCP [get] |
Vector3[] | MouthSCP [get] |
Vector3[] | ContourFCP [get] |
Vector3[] | ContourSCP [get] |
bool | EnableRotation [get, set] |
ControlPoints script on mesh.
Provides control point functionality of the mesh
Definition at line 10 of file ControlPoints.cs.
void ControlPoints.ApplyDeformation | ( | ) |
Applies the average of the calculated weighted offsets to every vertex in the mesh.
Adds the average of the weighted offsets to every vertex in the mesh. For each transposed vertex the new uv coordinates are calculated with a cylindrical uv-mapping
Definition at line 432 of file ControlPoints.cs.
Vector3 [] ControlPoints.CalculateOffset | ( | Vector3[] | startPoints, |
Vector3[] | endPoints, | ||
bool | side = false |
||
) |
Calculates the offset of two contours in world coordinates.
[in] | startPoints | the start contour in world coordinates |
[in] | endPoints | the resulting contour in world coordinates |
[in] | side | true when the contour is from the side |
Transforms each point to model coordinates and saves the difference in a new array. If side is true the
Definition at line 298 of file ControlPoints.cs.
void ControlPoints.DeformContour | ( | Vector3[] | offsets | ) |
Deforms the face contour.
[in] | offsets | an array of offsets in model coordinates |
Passes the offsets and the contour vertex indices to the DeformModel method
Definition at line 324 of file ControlPoints.cs.
void ControlPoints.DeformLEye | ( | Vector3[] | offsets | ) |
Deforms the left eye.
[in] | offsets | an array of offsets in model coordinates |
Passes the offsets and the contour vertex indices to the DeformModel method
Definition at line 337 of file ControlPoints.cs.
void ControlPoints.DeformLEyeBrow | ( | Vector3[] | offsets | ) |
Deforms the left eyebrow.
[in] | offsets | an array of offsets in model coordinates |
Passes the offsets and the contour vertex indices to the DeformModel method
Definition at line 363 of file ControlPoints.cs.
void ControlPoints.DeformMouth | ( | Vector3[] | offsets | ) |
Deforms the mouth.
[in] | offsets | an array of offsets in model coordinates |
Passes the offsets and the contour vertex indices to the DeformModel method
Definition at line 389 of file ControlPoints.cs.
void ControlPoints.DeformREye | ( | Vector3[] | offsets | ) |
Deforms the right eye.
[in] | offsets | an array of offsets in model coordinates |
Passes the offsets and the contour vertex indices to the DeformModel method
Definition at line 350 of file ControlPoints.cs.
void ControlPoints.DeformREyeBrow | ( | Vector3[] | offsets | ) |
Deforms the right eyebrow.
[in] | offsets | an array of offsets in model coordinates |
Passes the offsets and the contour vertex indices to the DeformModel method
Definition at line 376 of file ControlPoints.cs.
void ControlPoints.RotateToProfile | ( | ) |
Rotates the mesh by 90 degrees around the y axis.
Definition at line 659 of file ControlPoints.cs.
|
get |
Definition at line 164 of file ControlPoints.cs.
|
get |
Definition at line 181 of file ControlPoints.cs.
|
getset |
Definition at line 186 of file ControlPoints.cs.
|
get |
Definition at line 105 of file ControlPoints.cs.
|
get |
Definition at line 56 of file ControlPoints.cs.
|
get |
Definition at line 37 of file ControlPoints.cs.
|
get |
Definition at line 129 of file ControlPoints.cs.
|
get |
Definition at line 143 of file ControlPoints.cs.
|
get |
Definition at line 91 of file ControlPoints.cs.
|
get |
Definition at line 72 of file ControlPoints.cs.