예제 #1
0
 public ObjObject(ObjModel parentModel, string name)
 {
     if (parentModel == null)
     {
         throw new ArgumentNullException("parentModel", "Parent model cannot be null!");
     }
     if (name == null)
     {
         throw new ArgumentNullException("name", "Name cannot be null!");
     }
     ListId      = GL.GenLists(1);
     Name        = name;
     Faces       = new List <ObjFace>();
     ParentModel = parentModel;
 }
예제 #2
0
 public ObjObject(ObjModel parentModel) : this(parentModel, string.Empty)
 {
 }