Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }