Interface IConstraintMesher
Interface for polygon triangulation.
Namespace: UnityEngine.Experimental.U2D.TriangleNet.Meshing
Syntax
public interface IConstraintMesher
Methods
Triangulate(IPolygon)
Triangulates a polygon.
Declaration
IMesh Triangulate(IPolygon polygon)
Parameters
Type | Name | Description |
---|---|---|
IPolygon | polygon | The polygon. |
Returns
Type | Description |
---|---|
IMesh | Mesh |
Triangulate(IPolygon, ConstraintOptions)
Triangulates a polygon, applying constraint options.
Declaration
IMesh Triangulate(IPolygon polygon, ConstraintOptions options)
Parameters
Type | Name | Description |
---|---|---|
IPolygon | polygon | The polygon. |
ConstraintOptions | options | Constraint options. |
Returns
Type | Description |
---|---|
IMesh | Mesh |