// ----------------------------------------------------------------------- // // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // // ----------------------------------------------------------------------- namespace TriangleNet.IO { using System.IO; using TriangleNet.Geometry; /// /// Interface for geometry input. /// public 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); } }