Example #1
0
        /*void returns need to change of course
         * public virtual void GetMesh()
         * {
         * }*/

        public PrimitiveBaseShape Copy()
        {
            PrimitiveBaseShape copy = (PrimitiveBaseShape)MemberwiseClone();

            if (Media != null)
            {
                MediaList dupeMedia = new MediaList();
                lock (Media)
                {
                    foreach (MediaEntry me in Media)
                    {
                        dupeMedia.Add(me != null ? MediaEntry.FromOSD(me.GetOSD()) : null);
                    }
                }

                copy.Media = dupeMedia;
            }
            return(copy);
        }
Example #2
0
        public static PrimitiveBaseShape Create()
        {
            PrimitiveBaseShape shape = new PrimitiveBaseShape();

            return(shape);
        }