Interface IPolygonFormat
Interface for geometry input.
Inherited Members
Namespace: UnityEngine.Experimental.U2D.TriangleNet.IO
Syntax
public interface IPolygonFormat : IFileFormat
Methods
Read(String)
Read a file containing polygon geometry.
Declaration
IPolygon Read(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filename | The path of the file to read. |
Returns
| Type | Description |
|---|---|
| IPolygon | An instance of the IPolygon class. |
Write(IPolygon, Stream)
Save a polygon geometry to a System.IO.Stream.
Declaration
void Write(IPolygon polygon, Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| IPolygon | polygon | An instance of the IPolygon class. |
| System.IO.Stream | stream | The stream to save to. |
Write(IPolygon, String)
Save a polygon geometry to disk.
Declaration
void Write(IPolygon polygon, string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| IPolygon | polygon | An instance of the IPolygon class. |
| System.String | filename | The path of the file to save. |