Esempio n. 1
0
        public static void smethod_1(Interface9 writer, Class1028.Enum49 value)
        {
            if (writer.FileFormatVersion > Class250.int_27)
            {
                writer.imethod_10(Class1028.string_0, (int)value);
            }
            else
            {
                string str;
                switch (value)
                {
                case Class1028.Enum49.const_0:
                    str = Class1028.string_0[0];
                    break;

                case Class1028.Enum49.const_1:
                    str = Class1028.string_0[1];
                    break;

                case Class1028.Enum49.const_2:
                    str = Class1028.string_0[2];
                    break;

                case Class1028.Enum49.const_3:
                    str = Class1028.string_0[3];
                    break;

                default:
                    throw new Exception0("Unknown b-spline type");
                }
                writer.imethod_13(str);
            }
        }
Esempio n. 2
0
        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);
                }
            }
        }