// ----------------------------------------------------------------------- // // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // // ----------------------------------------------------------------------- namespace UnityEngine.U2D.Animation.TriangleNet { using System; using Animation.TriangleNet.Meshing; using Animation.TriangleNet.Meshing.Algorithm; /// /// Configure advanced aspects of the library. /// internal class Configuration { public Configuration() : this(() => RobustPredicates.Default, () => new TrianglePool()) { } public Configuration(Func predicates) : this(predicates, () => new TrianglePool()) { } public Configuration(Func predicates, Func trianglePool) { Predicates = predicates; TrianglePool = trianglePool; } /// /// Gets or sets the factory method for the implementation. /// public Func Predicates { get; set; } /// /// Gets or sets the factory method for the . /// public Func TrianglePool { get; set; } } }