My Project
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TriangleNet.IO.IMeshFormat Interface Reference

Interface for mesh I/O. More...

Inheritance diagram for TriangleNet.IO.IMeshFormat:
TriangleNet.IO.IFileFormat TriangleNet.IO.TriangleFormat

Public Member Functions

IMesh Import (string filename)
 Read a file containing a mesh.
 
void Write (IMesh mesh, string filename)
 Save a mesh to disk.
 
void Write (IMesh mesh, Stream stream)
 Save a mesh to a Stream.
 
- Public Member Functions inherited from TriangleNet.IO.IFileFormat
bool IsSupported (string file)
 

Detailed Description

Interface for mesh I/O.

Member Function Documentation

◆ Import()

IMesh TriangleNet.IO.IMeshFormat.Import ( string  filename)

Read a file containing a mesh.

Parameters
filenameThe path of the file to read.
Returns
An instance of the IMesh interface.

Implemented in TriangleNet.IO.TriangleFormat.

◆ Write() [1/2]

void TriangleNet.IO.IMeshFormat.Write ( IMesh  mesh,
Stream  stream 
)

Save a mesh to a Stream.

Parameters
meshAn instance of the IMesh interface.
streamThe stream to save to.

Implemented in TriangleNet.IO.TriangleFormat.

◆ Write() [2/2]

void TriangleNet.IO.IMeshFormat.Write ( IMesh  mesh,
string  filename 
)

Save a mesh to disk.

Parameters
meshAn instance of the IMesh interface.
filenameThe path of the file to save.

Implemented in TriangleNet.IO.TriangleFormat.


The documentation for this interface was generated from the following file: