IMHOTEP Framework
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
UnityMesh.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using UnityEngine;
6 
7 namespace BlenderMeshReader
8 {
9  //This class repesents a mesh in unity
10  //Coordinate system is left-handed
12  {
13  public string Name { get; set; }
14  public ulong UniqueIdentifier { get; set; }
15  public Vector3[] VertexList { get; set; }
16  public Vector3[] NormalList { get; set; }
17  public int[] TriangleList { get; set; }
18 
19  public UnityMesh()
20  {
21  this.Name = "defaultMesh";
22  this.UniqueIdentifier = 0;
23  VertexList = new Vector3[0];
24  NormalList = new Vector3[0];
25  TriangleList = new int[0];
26  }
27 
28  public UnityMesh(string name, ulong uniqueIdentifier)
29  {
30  this.Name = name;
31  this.UniqueIdentifier = uniqueIdentifier;
32  VertexList = new Vector3[0];
33  NormalList = new Vector3[0];
34  TriangleList = new int[0];
35  }
36  }
37 }