public void SetData(Vector3 v, Vector2 vt, Vector3 vn, ObjExportFace face, int l)
 {
     Vertices[face.FaceVertices[l].VertexIndex - 1] = v * Scale + Delta;
     if (Normals.Count > 0)
         Normals[face.FaceVertices[l].NormalIndex - 1] = vn;
     if (TexCoords.Count > 0)
         TexCoords[face.FaceVertices[l].TextureIndex - 1] = vt;
 }
Exemple #2
0
 public void SetData(Vector3 v, Vector2 vt, Vector3 vn, ObjExportFace face, int l)
 {
     Vertices[face.FaceVertices[l].VertexIndex - 1] = v * Scale + Delta;
     if (Normals.Count > 0)
     {
         Normals[face.FaceVertices[l].NormalIndex - 1] = vn;
     }
     if (TexCoords.Count > 0)
     {
         TexCoords[face.FaceVertices[l].TextureIndex - 1] = vt;
     }
 }