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()