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

    Interface IMesh

    Mesh interface.

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

    Properties

    Bounds

    Gets the bounds of the mesh.

    Declaration
    Rectangle Bounds { get; }
    Property Value
    Type Description
    Rectangle

    Edges

    Gets the edges of the mesh.

    Declaration
    IEnumerable<Edge> Edges { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<Edge>

    Holes

    Gets the holes of the mesh.

    Declaration
    IList<Point> Holes { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<Point>

    Segments

    Gets the segments (constraint edges) of the mesh.

    Declaration
    ICollection<SubSegment> Segments { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<SubSegment>

    Triangles

    Gets the triangles of the mesh.

    Declaration
    ICollection<Triangle> Triangles { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<Triangle>

    Vertices

    Gets the vertices of the mesh.

    Declaration
    ICollection<Vertex> Vertices { get; }
    Property Value
    Type Description
    System.Collections.Generic.ICollection<Vertex>

    Methods

    Refine(QualityOptions, Boolean)

    Refine the mesh.

    Declaration
    void Refine(QualityOptions quality, bool delaunay)
    Parameters
    Type Name Description
    QualityOptions quality

    The quality constraints.

    System.Boolean delaunay

    Renumber()

    Renumber mesh vertices and triangles.

    Declaration
    void Renumber()
    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