/// <summary> /// This can be used to classes from Bain.Meshes DLL /// </summary> /// <param name="type"></param> /// <returns></returns> public static TypeMesh GetTypeClass(this object type) { Type typ = type.GetType(); TypeMesh thisType = TypeMesh.None; switch (typ.ToString()) { case "Cone": thisType = TypeMesh.Cone; break; case "Cube": thisType = TypeMesh.Cube; break; case "Cylinder": thisType = TypeMesh.Cylinder; break; case "DuplexTrapezium": thisType = TypeMesh.DuplexTrapezium; break; case "Pyramid3": thisType = TypeMesh.Pyramid3; break; } return(thisType); }
//public string Tag { get; set; } public Information(string privateName, string publicName, int ID, /*string tag,*/ TypeMesh type) { PrivateName = privateName; PublicName = publicName; // Tag = tag; Current_ID = ID; typeMesh = type; InfoList.Add(new Information(privateName, publicName, ID, /*tag,*/ type)); }