Example #1
0
 public ARFaceGeometry(UnityARFaceGeometry ufg)
 {
     uFaceGeometry                = ufg;
     m_VertexCount                = ufg.vertexCount;
     m_Vertices                   = new Vector3[m_VertexCount];
     m_WorkVertexCount            = m_VertexCount * 4;
     m_WorkVertices               = new float[m_WorkVertexCount];
     m_TextureCoordinateCount     = ufg.textureCoordinateCount;
     m_TextureCoordinates         = new Vector2[textureCoordinateCount];
     m_WorkTextureCoordinateCount = m_TextureCoordinateCount * 2;
     m_WorkTextureCoordinates     = new float[m_WorkTextureCoordinateCount];
     m_TriangleCount              = ufg.triangleCount;
     m_IndexCount                 = m_TriangleCount * 3;
     m_TriangleIndices            = new int[m_IndexCount];
     m_WorkIndices                = new short[m_IndexCount];
 }
 public ARFaceGeometry(UnityARFaceGeometry ufg)
 {
     uFaceGeometry = ufg;
 }