Exemple #1
0
        private void SearchD(SURFACE s0)
        {
            /*
             * 针对某个面,在模型的点链中搜索某个满足条件的点
             */
            pi = s0.p1;
            pj = s0.p2;
            pk = s0.p3;
            pg = null;
            Node <PO> pt = null;

            soliangle1 = 0;
            util u1 = new util();

            info.Insert("--start SearchD--");
            pt = pl.Head;
            while (pt != null)
            {
                soliangle2 = u1.d3_Cal_Solid_Angle(pt.Data, pi, pj, pk);
                if (soliangle1 < soliangle2 && u1.noSearched(s0, pt.Data))
                {
                    soliangle1 = soliangle2;
                    pg         = pt.Data;
                }
                pt = pt.Next;
            }
            info.Insert("--end SearchD--");
        }