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

    Class Converter

    The Converter class provides methods for mesh reconstruction and conversion.

    Inheritance
    System.Object
    Converter
    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 static class Converter

    Methods

    ToDCEL(Mesh)

    Declaration
    public static DcelMesh ToDCEL(Mesh mesh)
    Parameters
    Type Name Description
    Mesh mesh
    Returns
    Type Description
    DcelMesh

    ToMesh(Polygon, IList<ITriangle>)

    Reconstruct a triangulation from its raw data representation.

    Declaration
    public static Mesh ToMesh(Polygon polygon, IList<ITriangle> triangles)
    Parameters
    Type Name Description
    Polygon polygon
    System.Collections.Generic.IList<ITriangle> triangles
    Returns
    Type Description
    Mesh

    ToMesh(Polygon, ITriangle[])

    Reconstruct a triangulation from its raw data representation.

    Declaration
    public static Mesh ToMesh(Polygon polygon, ITriangle[] triangles)
    Parameters
    Type Name Description
    Polygon polygon
    ITriangle[] triangles
    Returns
    Type Description
    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