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); }
internal static void DestroyLink(TessLink link) { link.ranks.Dispose(); link.roots.Dispose(); }