public IObject3D Group(ArrayList objects) { IObject3D newGroup = new GroupObject(); // add this group to the scene AddObject(newGroup); // add all the children to the group foreach (IObject3D obj in objects) { newGroup.AddChild(obj); } return newGroup; }
public IObject3D Group(ArrayList objects) { IObject3D newGroup = new GroupObject(); // add this group to the scene AddObject(newGroup); // add all the children to the group foreach (IObject3D obj in objects) { newGroup.AddChild(obj); } return(newGroup); }