Пример #1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfPolygonSplineMesh polygonSplineMesh = (DxfPolygonSplineMesh)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (polygonSplineMesh == null)
            {
                polygonSplineMesh = new DxfPolygonSplineMesh();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)polygonSplineMesh);
                polygonSplineMesh.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)polygonSplineMesh);
        }
Пример #2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfPolygonSplineMesh polygonSplineMesh = (DxfPolygonSplineMesh)from;

            this.ushort_0 = polygonSplineMesh.ushort_0;
            this.ushort_1 = polygonSplineMesh.ushort_1;
            this.ushort_2 = polygonSplineMesh.ushort_2;
            this.ushort_3 = polygonSplineMesh.ushort_3;
            DxfPolygonSplineMesh.Clone((IList <DxfVertex3D>)polygonSplineMesh.dxfHandledObjectCollection_1, (IList <DxfVertex3D>) this.dxfHandledObjectCollection_1, cloneContext);
            DxfPolygonSplineMesh.Clone((IList <DxfVertex3D>)polygonSplineMesh.dxfHandledObjectCollection_2, (IList <DxfVertex3D>) this.dxfHandledObjectCollection_2, cloneContext);
            this.splineType_0 = polygonSplineMesh.splineType_0;
        }
Пример #3
0
 public virtual void Visit(DxfPolygonSplineMesh mesh)
 {
 }
Пример #4
0
 public virtual void Visit(DxfPolygonSplineMesh mesh)
 {
     this.VisitEntity((DxfEntity)mesh);
 }