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

    Class PolygonValidator

    Inheritance
    System.Object
    PolygonValidator
    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.Tools
    Syntax
    public static class PolygonValidator

    Methods

    HasBadAngles(IPolygon, Double)

    Test the polygon for 360 degree angles.

    Declaration
    public static bool HasBadAngles(IPolygon poly, double threshold = 2E-12)
    Parameters
    Type Name Description
    IPolygon poly

    The polygon.

    System.Double threshold

    The angle threshold.

    Returns
    Type Description
    System.Boolean

    HasDuplicateVertices(IPolygon)

    Test the polygon for duplicate vertices.

    Declaration
    public static bool HasDuplicateVertices(IPolygon poly)
    Parameters
    Type Name Description
    IPolygon poly
    Returns
    Type Description
    System.Boolean

    IsConsistent(IPolygon)

    Test the polygon for consistency.

    Declaration
    public static bool IsConsistent(IPolygon poly)
    Parameters
    Type Name Description
    IPolygon poly
    Returns
    Type Description
    System.Boolean
    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