hasIndex() public method

public hasIndex ( int i ) : bool
i int
return bool
Exemplo n.º 1
0
        public bool sharesEdge(CTri t)
        {
            bool ret   = false;
            uint count = 0;

            if (t.hasIndex(mI1))
            {
                count++;
            }
            if (t.hasIndex(mI2))
            {
                count++;
            }
            if (t.hasIndex(mI3))
            {
                count++;
            }

            if (count >= 2)
            {
                ret = true;
            }

            return(ret);
        }
Exemplo n.º 2
0
        public bool sharesEdge(CTri t)
        {
            bool ret = false;
            uint count = 0;

            if (t.hasIndex(mI1))
                count++;
            if (t.hasIndex(mI2))
                count++;
            if (t.hasIndex(mI3))
                count++;

            if (count >= 2)
                ret = true;

            return ret;
        }