IConstraintMesher.cs 796 B

1234567891011121314151617181920212223242526
  1. namespace UnityEngine.U2D.Animation.TriangleNet
  2. .Meshing
  3. {
  4. using Animation.TriangleNet.Geometry;
  5. /// <summary>
  6. /// Interface for polygon triangulation.
  7. /// </summary>
  8. internal interface IConstraintMesher
  9. {
  10. /// <summary>
  11. /// Triangulates a polygon.
  12. /// </summary>
  13. /// <param name="polygon">The polygon.</param>
  14. /// <returns>Mesh</returns>
  15. IMesh Triangulate(IPolygon polygon);
  16. /// <summary>
  17. /// Triangulates a polygon, applying constraint options.
  18. /// </summary>
  19. /// <param name="polygon">The polygon.</param>
  20. /// <param name="options">Constraint options.</param>
  21. /// <returns>Mesh</returns>
  22. IMesh Triangulate(IPolygon polygon, ConstraintOptions options);
  23. }
  24. }