コード例 #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
ファイル: Model.cs プロジェクト: oguna/AssimpSharp
 /// <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>();
 }