Beispiel #1
0
        private int method_16(Point point_0)
        {
            bool flag = true;
            int  num  = 0;
            int  num2 = 0;

            while (flag)
            {
                num2++;
                if (num2 > 10)
                {
                    throw new ArithmeticException("Random ray intersection failed after 10 retries. Some boundaries can not be respected.");
                }
                num = 0;
                Class17 @class = Class17.smethod_0(point_0);
                for (int i = 0; i < this.boundaries.Count; i++)
                {
                    Edge edge = this.boundaries[i].Edge;
                    if (@class.method_5(edge, ref flag))
                    {
                        num++;
                    }
                    if (flag)
                    {
                        break;
                    }
                }
                if (this.boundaries.Count <= 0)
                {
                }
            }
            return(num);
        }