Esempio n. 1
0
        private static FaceVertex GetVertex(FaceVertex v, Dictionary <int, int> pnts,
                                            Dictionary <int, int> normals, Dictionary <int, int> uvs)
        {
            var v1p = v.V;
            var v1n = v.N;
            var v1t = v.T;

            if (v1p > 0)
            {
                v1p = pnts[v1p];
            }
            if (v1n > 0)
            {
                v1n = normals[v1n];
            }
            if (v1t > 0)
            {
                v1t = uvs[v1t];
            }
            return(new FaceVertex(v1p, v1t, v1n));
        }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="v1"></param>
 /// <param name="v2"></param>
 /// <param name="v3"></param>
 public FaceTriangle(FaceVertex v1, FaceVertex v2, FaceVertex v3)
 {
     V1 = v1;
     V2 = v2;
     V3 = v3;
 }