PO/Library/PackageCache/com.unity.2d.animation@5.0.7/Runtime/Triangle/Meshing/IConstraintMesher.cs

27 lines
796 B
C#
Raw Normal View History

2022-01-12 10:06:03 +03:00
namespace UnityEngine.U2D.Animation.TriangleNet
.Meshing
{
using Animation.TriangleNet.Geometry;
/// <summary>
/// Interface for polygon triangulation.
/// </summary>
internal interface IConstraintMesher
{
/// <summary>
/// Triangulates a polygon.
/// </summary>
/// <param name="polygon">The polygon.</param>
/// <returns>Mesh</returns>
IMesh Triangulate(IPolygon polygon);
/// <summary>
/// Triangulates a polygon, applying constraint options.
/// </summary>
/// <param name="polygon">The polygon.</param>
/// <param name="options">Constraint options.</param>
/// <returns>Mesh</returns>
IMesh Triangulate(IPolygon polygon, ConstraintOptions options);
}
}