Example #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfPolygonMesh dxfPolygonMesh = (DxfPolygonMesh)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfPolygonMesh == null)
            {
                dxfPolygonMesh = new DxfPolygonMesh();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfPolygonMesh);
                dxfPolygonMesh.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfPolygonMesh);
        }
Example #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfPolygonMesh dxfPolygonMesh = (DxfPolygonMesh)from;

            this.ushort_0 = dxfPolygonMesh.ushort_0;
            this.ushort_1 = dxfPolygonMesh.ushort_1;
            this.dxfHandledObjectCollection_1.Clear();
            this.dxfHandledObjectCollection_1.Capacity = dxfPolygonMesh.dxfHandledObjectCollection_1.Count;
            foreach (DxfHandledObject dxfHandledObject in dxfPolygonMesh.dxfHandledObjectCollection_1)
            {
                this.dxfHandledObjectCollection_1.Add((DxfVertex3D)dxfHandledObject.Clone(cloneContext));
            }
        }
Example #3
0
 public virtual void Visit(DxfPolygonMesh mesh)
 {
 }
Example #4
0
 public virtual void Visit(DxfPolygonMesh mesh)
 {
     this.VisitEntity((DxfEntity)mesh);
 }