Beispiel #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;
 }
Beispiel #2
0
 public ObjObject(ObjModel parentModel) : this(parentModel, string.Empty)
 {
 }