Kinect.FacetrackingManager.GetFaceModelTriangleIndices C# (CSharp) Method

GetFaceModelTriangleIndices() public method

Gets the face model triangle indices, if a face model is available; null otherwise.
public GetFaceModelTriangleIndices ( bool bMirroredModel ) : int[]
bMirroredModel bool If set to true gets mirorred model indices.
return int[]
        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;
        }