Triangulator.cs 745 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace UnityEditor.U2D.Animation
  5. {
  6. internal class Triangulator : ITriangulator
  7. {
  8. public void Triangulate(IList<Vector2> vertices, IList<Edge> edges, IList<int> indices)
  9. {
  10. TriangulationUtility.Triangulate(vertices, edges, indices);
  11. }
  12. public void Tessellate(float minAngle, float maxAngle, float meshAreaFactor, float largestTriangleAreaFactor, int smoothIterations, IList<Vector2> vertices, IList<Edge> edges, IList<int> indices)
  13. {
  14. TriangulationUtility.Tessellate(minAngle, maxAngle, meshAreaFactor, largestTriangleAreaFactor, smoothIterations, vertices, edges, indices);
  15. }
  16. }
  17. }