Exemple #1
0
        internal override void Read(Class434 or, Class259 objectBuilder)
        {
            base.Read(or, objectBuilder);
            Interface30 objectBitStream = or.ObjectBitStream;

            if (or.Builder.Version > DxfVersion.Dxf21)
            {
                this.short_0 = objectBitStream.imethod_14();
            }
            this.contentType_0      = (MLeader.ContentType)objectBitStream.imethod_14();
            this.drawMLeaderOrder_0 = (MLeader.DrawMLeaderOrder)objectBitStream.imethod_14();
            this.drawLeaderOrder_0  = (MLeader.DrawLeaderOrder)objectBitStream.imethod_14();
            this.int_0        = objectBitStream.imethod_11();
            this.double_0     = objectBitStream.imethod_8();
            this.double_1     = objectBitStream.imethod_8();
            this.leaderType_0 = (MLeader.LeaderType)objectBitStream.imethod_14();
            this.color_0      = objectBitStream.imethod_22();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_3 = o));
            this.int_1    = objectBitStream.imethod_11();
            this.bool_0   = objectBitStream.imethod_6();
            this.double_2 = objectBitStream.imethod_8();
            this.bool_1   = objectBitStream.imethod_6();
            this.double_3 = objectBitStream.imethod_8();
            this.string_0 = objectBitStream.ReadString();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_4 = o));
            this.double_4 = objectBitStream.imethod_8();
            this.string_1 = objectBitStream.ReadString();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_5 = o));
            this.textAttachment_0 = (MLeader.TextAttachment)objectBitStream.imethod_14();
            this.textAttachment_1 = (MLeader.TextAttachment)objectBitStream.imethod_14();
            this.textAngleType_0  = (MLeader.TextAngleType)objectBitStream.imethod_14();
            this.textAlignment_0  = (MLeader.TextAlignment)objectBitStream.imethod_14();
            this.color_1          = objectBitStream.imethod_22();
            this.double_5         = objectBitStream.imethod_8();
            this.bool_2           = objectBitStream.imethod_6();
            this.bool_3           = objectBitStream.imethod_6();
            this.double_6         = objectBitStream.imethod_8();
            or.method_78((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_6 = o));
            this.color_2               = objectBitStream.imethod_22();
            this.vector3D_0            = objectBitStream.imethod_51();
            this.bool_4                = objectBitStream.imethod_6();
            this.double_7              = objectBitStream.imethod_8();
            this.bool_5                = objectBitStream.imethod_6();
            this.blockConnectionType_0 = (MLeader.BlockConnectionType)objectBitStream.imethod_14();
            this.double_8              = objectBitStream.imethod_8();
            this.bool_7                = objectBitStream.imethod_6();
            this.bool_6                = objectBitStream.imethod_6();
            this.double_9              = objectBitStream.imethod_8();
            if (or.Builder.Version > DxfVersion.Dxf21)
            {
                this.textAttachmentDirection_0 = (MLeader.TextAttachmentDirection)objectBitStream.imethod_14();
                this.textAttachment_3          = (MLeader.TextAttachment)objectBitStream.imethod_14();
                this.textAttachment_2          = (MLeader.TextAttachment)objectBitStream.imethod_14();
            }
            if (or.Builder.Version <= DxfVersion.Dxf24)
            {
                return;
            }
            this.bool_8 = objectBitStream.imethod_6();
        }
Exemple #2
0
 public Class551(DxfTableStyle tableStyle)
     : this()
 {
     if (tableStyle == null)
     {
         throw new ArgumentNullException(nameof(tableStyle));
     }
     this.dxfObjectReference_0 = DxfObjectReference.GetReference((IDxfHandledObject)tableStyle);
 }
Exemple #3
0
 public void CopyFrom(DxfDictionaryEntry from, CloneContext cloneContext)
 {
     this.string_0 = from.string_0;
     this.bool_0   = from.bool_0;
     if (from.dxfObjectReference_0 == null)
     {
         return;
     }
     this.dxfObjectReference_0 = from.dxfObjectReference_0.Value != null ? ((DxfHandledObject)((DxfHandledObject)from.dxfObjectReference_0.Value).Clone(cloneContext)).Reference : DxfObjectReference.Null;
 }
Exemple #4
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfHatchViewContextData hatchViewContextData = (DxfHatchViewContextData)from;

            this.dxfObjectReference_4 = hatchViewContextData.dxfObjectReference_4;
            this.vector3D_1           = hatchViewContextData.vector3D_1;
            this.double_1             = hatchViewContextData.double_1;
            this.bool_1 = hatchViewContextData.bool_1;
        }
Exemple #5
0
 public void SetImageDef(DxfImageDef imageDef, bool updateAxes)
 {
     this.dxfObjectReference_6 = DxfObjectReference.GetReference((IDxfHandledObject)imageDef);
     if (!updateAxes || imageDef == null)
     {
         return;
     }
     this.vector3D_0 = new WW.Math.Vector3D(imageDef.DefaultPixelSize.X, 0.0, 0.0);
     this.vector3D_1 = new WW.Math.Vector3D(0.0, imageDef.DefaultPixelSize.Y, 0.0);
     this.size2D_0   = imageDef.Size;
 }
Exemple #6
0
 public void ResolveReferences(Class374 modelBuilder)
 {
     if (this.ulong_0 == 0UL)
     {
         this.action_0(DxfObjectReference.Null);
     }
     else
     {
         this.action_0(DxfObjectReference.GetReference((IDxfHandledObject)modelBuilder.method_3(this.ulong_0)));
     }
 }
Exemple #7
0
            public override void ResolveReferences(Class374 modelBuilder)
            {
                base.ResolveReferences(modelBuilder);
                DxfViewport dxfViewport = modelBuilder.method_4 <DxfViewport>(this.ViewportHandle);

                if (dxfViewport == null)
                {
                    return;
                }
                ((DxfHatchViewContextData)this.HandledObject).dxfObjectReference_4 = DxfObjectReference.GetReference((IDxfHandledObject)dxfViewport);
            }
Exemple #8
0
        public override void CopyFrom(DxfHandledObject from, CloneContext cloneContext)
        {
            base.CopyFrom(from, cloneContext);
            DxfViewport dxfViewport = (DxfViewport)from;

            this.point3D_0  = dxfViewport.point3D_0;
            this.size2D_0   = dxfViewport.size2D_0;
            this.point2D_0  = dxfViewport.point2D_0;
            this.point2D_1  = dxfViewport.point2D_1;
            this.vector2D_0 = dxfViewport.vector2D_0;
            this.vector2D_1 = dxfViewport.vector2D_1;
            this.vector3D_0 = dxfViewport.vector3D_0;
            this.point3D_1  = dxfViewport.point3D_1;
            this.double_1   = dxfViewport.double_1;
            this.double_2   = dxfViewport.double_2;
            this.double_3   = dxfViewport.double_3;
            this.double_4   = dxfViewport.double_4;
            this.double_5   = dxfViewport.double_5;
            this.double_6   = dxfViewport.double_6;
            this.double_7   = dxfViewport.double_7;
            foreach (DxfLayer from1 in dxfViewport.dxfHandledObjectCollection_1)
            {
                DxfLayer layer = Class906.GetLayer(cloneContext, from1);
                if (!this.dxfHandledObjectCollection_1.Contains(layer))
                {
                    this.dxfHandledObjectCollection_1.Add(layer);
                }
            }
            this.StatusFlags          = dxfViewport.viewportStatusFlags_0;
            this.dxfObjectReference_6 = DxfObjectReference.Null;
            this.string_1             = dxfViewport.string_1;
            this.renderMode_0         = dxfViewport.renderMode_0;
            this.bool_2               = dxfViewport.bool_2;
            this.bool_3               = dxfViewport.bool_3;
            this.dxfUcs_0             = Class906.smethod_2(cloneContext, dxfViewport.dxfUcs_0);
            this.orthographicType_0   = dxfViewport.orthographicType_0;
            this.shadePlotMode_0      = dxfViewport.shadePlotMode_0;
            this.short_1              = dxfViewport.short_1;
            this.bool_4               = dxfViewport.bool_4;
            this.lightingType_0       = dxfViewport.lightingType_0;
            this.double_8             = dxfViewport.double_8;
            this.double_9             = dxfViewport.double_9;
            this.color_0              = dxfViewport.color_0;
            this.ViewportEntityHeader = dxfViewport.dxfViewportEntityHeader_0 != null ? (DxfViewportEntityHeader)dxfViewport.dxfViewportEntityHeader_0.Clone(cloneContext) : (DxfViewportEntityHeader)null;
            this.method_23();
        }
Exemple #9
0
 internal void SetValue(DxfObject value, bool addPersistentReactor)
 {
     this.dxfObjectReference_0 = DxfObjectReference.GetReference((IDxfHandledObject)value);
     if (this.dxfObjectReference_0 == null)
     {
         return;
     }
     if (value is INamedObject)
     {
         this.string_0 = (string)null;
     }
     if (this.dxfDictionary_0 == null)
     {
         return;
     }
     this.dxfDictionary_0.method_10((IDictionaryEntry)this, addPersistentReactor);
 }
Exemple #10
0
 internal void method_0(DxfLineType lineType)
 {
     this.dxfObjectReference_0 = DxfObjectReference.GetReference((IDxfHandledObject)lineType);
 }
Exemple #11
0
 public DxfDictionaryEntry(DxfObject value)
 {
     this.dxfObjectReference_0 = DxfObjectReference.GetReference((IDxfHandledObject)value);
 }
Exemple #12
0
 public DxfDictionaryEntry(string name, DxfObject value, bool valueReferenceIsHard)
 {
     this.string_0             = name;
     this.dxfObjectReference_0 = DxfObjectReference.GetReference((IDxfHandledObject)value);
     this.bool_0 = valueReferenceIsHard;
 }
Exemple #13
0
 public Corner(DxfVertex3D vertex)
 {
     this.dxfObjectReference_0 = DxfObjectReference.GetReference((IDxfHandledObject)vertex);
     this.bool_0 = true;
 }
Exemple #14
0
        private void method_18(DxfReader r, Class259 objectBuilder)
        {
            this.bool_2 = true;
            DxfVersion version = r.ModelBuilder.Version;

            this.dwgVersion_0 = Class885.smethod_3(version);
            if (this.stream_0 == null)
            {
                this.stream_0 = (Stream) new PagedMemoryStream(1024L, 1024);
            }
            if (this.dwgVersion_0 > DwgVersion.Dwg1018 && this.stream_1 == null)
            {
                this.stream_1 = (Stream) new PagedMemoryStream(1024L, 1024);
            }
            r.method_85();
            Encoding    encoding   = Encodings.GetEncoding((int)r.Model.Header.DrawingCodePage);
            Interface40 nterface40 = (Interface40) new Class725(this.stream_0, encoding, version);

            DxfProxyEntity.Class361 class361 = new DxfProxyEntity.Class361((Interface29) new Class990((Stream)null, nterface40, this.dwgVersion_0 > DwgVersion.Dwg1018 ? (Interface40) new Class728(this.stream_1, encoding, version) : nterface40, nterface40));
            while (r.CurrentGroup.Code != 0)
            {
                switch (Class820.smethod_2(r.CurrentGroup.Code))
                {
                case Enum5.const_8:
                case Enum5.const_9:
                case Enum5.const_14:
                case Enum5.const_15:
                    ulong            handle           = (ulong)r.CurrentGroup.Value;
                    DxfHandledObject dxfHandledObject = new DxfHandledObject();
                    dxfHandledObject.SetHandle(handle);
                    DxfObjectReference dxfObjectReference = new DxfObjectReference((IDxfHandledObject)dxfHandledObject);
                    Struct18           group1             = new Struct18(r.CurrentGroup.Code, (object)dxfObjectReference);
                    class361.imethod_0(group1);
                    r.method_85();
                    continue;

                case Enum5.const_13:
                    int             code    = r.CurrentGroup.Code;
                    WW.Math.Point3D point3D = new WW.Math.Point3D((double)r.CurrentGroup.Value, 0.0, 0.0);
                    r.method_85();
                    if (r.CurrentGroup.Code == code + 10)
                    {
                        point3D.Y = (double)r.CurrentGroup.Value;
                        r.method_85();
                        if (r.CurrentGroup.Code == code + 20)
                        {
                            point3D.Z = (double)r.CurrentGroup.Value;
                            r.method_85();
                        }
                    }
                    Struct18 group2 = new Struct18(code, (object)point3D);
                    class361.imethod_0(group2);
                    continue;

                default:
                    class361.imethod_0(r.CurrentGroup);
                    r.method_85();
                    continue;
                }
            }
        }
Exemple #15
0
        private bool method_10(DxfReader r, Class259 objectBuilder)
        {
            switch (r.CurrentGroup.Code)
            {
            case 3:
                this.string_0 = (string)r.CurrentGroup.Value;
                break;

            case 40:
                this.double_0 = (double)r.CurrentGroup.Value * (System.Math.PI / 180.0);
                break;

            case 41:
                this.double_1 = (double)r.CurrentGroup.Value * (System.Math.PI / 180.0);
                break;

            case 42:
                this.double_2 = (double)r.CurrentGroup.Value;
                break;

            case 43:
                this.double_3 = (double)r.CurrentGroup.Value;
                break;

            case 44:
                this.double_4 = (double)r.CurrentGroup.Value;
                break;

            case 45:
                this.double_5 = (double)r.CurrentGroup.Value;
                break;

            case 46:
                this.double_6 = (double)r.CurrentGroup.Value;
                break;

            case 47:
                this.vector3D_0.X = (double)r.CurrentGroup.Value;
                break;

            case 49:
                this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                break;

            case 90:
                this.int_0 = (int)r.CurrentGroup.Value;
                break;

            case 91:
                this.color_0 = MLeader.smethod_0((int)r.CurrentGroup.Value);
                break;

            case 92:
                this.int_1 = (int)r.CurrentGroup.Value;
                break;

            case 93:
                this.color_1 = MLeader.smethod_0((int)r.CurrentGroup.Value);
                break;

            case 94:
                this.color_2 = MLeader.smethod_0((int)r.CurrentGroup.Value);
                break;

            case 140:
                this.vector3D_0.Z = (double)r.CurrentGroup.Value;
                break;

            case 141:
                this.double_7 = (double)r.CurrentGroup.Value * (System.Math.PI / 180.0);
                break;

            case 142:
                this.double_8 = (double)r.CurrentGroup.Value;
                break;

            case 143:
                this.double_9 = (double)r.CurrentGroup.Value;
                break;

            case 170:
                this.contentType_0 = (MLeader.ContentType)r.CurrentGroup.Value;
                break;

            case 171:
                this.drawMLeaderOrder_0 = (MLeader.DrawMLeaderOrder)r.CurrentGroup.Value;
                break;

            case 172:
                this.drawLeaderOrder_0 = (MLeader.DrawLeaderOrder)r.CurrentGroup.Value;
                break;

            case 173:
                this.leaderType_0 = (MLeader.LeaderType)r.CurrentGroup.Value;
                break;

            case 174:
                this.textAttachment_0 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 175:
                this.textAngleType_0 = (MLeader.TextAngleType)r.CurrentGroup.Value;
                break;

            case 176:
                this.textAlignment_0 = (MLeader.TextAlignment)r.CurrentGroup.Value;
                break;

            case 177:
                this.blockConnectionType_0 = (MLeader.BlockConnectionType)r.CurrentGroup.Value;
                break;

            case 178:
                this.textAttachment_1 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 179:
                this.short_0 = (short)r.CurrentGroup.Value;
                break;

            case 271:
                this.textAttachmentDirection_0 = (MLeader.TextAttachmentDirection)r.CurrentGroup.Value;
                break;

            case 272:
                this.textAttachment_2 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 273:
                this.textAttachment_3 = (MLeader.TextAttachment)(short) r.CurrentGroup.Value;
                break;

            case 290:
                this.bool_0 = (bool)r.CurrentGroup.Value;
                break;

            case 291:
                this.bool_1 = (bool)r.CurrentGroup.Value;
                break;

            case 292:
                this.bool_2 = (bool)r.CurrentGroup.Value;
                break;

            case 293:
                this.bool_4 = (bool)r.CurrentGroup.Value;
                break;

            case 294:
                this.bool_5 = (bool)r.CurrentGroup.Value;
                break;

            case 295:
                this.bool_6 = (bool)r.CurrentGroup.Value;
                break;

            case 296:
                this.bool_7 = (bool)r.CurrentGroup.Value;
                break;

            case 297:
                this.bool_3 = (bool)r.CurrentGroup.Value;
                break;

            case 298:
                this.bool_8 = (bool)r.CurrentGroup.Value;
                break;

            case 300:
                this.string_1 = (string)r.CurrentGroup.Value;
                break;

            case 340:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_3 = o));
                break;

            case 341:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_4 = o));
                break;

            case 342:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_5 = o));
                break;

            case 343:
                r.method_90((System.Action <DxfObjectReference>)(o => this.dxfObjectReference_6 = o));
                break;

            default:
                return(this.method_6(r, objectBuilder));
            }
            r.method_85();
            return(true);
        }
Exemple #16
0
 public Corner(DxfVertex3D vertex, bool edgeVisible)
 {
     this.dxfObjectReference_0 = DxfObjectReference.GetReference((IDxfHandledObject)vertex);
     this.bool_0 = edgeVisible;
 }
Exemple #17
0
 protected DxfAnnotationScaleObjectContextData(DxfScale scale)
 {
     this.dxfObjectReference_3 = DxfObjectReference.GetReference((IDxfHandledObject)scale);
 }
Exemple #18
0
        private bool method_13(DxfReader r, Class259 objectBuilder)
        {
            switch (r.CurrentGroup.Code)
            {
            case 10:
                this.point3D_0.X = (double)r.CurrentGroup.Value;
                goto case 93;

            case 11:
                this.point3D_1.X = (double)r.CurrentGroup.Value;
                goto case 93;

            case 12:
                this.vector2D_0.X = (double)r.CurrentGroup.Value;
                goto case 93;

            case 13:
                this.list_0.Add(new GeoMeshPoint(new WW.Math.Point2D((double)r.CurrentGroup.Value, 0.0), WW.Math.Point2D.Zero));
                goto case 93;

            case 14:
                if (this.list_0.Count > 0)
                {
                    GeoMeshPoint geoMeshPoint = this.list_0[this.list_0.Count - 1];
                    geoMeshPoint.Destination = new WW.Math.Point2D((double)r.CurrentGroup.Value, geoMeshPoint.Destination.Y);
                    goto case 93;
                }
                else
                {
                    this.list_0.Add(new GeoMeshPoint(WW.Math.Point2D.Zero, new WW.Math.Point2D((double)r.CurrentGroup.Value, 0.0)));
                    goto case 93;
                }

            case 20:
                this.point3D_0.Y = (double)r.CurrentGroup.Value;
                goto case 93;

            case 21:
                this.point3D_1.Y = (double)r.CurrentGroup.Value;
                goto case 93;

            case 22:
                this.vector2D_0.Y = (double)r.CurrentGroup.Value;
                goto case 93;

            case 23:
                if (this.list_0.Count > 0)
                {
                    GeoMeshPoint geoMeshPoint = this.list_0[this.list_0.Count - 1];
                    geoMeshPoint.Source = new WW.Math.Point2D(geoMeshPoint.Source.X, (double)r.CurrentGroup.Value);
                    goto case 93;
                }
                else
                {
                    this.list_0.Add(new GeoMeshPoint(new WW.Math.Point2D(0.0, (double)r.CurrentGroup.Value), WW.Math.Point2D.Zero));
                    goto case 93;
                }

            case 24:
                if (this.list_0.Count > 0)
                {
                    GeoMeshPoint geoMeshPoint = this.list_0[this.list_0.Count - 1];
                    geoMeshPoint.Destination = new WW.Math.Point2D(geoMeshPoint.Destination.X, (double)r.CurrentGroup.Value);
                    goto case 93;
                }
                else
                {
                    this.list_0.Add(new GeoMeshPoint(WW.Math.Point2D.Zero, new WW.Math.Point2D(0.0, (double)r.CurrentGroup.Value)));
                    goto case 93;
                }

            case 30:
                this.point3D_0.Z = (double)r.CurrentGroup.Value;
                goto case 93;

            case 31:
                this.point3D_1.Z = (double)r.CurrentGroup.Value;
                goto case 93;

            case 40:
                this.vector2D_1.X = (double)r.CurrentGroup.Value;
                goto case 93;

            case 41:
                this.vector2D_1.Y = (double)r.CurrentGroup.Value;
                goto case 93;

            case 70:
                this.designCoordinatesType_0 = (DesignCoordinatesType)(short)r.CurrentGroup.Value;
                goto case 93;

            case 90:
                this.int_0 = (int)r.CurrentGroup.Value;
                goto case 93;

            case 91:
                this.unitsValue_0 = (UnitsValue)r.CurrentGroup.Value;
                goto case 93;

            case 92:
                this.unitsValue_1 = (UnitsValue)r.CurrentGroup.Value;
                goto case 93;

            case 93:
            case 96:
                r.method_85();
                return(true);

            case 95:
                this.scaleEstimationMethod_0 = (ScaleEstimationMethod)r.CurrentGroup.Value;
                goto case 93;

            case 97:
                this.list_1.Add(new GeoMeshFace()
                {
                    FaceIndex1 = (int)r.CurrentGroup.Value
                });
                goto case 93;

            case 98:
                if (this.list_1.Count > 0)
                {
                    this.list_1[this.list_1.Count - 1].FaceIndex2 = (int)r.CurrentGroup.Value;
                    goto case 93;
                }
                else
                {
                    this.list_1.Add(new GeoMeshFace()
                    {
                        FaceIndex2 = (int)r.CurrentGroup.Value
                    });
                    goto case 93;
                }

            case 99:
                if (this.list_1.Count > 0)
                {
                    this.list_1[this.list_1.Count - 1].FaceIndex3 = (int)r.CurrentGroup.Value;
                    goto case 93;
                }
                else
                {
                    this.list_1.Add(new GeoMeshFace()
                    {
                        FaceIndex3 = (int)r.CurrentGroup.Value
                    });
                    goto case 93;
                }

            case 141:
                this.double_0 = (double)r.CurrentGroup.Value;
                goto case 93;

            case 142:
                this.double_1 = (double)r.CurrentGroup.Value;
                goto case 93;

            case 143:
                this.double_2 = (double)r.CurrentGroup.Value;
                goto case 93;

            case 210:
                this.vector3D_0.X = (double)r.CurrentGroup.Value;
                goto case 93;

            case 220:
                this.vector3D_0.Y = (double)r.CurrentGroup.Value;
                goto case 93;

            case 230:
                this.vector3D_0.Z = (double)r.CurrentGroup.Value;
                goto case 93;

            case 294:
                this.bool_0 = (bool)r.CurrentGroup.Value;
                goto case 93;

            case 301:
            case 303:
                this.string_0 += ((string)r.CurrentGroup.Value).Replace("^J", "\n");
                goto case 93;

            case 302:
                this.GeoRssTag = (string)r.CurrentGroup.Value;
                goto case 93;

            case 305:
                this.ObservationFromTag = (string)r.CurrentGroup.Value;
                goto case 93;

            case 306:
                this.ObservationToTag = (string)r.CurrentGroup.Value;
                goto case 93;

            case 307:
                this.ObservationCoverageTag = (string)r.CurrentGroup.Value;
                goto case 93;

            case 330:
                r.ModelBuilder.method_10((ulong)r.CurrentGroup.Value, (System.Action <DxfObjectReference>)(o => this.dxfObjectReference_3 = o));
                goto case 93;

            default:
                return(this.method_6(r, objectBuilder));
            }
        }
Exemple #19
0
        internal override void Read(Class434 or, Class259 ob)
        {
            base.Read(or, ob);
            Interface30 objectBitStream = or.ObjectBitStream;

            this.int_0 = objectBitStream.imethod_11();
            or.Builder.method_10(objectBitStream.imethod_32(true), (System.Action <DxfObjectReference>)(o => this.dxfObjectReference_3 = o));
            this.designCoordinatesType_0 = (DesignCoordinatesType)objectBitStream.imethod_14();
            switch (this.int_0)
            {
            case 1:
                this.point3D_1    = objectBitStream.imethod_39();
                this.unitsValue_0 = (UnitsValue)objectBitStream.imethod_11();
                this.unitsValue_1 = this.unitsValue_0;
                this.point3D_0    = objectBitStream.imethod_39();
                objectBitStream.imethod_39();
                this.vector3D_0 = objectBitStream.imethod_51();
                this.vector2D_0 = Vector2D.FromAngle(System.Math.PI / 2.0 - objectBitStream.imethod_8());
                objectBitStream.imethod_39();
                this.string_0     = objectBitStream.ReadString();
                this.string_1     = objectBitStream.ReadString();
                this.vector2D_1.X = objectBitStream.imethod_8();
                this.vector2D_1.Y = this.vector2D_1.X;
                objectBitStream.ReadString();
                objectBitStream.ReadString();
                break;

            case 2:
            case 3:
                this.point3D_0               = objectBitStream.imethod_39();
                this.point3D_1               = objectBitStream.imethod_39();
                this.vector2D_1.X            = objectBitStream.imethod_8();
                this.unitsValue_0            = (UnitsValue)objectBitStream.imethod_11();
                this.vector2D_1.Y            = objectBitStream.imethod_8();
                this.unitsValue_1            = (UnitsValue)objectBitStream.imethod_11();
                this.vector3D_0              = objectBitStream.imethod_51();
                this.vector2D_0              = objectBitStream.imethod_50();
                this.scaleEstimationMethod_0 = (ScaleEstimationMethod)objectBitStream.imethod_11();
                this.double_0 = objectBitStream.imethod_8();
                this.bool_0   = objectBitStream.imethod_6();
                this.double_1 = objectBitStream.imethod_8();
                this.double_2 = objectBitStream.imethod_8();
                this.string_0 = objectBitStream.ReadString();
                this.string_1 = objectBitStream.ReadString();
                break;
            }
            this.string_2 = objectBitStream.ReadString();
            this.string_3 = objectBitStream.ReadString();
            this.string_4 = objectBitStream.ReadString();
            int num1 = objectBitStream.imethod_11();

            for (int index = 0; index < num1; ++index)
            {
                this.list_0.Add(new GeoMeshPoint(objectBitStream.imethod_38(), objectBitStream.imethod_38()));
            }
            int num2 = objectBitStream.imethod_11();

            for (int index = 0; index < num2; ++index)
            {
                this.list_1.Add(new GeoMeshFace(objectBitStream.imethod_11(), objectBitStream.imethod_11(), objectBitStream.imethod_11()));
            }
            if (this.int_0 != 1 || !objectBitStream.imethod_6())
            {
                return;
            }
            objectBitStream.imethod_6();
            objectBitStream.imethod_38();
            objectBitStream.imethod_38();
            objectBitStream.imethod_11();
            objectBitStream.imethod_11();
            objectBitStream.imethod_38();
            objectBitStream.imethod_38();
            objectBitStream.imethod_6();
            objectBitStream.imethod_8();
            objectBitStream.imethod_8();
            this.scaleEstimationMethod_0 = (ScaleEstimationMethod)objectBitStream.imethod_11();
            this.double_0 = objectBitStream.imethod_8();
            this.bool_0   = objectBitStream.imethod_6();
            this.double_1 = objectBitStream.imethod_8();
            this.double_2 = objectBitStream.imethod_8();
        }