Esempio n. 1
0
        public void ComputeHull()
        {
            if (this.pointSet_0 == null)
            {
                throw new InvalidOperationException("Can not compute convex hull: no point set defined.");
            }
            if (this.pointSet_0.Count < 4)
            {
                throw new ArgumentException("Can not compute 3d convex hull for less than four points.");
            }
            if (!Class20.bool_0)
            {
                Class20.smethod_0();
            }
            Class21 @class = new Class21(this);

            this.method_1(@class.method_2().GetRange(0, @class.method_2().Count - 4), ref @class);
            this.list_0 = new List <Triangle>();
            for (int i = 0; i < @class.method_0().Count; i++)
            {
                try
                {
                    if (@class.method_0()[i].method_0())
                    {
                        this.list_0.Add(@class.method_0()[i].method_16());
                    }
                }
                catch (System.Exception ex)
                {
                    this.int_0++;
                }
            }
            this.pointSet_1 = new PointSet();
            for (int j = 0; j < @class.method_2().Count; j++)
            {
                if (@class.method_2()[j].method_4())
                {
                    this.pointSet_1.Add(@class.method_2()[j].method_0());
                }
            }
        }