IQualityMesher.cs 1022 B

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