예제 #1
0
파일: Class988.cs 프로젝트: 15831944/WW
        public void imethod_0(Interface8 reader)
        {
            this.enum23_0 = Class647.smethod_0(reader);
            if (this.enum23_0 == Class647.Enum23.const_2)
            {
                return;
            }
            this.int_2 = reader.imethod_5();
            this.int_3 = reader.imethod_5();
            if (this.enum23_0 == Class647.Enum23.const_1)
            {
                this.enum2_0 = Class195.smethod_0(reader);
            }
            this.enum34_0 = Class883.smethod_0(reader);
            this.enum34_1 = Class883.smethod_0(reader);
            this.enum49_0 = Class1028.smethod_0(reader);
            this.enum49_1 = Class1028.smethod_0(reader);
            int length1 = reader.imethod_5();
            int length2 = reader.imethod_5();
            int num1    = 2;
            int num2    = 2;

            this.double_0 = new double[length1];
            this.int_0    = new int[length1];
            for (int index = 0; index < length1; ++index)
            {
                this.double_0[index] = reader.imethod_8();
                this.int_0[index]    = reader.imethod_5();
                num1 += this.int_0[index];
            }
            this.double_1 = new double[length2];
            this.int_1    = new int[length2];
            for (int index = 0; index < length2; ++index)
            {
                this.double_1[index] = reader.imethod_8();
                this.int_1[index]    = reader.imethod_5();
                num2 += this.int_1[index];
            }
            int num3 = num1 - this.int_2 - 1;
            int num4 = num2 - this.int_3 - 1;

            this.point3D_0 = new Point3D[num3 * num4];
            if (this.enum23_0 == Class647.Enum23.const_1)
            {
                this.double_2 = new double[num3 * num4];
                for (int index = 0; index < this.point3D_0.Length; ++index)
                {
                    this.point3D_0[index] = Class794.smethod_15(reader);
                    this.double_2[index]  = reader.imethod_8();
                }
            }
            else
            {
                for (int index = 0; index < this.point3D_0.Length; ++index)
                {
                    this.point3D_0[index] = Class794.smethod_15(reader);
                }
            }
        }
예제 #2
0
        public static void smethod_1(Interface9 writer, Class195.Enum2 value)
        {
            string str;

            switch (value)
            {
            case Class195.Enum2.const_0:
                str = Class195.string_0[0];
                break;

            case Class195.Enum2.const_1:
                str = Class195.string_0[1];
                break;

            case Class195.Enum2.const_2:
                str = Class195.string_0[2];
                break;

            default:
                throw new Exception0("Unknown b-spline rationality type");
            }
            writer.imethod_13(str);
        }