private void UpdateFaceModelMesh()
{
// init the vertices array if needed
if (avModelVertices == null)
{
int iNumVertices = sensorData.sensorInterface.GetFaceModelVerticesCount(primaryUserID);
avModelVertices = new Vector3[iNumVertices];
}
// get face model vertices
bGotModelVertices = sensorData.sensorInterface.GetFaceModelVertices(primaryUserID, ref avModelVertices);
if (bGotModelVertices && faceModelMesh != null && bFaceModelMeshInited)
{
//Quaternion faceModelRot = faceModelMesh.transform.rotation;
//faceModelMesh.transform.rotation = Quaternion.identity;
Mesh mesh = faceModelMesh.GetComponent<MeshFilter>().mesh;
mesh.vertices = avModelVertices;
mesh.RecalculateNormals();
mesh.RecalculateBounds();
//faceModelMesh.transform.rotation = faceModelRot;
}
}