| 123456789101112131415161718192021222324252627282930313233343536373839 |
- // -----------------------------------------------------------------------
- // <copyright file="IMeshFormat.cs" company="">
- // Triangle.NET code by Christian Woltering, http://triangle.codeplex.com/
- // </copyright>
- // -----------------------------------------------------------------------
- namespace UnityEngine.U2D.Animation.TriangleNet
- .IO
- {
- using System.IO;
- using Animation.TriangleNet.Meshing;
- /// <summary>
- /// Interface for mesh I/O.
- /// </summary>
- internal interface IMeshFormat : IFileFormat
- {
- /// <summary>
- /// Read a file containing a mesh.
- /// </summary>
- /// <param name="filename">The path of the file to read.</param>
- /// <returns>An instance of the <see cref="IMesh" /> interface.</returns>
- IMesh Import(string filename);
- /// <summary>
- /// Save a mesh to disk.
- /// </summary>
- /// <param name="mesh">An instance of the <see cref="IMesh" /> interface.</param>
- /// <param name="filename">The path of the file to save.</param>
- void Write(IMesh mesh, string filename);
- /// <summary>
- /// Save a mesh to a <see cref="Stream" />.
- /// </summary>
- /// <param name="mesh">An instance of the <see cref="IMesh" /> interface.</param>
- /// <param name="stream">The stream to save to.</param>
- void Write(IMesh mesh, Stream stream);
- }
- }
|