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

    Class TriangleFormat

    Implements geometry and mesh file formats of the the original Triangle code.

    Inheritance
    System.Object
    TriangleFormat
    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.IO
    Syntax
    public class TriangleFormat : IPolygonFormat, IMeshFormat, IFileFormat

    Methods

    Import(String)

    Declaration
    public IMesh Import(string filename)
    Parameters
    Type Name Description
    System.String filename
    Returns
    Type Description
    IMesh
    Implements
    IMeshFormat.Import(String)

    IsSupported(String)

    Declaration
    public bool IsSupported(string file)
    Parameters
    Type Name Description
    System.String file
    Returns
    Type Description
    System.Boolean
    Implements
    IFileFormat.IsSupported(String)

    Read(String)

    Declaration
    public IPolygon Read(string filename)
    Parameters
    Type Name Description
    System.String filename
    Returns
    Type Description
    IPolygon
    Implements
    IPolygonFormat.Read(String)

    Write(IPolygon, Stream)

    Declaration
    public void Write(IPolygon polygon, Stream stream)
    Parameters
    Type Name Description
    IPolygon polygon
    System.IO.Stream stream
    Implements
    IPolygonFormat.Write(IPolygon, Stream)

    Write(IPolygon, String)

    Declaration
    public void Write(IPolygon polygon, string filename)
    Parameters
    Type Name Description
    IPolygon polygon
    System.String filename
    Implements
    IPolygonFormat.Write(IPolygon, String)

    Write(IMesh, Stream)

    Declaration
    public void Write(IMesh mesh, Stream stream)
    Parameters
    Type Name Description
    IMesh mesh
    System.IO.Stream stream
    Implements
    IMeshFormat.Write(IMesh, Stream)

    Write(IMesh, String)

    Declaration
    public void Write(IMesh mesh, string filename)
    Parameters
    Type Name Description
    IMesh mesh
    System.String filename
    Implements
    IMeshFormat.Write(IMesh, String)
    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