A game about forced loneliness, made by TACStudios
at master 13 lines 1.0 kB view raw
1using Unity.Collections; 2using Unity.Mathematics; 3 4namespace UnityEditor.U2D.Animation 5{ 6 internal interface ITriangulator 7 { 8 void Triangulate(ref int2[] edges, ref float2[] vertices, out int[] indices); 9 Unity.Jobs.JobHandle ScheduleTriangulate(in float2[] vertices, in int2[] edges, ref NativeArray<float2> outputVertices, ref NativeArray<int> outputIndices, ref NativeArray<int2> outputEdges, ref NativeArray<int4> result); 10 void Tessellate(float minAngle, float maxAngle, float meshAreaFactor, float largestTriangleAreaFactor, float areaThreshold, int smoothIterations, ref float2[] vertices, ref int2[] edges, out int[] indices); 11 Unity.Jobs.JobHandle ScheduleTessellate(float minAngle, float maxAngle, float meshAreaFactor, float largestTriangleAreaFactor, float areaThreshold, int smoothIterations, in float2[] vertices, in int2[] edges, ref NativeArray<float2> outputVertices, ref NativeArray<int> outputIndices, ref NativeArray<int2> outputEdges, ref NativeArray<int4> result); 12 } 13}