示例#1
0
文件: Face.cs 项目: oguna/AssimpSharp
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="vertices">Assigned vertex indexbuffer</param>
 /// <param name="normals">Assigned normals indexbuffer</param>
 /// <param name="texCoords">Assigned texture indexbuffer</param>
 public Face(List<uint> vertices, List<uint> normals, List<uint> texCoords, PrimitiveType pt = PrimitiveType.Polygon)
 {
     PrimitiveType = pt;
     Vertices = vertices;
     Normals = normals;
     TextureCoords = texCoords;
     Material = null;
 }
示例#2
0
文件: Mesh.cs 项目: oguna/AssimpSharp
 /// <summary>
 /// Constructor
 /// </summary>
 public Mesh()
 {
     Material = null;
     NumIndices = 0;
     MaterialIndex = NoMaterial;
     HasNormals = false;
     UVCoordinates = new uint[AI_MAX_NUMBER_OF_TEXTURECOORDS];
     Faces = new List<Face>();
 }
示例#3
0
 /// <summary>
 /// The default class constructor
 /// </summary>
 public Model()
 {
     ModelName = "";
     Current = null;
     CurrentMaterial = null;
     DefaultMaterial = null;
     GroupFaceIDs = null;
     ActiveGroup = "";
     CurrentMesh = null;
     Objects = new List<Object>();
     MaterialLib = new List<string>();
     GroupLib = new List<string>();
     Vertices = new List<Vector3>();
     Normals = new List<Vector3>();
     Groups = new Dictionary<string, List<uint>>();
     GroupFaceIDs = new List<uint>();
     TextureCoord = new List<Vector2>();
     Meshes = new List<Mesh>();
     MaterialMap = new Dictionary<string, Material>();
 }