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
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
Holes
Gets the mesh holes.
Declaration
public IList<Point> Holes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<Point> |
Implements
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
Triangles
Gets the mesh triangles.
Declaration
public ICollection<Triangle> Triangles { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<Triangle> |
Implements
Vertices
Gets the mesh vertices.
Declaration
public ICollection<Vertex> Vertices { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.ICollection<Vertex> |
Implements
Methods
Refine(QualityOptions, Boolean)
Declaration
public void Refine(QualityOptions quality, bool delaunay = false)
Parameters
Type | Name | Description |
---|---|---|
QualityOptions | quality | |
System.Boolean | delaunay |
Implements
Renumber()
Renumber vertex and triangle id's.
Declaration
public void Renumber()
Implements
Renumber(NodeNumbering)
Renumber vertex and triangle id's.
Declaration
public void Renumber(NodeNumbering num)
Parameters
Type | Name | Description |
---|---|---|
NodeNumbering | num |