// -----------------------------------------------------------------------
//
// Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/
//
// -----------------------------------------------------------------------
namespace UnityEngine.U2D.Animation.TriangleNet
.IO
{
using System.IO;
using Animation.TriangleNet.Geometry;
///
/// Interface for geometry input.
///
internal interface IPolygonFormat : IFileFormat
{
///
/// Read a file containing polygon geometry.
///
/// The path of the file to read.
/// An instance of the class.
IPolygon Read(string filename);
///
/// Save a polygon geometry to disk.
///
/// An instance of the class.
/// The path of the file to save.
void Write(IPolygon polygon, string filename);
///
/// Save a polygon geometry to a .
///
/// An instance of the class.
/// The stream to save to.
void Write(IPolygon polygon, Stream stream);
}
}