namespace UnityEngine.U2D.Animation.TriangleNet
.Meshing
{
using System;
using Animation.TriangleNet.Geometry;
///
/// Mesh constraint options for quality triangulation.
///
internal class QualityOptions
{
///
/// Gets or sets a maximum angle constraint.
///
public double MaximumAngle { get; set; }
///
/// Gets or sets a minimum angle constraint.
///
public double MinimumAngle { get; set; }
///
/// Gets or sets a maximum triangle area constraint.
///
public double MaximumArea { get; set; }
///
/// Gets or sets a user-defined triangle constraint.
///
///
/// The test function will be called for each triangle in the mesh. The
/// second argument is the area of the triangle tested. If the function
/// returns true, the triangle is considered bad and will be refined.
///
public Func UserTest { get; set; }
///
/// Gets or sets an area constraint per triangle.
///
///
/// If this flag is set to true, the value will
/// be used to check if a triangle needs refinement.
///
public bool VariableArea { get; set; }
///
/// Gets or sets the maximum number of Steiner points to be inserted into the mesh.
///
///
/// If the value is 0 (default), an unknown number of Steiner points may be inserted
/// to meet the other quality constraints.
///
public int SteinerPoints { get; set; }
}
}