Interface IConstraintMesher | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IConstraintMesher

    Interface for polygon triangulation.

    Namespace: UnityEngine.Experimental.U2D.TriangleNet.Meshing
    Syntax
    public interface IConstraintMesher

    Methods

    Triangulate(IPolygon)

    Triangulates a polygon.

    Declaration
    IMesh Triangulate(IPolygon polygon)
    Parameters
    Type Name Description
    IPolygon polygon

    The polygon.

    Returns
    Type Description
    IMesh

    Mesh

    Triangulate(IPolygon, ConstraintOptions)

    Triangulates a polygon, applying constraint options.

    Declaration
    IMesh Triangulate(IPolygon polygon, ConstraintOptions options)
    Parameters
    Type Name Description
    IPolygon polygon

    The polygon.

    ConstraintOptions options

    Constraint options.

    Returns
    Type Description
    IMesh

    Mesh

    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