Class QualityOptions | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class QualityOptions

    Mesh constraint options for quality triangulation.

    Inheritance
    System.Object
    QualityOptions
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.U2D.TriangleNet.Meshing
    Syntax
    public class QualityOptions

    Properties

    MaximumAngle

    Gets or sets a maximum angle constraint.

    Declaration
    public double MaximumAngle { get; set; }
    Property Value
    Type Description
    System.Double

    MaximumArea

    Gets or sets a maximum triangle area constraint.

    Declaration
    public double MaximumArea { get; set; }
    Property Value
    Type Description
    System.Double

    MinimumAngle

    Gets or sets a minimum angle constraint.

    Declaration
    public double MinimumAngle { get; set; }
    Property Value
    Type Description
    System.Double

    SteinerPoints

    Gets or sets the maximum number of Steiner points to be inserted into the mesh.

    Declaration
    public int SteinerPoints { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    If the value is 0 (default), an unknown number of Steiner points may be inserted to meet the other quality constraints.

    UserTest

    Gets or sets a user-defined triangle constraint.

    Declaration
    public Func<ITriangle, double, bool> UserTest { get; set; }
    Property Value
    Type Description
    System.Func<ITriangle, System.Double, System.Boolean>
    Remarks

    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.

    VariableArea

    Gets or sets an area constraint per triangle.

    Declaration
    public bool VariableArea { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    If this flag is set to true, the Area value will be used to check if a triangle needs refinement.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023