Example #1
0
    // Token: 0x060004F4 RID: 1268 RVA: 0x000293E0 File Offset: 0x000275E0
    private int method_11(char[] char_2, int int_1, int int_2)
    {
        int i = int_2;

        if (this.byte_1 == null)
        {
            this.byte_1 = new byte[128];
        }
        while (i > 0)
        {
            int num = i;
            if (this.bool_0)
            {
                num <<= 1;
            }
            if (num > 128)
            {
                num = 128;
            }
            int chars;
            if (this.bool_1)
            {
                Class13 @class    = (Class13)this.class11_0;
                int     byteIndex = @class.method_3();
                num = @class.method_4(num);
                if (num == 0)
                {
                    return(int_2 - i);
                }
                chars = this.decoder_0.GetChars(@class.method_1(), byteIndex, num, char_2, int_1);
            }
            else
            {
                num = this.class11_0.vmethod_11(this.byte_1, 0, num);
                if (num == 0)
                {
                    return(int_2 - i);
                }
                chars = this.decoder_0.GetChars(this.byte_1, 0, num, char_2, int_1);
            }
            i     -= chars;
            int_1 += chars;
        }
        return(int_2);
    }
Example #2
0
    internal Class18(Class13 class13_0)
    {
        //System.ComponentModel.LicenseManager.Validate(typeof(Class18));
        //base..ctor();
        this.point_0 = class13_0.method_2().method_0();
        this.point_1 = class13_0.method_4().method_0();
        this.point_2 = class13_0.method_6().method_0();
        double x  = this.point_0.X;
        double y  = this.point_0.Y;
        double z  = this.point_0.Z;
        double x2 = this.point_1.X;
        double y2 = this.point_1.Y;
        double z2 = this.point_1.Z;
        double x3 = this.point_2.X;
        double y3 = this.point_2.Y;
        double z3 = this.point_2.Z;

        this.double_0 = x * (y2 * z3 - z2 * y3) + x2 * (z * y3 - y * z3) + x3 * (y * z2 - z * y2);
        this.double_1 = y * (z3 - z2) + y2 * (z - z3) + y3 * (z2 - z);
        this.double_2 = x * (z2 - z3) + x2 * (z3 - z) + x3 * (z - z2);
        this.double_3 = x * (y3 - y2) + x2 * (y - y3) + x3 * (y2 - y);
    }
Example #3
0
 private void method_1(List <Class25> vertexList, ref Class21 class21_0)
 {
     for (int i = vertexList.Count - 1; i >= 0; i--)
     {
         this.vmethod_0(null, null);
         Class25 @class = vertexList[i];
         try
         {
             if (@class.method_2().Count != 0)
             {
                 List <Class23> list = class21_0.method_7(@class);
                 if (list != null)
                 {
                     if (list.Count < 3)
                     {
                         this.list_1.Add(@class);
                     }
                     else
                     {
                         List <Class13> list2 = new List <Class13>();
                         for (int j = 0; j < list.Count; j++)
                         {
                             Class13 class2 = new Class13(list[j].method_0(), list[j].method_2(), @class);
                             list2.Add(class2);
                             Class13 class3 = list[j].method_4()[0];
                             Class13 class4 = list[j].method_4()[1];
                             for (int k = 0; k < class3.method_10().Count; k++)
                             {
                                 Class25 class5 = class3.method_10()[k];
                                 if (!(class5 == @class) && !class4.method_15(class5) && class2.method_15(class5))
                                 {
                                     class2.method_10().Add(class5);
                                     class5.method_2().Add(class2);
                                 }
                             }
                             for (int l = 0; l < class4.method_10().Count; l++)
                             {
                                 Class25 class6 = class4.method_10()[l];
                                 if (!(class6 == @class) && class2.method_15(class6))
                                 {
                                     class2.method_10().Add(class6);
                                     class6.method_2().Add(class2);
                                 }
                             }
                             class2.method_8()[2] = class4;
                             if (class4.method_6() == list[j].method_0() && class4.method_4() == list[j].method_2())
                             {
                                 class4.method_8()[0] = class2;
                             }
                             if (class4.method_2() == list[j].method_0() && class4.method_6() == list[j].method_2())
                             {
                                 class4.method_8()[1] = class2;
                             }
                             if (class4.method_4() == list[j].method_0() && class4.method_2() == list[j].method_2())
                             {
                                 class4.method_8()[2] = class2;
                             }
                         }
                         list2[0].method_8()[0] = list2[1];
                         list2[0].method_8()[1] = list2[list2.Count - 1];
                         for (int m = 1; m < list2.Count - 1; m++)
                         {
                             list2[m].method_8()[0] = list2[m + 1];
                             list2[m].method_8()[1] = list2[m - 1];
                         }
                         list2[list2.Count - 1].method_8()[0] = list2[0];
                         list2[list2.Count - 1].method_8()[1] = list2[list2.Count - 2];
                         for (int n = 0; n < @class.method_2().Count; n++)
                         {
                             @class.method_2()[n].method_1(false);
                         }
                         class21_0.method_0().AddRange(list2);
                     }
                 }
             }
         }
         catch (System.Exception ex)
         {
             this.list_1.Add(@class);
         }
     }
 }