Esempio n. 1
0
        public override IGraphCloneable Clone(CloneContext cloneContext)
        {
            DxfGeoData dxfGeoData = (DxfGeoData)cloneContext.GetExistingClone((IGraphCloneable)this);

            if (dxfGeoData == null)
            {
                dxfGeoData = new DxfGeoData();
                cloneContext.RegisterClone((IGraphCloneable)this, (IGraphCloneable)dxfGeoData);
                dxfGeoData.CopyFrom((DxfHandledObject)this, cloneContext);
            }
            return((IGraphCloneable)dxfGeoData);
        }
Esempio n. 2
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfGeoData dxfGeoData = (DxfGeoData)from;

            this.int_0 = dxfGeoData.int_0;
            this.designCoordinatesType_0 = dxfGeoData.designCoordinatesType_0;
            this.HostBlock               = Class906.smethod_0(cloneContext, dxfGeoData.HostBlock, false);
            this.point3D_0               = dxfGeoData.point3D_0;
            this.point3D_1               = dxfGeoData.point3D_1;
            this.vector2D_0              = dxfGeoData.vector2D_0;
            this.vector2D_1              = dxfGeoData.vector2D_1;
            this.unitsValue_0            = dxfGeoData.unitsValue_0;
            this.unitsValue_1            = dxfGeoData.unitsValue_1;
            this.vector3D_0              = dxfGeoData.vector3D_0;
            this.scaleEstimationMethod_0 = dxfGeoData.scaleEstimationMethod_0;
            this.bool_0   = dxfGeoData.bool_0;
            this.double_0 = dxfGeoData.double_0;
            this.double_1 = dxfGeoData.double_1;
            this.double_2 = dxfGeoData.double_2;
            this.string_0 = dxfGeoData.string_0;
            this.string_1 = dxfGeoData.string_1;
            this.string_2 = dxfGeoData.string_2;
            this.string_3 = dxfGeoData.string_3;
            this.string_4 = dxfGeoData.string_4;
            this.list_0.Clear();
            foreach (GeoMeshPoint geoMeshPoint in dxfGeoData.list_0)
            {
                this.list_0.Add(new GeoMeshPoint(geoMeshPoint.Source, geoMeshPoint.Destination));
            }
            this.list_1.Clear();
            foreach (GeoMeshFace geoMeshFace in dxfGeoData.list_1)
            {
                this.list_1.Add(new GeoMeshFace(geoMeshFace.FaceIndex1, geoMeshFace.FaceIndex2, geoMeshFace.FaceIndex3));
            }
        }