3DSelfie  Hansjoerg Hofer (1026632), Sebastian Metzler (0927550)
ControlPoints Class Reference

ControlPoints script on mesh. More...

Inheritance diagram for ControlPoints:

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]
 

Detailed Description

ControlPoints script on mesh.

Provides control point functionality of the mesh

Definition at line 10 of file ControlPoints.cs.

Member Function Documentation

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.

Parameters
[in]startPointsthe start contour in world coordinates
[in]endPointsthe resulting contour in world coordinates
[in]sidetrue when the contour is from the side
Returns
An array of offsets in model coordinates

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.

Parameters
[in]offsetsan array of offsets in model coordinates

Passes the offsets and the contour vertex indices to the DeformModel method

See also
DeformModel

Definition at line 324 of file ControlPoints.cs.

void ControlPoints.DeformLEye ( Vector3[]  offsets)

Deforms the left eye.

Parameters
[in]offsetsan array of offsets in model coordinates

Passes the offsets and the contour vertex indices to the DeformModel method

See also
DeformModel

Definition at line 337 of file ControlPoints.cs.

void ControlPoints.DeformLEyeBrow ( Vector3[]  offsets)

Deforms the left eyebrow.

Parameters
[in]offsetsan array of offsets in model coordinates

Passes the offsets and the contour vertex indices to the DeformModel method

See also
DeformModel

Definition at line 363 of file ControlPoints.cs.

void ControlPoints.DeformMouth ( Vector3[]  offsets)

Deforms the mouth.

Parameters
[in]offsetsan array of offsets in model coordinates

Passes the offsets and the contour vertex indices to the DeformModel method

See also
DeformModel

Definition at line 389 of file ControlPoints.cs.

void ControlPoints.DeformREye ( Vector3[]  offsets)

Deforms the right eye.

Parameters
[in]offsetsan array of offsets in model coordinates

Passes the offsets and the contour vertex indices to the DeformModel method

See also
DeformModel

Definition at line 350 of file ControlPoints.cs.

void ControlPoints.DeformREyeBrow ( Vector3[]  offsets)

Deforms the right eyebrow.

Parameters
[in]offsetsan array of offsets in model coordinates

Passes the offsets and the contour vertex indices to the DeformModel method

See also
DeformModel

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.

Property Documentation

Vector3 [] ControlPoints.ContourFCP
get

Definition at line 164 of file ControlPoints.cs.

Vector3 [] ControlPoints.ContourSCP
get

Definition at line 181 of file ControlPoints.cs.

bool ControlPoints.EnableRotation
getset

Definition at line 186 of file ControlPoints.cs.

Vector3 [] ControlPoints.EyeSCP
get

Definition at line 105 of file ControlPoints.cs.

Vector3 [] ControlPoints.LEyebrowCP
get

Definition at line 56 of file ControlPoints.cs.

Vector3 [] ControlPoints.LEyeFCP
get

Definition at line 37 of file ControlPoints.cs.

Vector3 [] ControlPoints.MouthFCP
get

Definition at line 129 of file ControlPoints.cs.

Vector3 [] ControlPoints.MouthSCP
get

Definition at line 143 of file ControlPoints.cs.

Vector3 [] ControlPoints.REyebrowCP
get

Definition at line 91 of file ControlPoints.cs.

Vector3 [] ControlPoints.REyeFCP
get

Definition at line 72 of file ControlPoints.cs.


The documentation for this class was generated from the following file: