コード例 #1
0
        internal static TessLink CreateLink(int count, Allocator allocator)
        {
            TessLink link = new TessLink();

            link.roots = new NativeArray <int>(count, allocator);
            link.ranks = new NativeArray <int>(count, allocator);

            for (int i = 0; i < count; ++i)
            {
                link.roots[i] = i;
                link.ranks[i] = 0;
            }
            return(link);
        }
コード例 #2
0
 internal static void DestroyLink(TessLink link)
 {
     link.ranks.Dispose();
     link.roots.Dispose();
 }