// ----------------------------------------------------------------------- // // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/ // // ----------------------------------------------------------------------- namespace TriangleNet.IO { using System.IO; using TriangleNet.Meshing; /// /// Interface for mesh I/O. /// public interface IMeshFormat : IFileFormat { /// /// Read a file containing a mesh. /// /// The path of the file to read. /// An instance of the interface. IMesh Import(string filename); /// /// Save a mesh to disk. /// /// An instance of the interface. /// The path of the file to save. void Write(IMesh mesh, string filename); /// /// Save a mesh to a . /// /// An instance of the interface. /// The stream to save to. void Write(IMesh mesh, Stream stream); } }