Beispiel #1
0
        internal override void Write(Class432 ow)
        {
            base.Write(ow);
            Interface29 objectWriter = ow.ObjectWriter;

            if (ow.Version > DxfVersion.Dxf21)
            {
                objectWriter.imethod_33(ow.Version > DxfVersion.Dxf24 ? 3 : 2);
                objectWriter.imethod_40((DxfHandledObject)this.HostBlock);
                objectWriter.imethod_32((short)this.designCoordinatesType_0);
                objectWriter.imethod_24(this.point3D_0);
                objectWriter.imethod_24(this.point3D_1);
                objectWriter.imethod_16(this.vector2D_1.X);
                objectWriter.imethod_33((int)this.unitsValue_0);
                objectWriter.imethod_16(this.vector2D_1.Y);
                objectWriter.imethod_33((int)this.unitsValue_1);
                objectWriter.imethod_29(this.vector3D_0);
                objectWriter.imethod_28(this.vector2D_0);
                objectWriter.imethod_33((int)this.scaleEstimationMethod_0);
                objectWriter.imethod_16(this.double_0);
                objectWriter.imethod_14(this.bool_0);
                objectWriter.imethod_16(this.double_1);
                objectWriter.imethod_16(this.double_2);
                objectWriter.imethod_4(this.string_0);
                objectWriter.imethod_4(this.string_1);
            }
            else
            {
                objectWriter.imethod_33(1);
                objectWriter.imethod_40((DxfHandledObject)this.HostBlock);
                objectWriter.imethod_32((short)this.designCoordinatesType_0);
                objectWriter.imethod_24(this.point3D_1);
                objectWriter.imethod_33((int)this.unitsValue_0);
                objectWriter.imethod_24(this.point3D_0);
                objectWriter.imethod_24(WW.Math.Point3D.Zero);
                objectWriter.imethod_29(this.vector3D_0);
                objectWriter.imethod_16(System.Math.PI / 2.0 - this.vector2D_0.GetAngle());
                objectWriter.imethod_24(new WW.Math.Point3D(1.0, 1.0, 1.0));
                objectWriter.imethod_4(this.string_0);
                objectWriter.imethod_4(this.string_1);
                objectWriter.imethod_16(this.vector2D_1.X);
                objectWriter.imethod_4(string.Empty);
                objectWriter.imethod_4(string.Empty);
            }
            objectWriter.imethod_4(this.string_2);
            objectWriter.imethod_4(this.string_3);
            objectWriter.imethod_4(this.string_4);
            objectWriter.imethod_33(this.list_0.Count);
            foreach (GeoMeshPoint geoMeshPoint in this.list_0)
            {
                objectWriter.imethod_25(geoMeshPoint.Source);
                objectWriter.imethod_25(geoMeshPoint.Destination);
            }
            objectWriter.imethod_33(this.list_1.Count);
            foreach (GeoMeshFace geoMeshFace in this.list_1)
            {
                objectWriter.imethod_33(geoMeshFace.FaceIndex1);
                objectWriter.imethod_33(geoMeshFace.FaceIndex2);
                objectWriter.imethod_33(geoMeshFace.FaceIndex3);
            }
            if (ow.Version > DxfVersion.Dxf21)
            {
                return;
            }
            objectWriter.imethod_14(true);
            objectWriter.imethod_14(false);
            objectWriter.imethod_20(this.point3D_1.Y);
            objectWriter.imethod_20(this.point3D_1.X);
            objectWriter.imethod_20(this.point3D_1.Y);
            objectWriter.imethod_20(this.point3D_1.X);
            objectWriter.imethod_33(0);
            objectWriter.imethod_33(0);
            objectWriter.imethod_25(WW.Math.Point2D.Zero);
            objectWriter.imethod_25(WW.Math.Point2D.Zero);
            objectWriter.imethod_14(false);
            objectWriter.imethod_16(this.vector2D_0.GetAngle() * (180.0 / System.Math.PI));
            objectWriter.imethod_16(this.vector2D_0.GetAngle());
            objectWriter.imethod_33((int)this.scaleEstimationMethod_0);
            objectWriter.imethod_16(this.double_0);
            objectWriter.imethod_14(this.bool_0);
            objectWriter.imethod_16(this.double_1);
            objectWriter.imethod_16(this.double_2);
        }