コード例 #1
0
            public bool Test(int2 h, int2 p, ref float t)
            {
                TessEdgeCompare tc = new TessEdgeCompare();

                t = tc.Compare(h, p);
                return(t == 0);
            }
コード例 #2
0
        static void InsertUniqueEdge(NativeArray <int2> edges, int2 e, ref int edgeCount)
        {
            TessEdgeCompare edgeComparer = new TessEdgeCompare();
            var             validEdge    = true;

            for (int j = 0; validEdge && j < edgeCount; ++j)
            {
                if (edgeComparer.Compare(e, edges[j]) == 0)
                {
                    validEdge = false;
                }
            }
            if (validEdge)
            {
                edges[edgeCount++] = e;
            }
        }