Class Converter
The Converter class provides methods for mesh reconstruction and conversion.
Inheritance
System.Object
Converter
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.Meshing
Syntax
public static class Converter
Methods
ToDCEL(Mesh)
Declaration
public static DcelMesh ToDCEL(Mesh mesh)
Parameters
Type | Name | Description |
---|---|---|
Mesh | mesh |
Returns
Type | Description |
---|---|
DcelMesh |
ToMesh(Polygon, IList<ITriangle>)
Reconstruct a triangulation from its raw data representation.
Declaration
public static Mesh ToMesh(Polygon polygon, IList<ITriangle> triangles)
Parameters
Type | Name | Description |
---|---|---|
Polygon | polygon | |
System.Collections.Generic.IList<ITriangle> | triangles |
Returns
Type | Description |
---|---|
Mesh |
ToMesh(Polygon, ITriangle[])
Reconstruct a triangulation from its raw data representation.
Declaration
public static Mesh ToMesh(Polygon polygon, ITriangle[] triangles)
Parameters
Type | Name | Description |
---|---|---|
Polygon | polygon | |
ITriangle[] | triangles |
Returns
Type | Description |
---|---|
Mesh |