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

    Class Mesh

    Mesh data structure.

    Inheritance
    System.Object
    Mesh
    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
    Syntax
    public class Mesh : IMesh

    Constructors

    Mesh(Configuration)

    Initializes a new instance of the Mesh class.

    Declaration
    public Mesh(Configuration config)
    Parameters
    Type Name Description
    Configuration config

    Properties

    Bounds

    Gets the mesh bounding box.

    Declaration
    public Rectangle Bounds { get; }
    Property Value
    Type Description
    Rectangle
    Implements
    IMesh.Bounds

    CurrentNumbering

    Gets the current node numbering.

    Declaration
    public NodeNumbering CurrentNumbering { get; }
    Property Value
    Type Description
    NodeNumbering

    Edges

    Gets the mesh edges.

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

    Holes

    Gets the mesh holes.

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

    IsPolygon

    Indicates whether the input is a PSLG or a point set.

    Declaration
    public bool IsPolygon { get; }
    Property Value
    Type Description
    System.Boolean

    NumberOfEdges

    Gets the number of mesh edges.

    Declaration
    public int NumberOfEdges { get; }
    Property Value
    Type Description
    System.Int32

    NumberOfInputPoints

    Gets the number of input vertices.

    Declaration
    public int NumberOfInputPoints { get; }
    Property Value
    Type Description
    System.Int32

    Segments

    Gets the mesh segments.

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

    Triangles

    Gets the mesh triangles.

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

    Vertices

    Gets the mesh vertices.

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

    Methods

    Refine(QualityOptions, Boolean)

    Declaration
    public void Refine(QualityOptions quality, bool delaunay = false)
    Parameters
    Type Name Description
    QualityOptions quality
    System.Boolean delaunay
    Implements
    IMesh.Refine(QualityOptions, Boolean)

    Renumber()

    Renumber vertex and triangle id's.

    Declaration
    public void Renumber()
    Implements
    IMesh.Renumber()

    Renumber(NodeNumbering)

    Renumber vertex and triangle id's.

    Declaration
    public void Renumber(NodeNumbering num)
    Parameters
    Type Name Description
    NodeNumbering num
    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