Class TriangleFormat
Implements geometry and mesh file formats of the the original Triangle code.
Inheritance
System.Object
TriangleFormat
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.IO
Syntax
public class TriangleFormat : IPolygonFormat, IMeshFormat, IFileFormat
Methods
Import(String)
Declaration
public IMesh Import(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filename |
Returns
| Type | Description |
|---|---|
| IMesh |
Implements
IsSupported(String)
Declaration
public bool IsSupported(string file)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | file |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Implements
Read(String)
Declaration
public IPolygon Read(string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | filename |
Returns
| Type | Description |
|---|---|
| IPolygon |
Implements
Write(IPolygon, Stream)
Declaration
public void Write(IPolygon polygon, Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| IPolygon | polygon | |
| System.IO.Stream | stream |
Implements
Write(IPolygon, String)
Declaration
public void Write(IPolygon polygon, string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| IPolygon | polygon | |
| System.String | filename |
Implements
Write(IMesh, Stream)
Declaration
public void Write(IMesh mesh, Stream stream)
Parameters
| Type | Name | Description |
|---|---|---|
| IMesh | mesh | |
| System.IO.Stream | stream |
Implements
Write(IMesh, String)
Declaration
public void Write(IMesh mesh, string filename)
Parameters
| Type | Name | Description |
|---|---|---|
| IMesh | mesh | |
| System.String | filename |