Example #1
0
        public virtual object copy(bool cyclic)
        {
            TakeoffAreaTable obj = (TakeoffAreaTable)clone();

            obj.Polygon   = new List <TakeoffPointTable>();
            obj.Triangles = new List <TakeoffTriangleTable>();

            if (Polygon != null)
            {
                foreach (TakeoffPointTable point in Polygon)
                {
                    point = (TakeoffPointTable)point.clone();
                    if (cyclic)
                    {
                        point.AreaTable = obj;
                    }
                    obj.Polygon.Add(point);
                }
            }

            if (Triangles != null)
            {
                foreach (TakeoffTriangleTable triangle in Triangles)
                {
                    triangle = (TakeoffTriangleTable)triangle.clone();
                    if (cyclic)
                    {
                        triangle.AreaTable = obj;
                    }
                    obj.Triangles.Add(triangle);
                }
            }

            return(obj);
        }
Example #2
0
        public virtual object clone()
        {
            TakeoffAreaTable obj = new TakeoffAreaTable();

            obj.Id            = Id;
            obj.BlankFill     = BlankFill;
            obj.ConnectedLine = ConnectedLine;
            obj.BezierTension = BezierTension;
            return(obj);
        }