public int[] GetFaceModelTriangleIndices(bool bMirroredModel)
{
if (sensorData != null && sensorData.sensorInterface != null)
{
int iNumTriangles = sensorData.sensorInterface.GetFaceModelTrianglesCount();
if (iNumTriangles > 0)
{
int[] avModelTriangles = new int[iNumTriangles];
bool bGotModelTriangles = sensorData.sensorInterface.GetFaceModelTriangles(bMirroredModel, ref avModelTriangles);
if (bGotModelTriangles)
{
return avModelTriangles;
}
}
}
return null;
}