示例#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);
        }
示例#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));
            }
        }
示例#3
0
 public virtual void Visit(DxfPolygonMesh mesh)
 {
 }
示例#4
0
 public virtual void Visit(DxfPolygonMesh mesh)
 {
     this.VisitEntity((DxfEntity)mesh);
 }