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

Implements geometry and mesh file formats of the the original Triangle code. More...

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

Public Member Functions

bool IsSupported (string file)
 
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.
 
IPolygon Read (string filename)
 Read a file containing polygon geometry.
 
void Write (IPolygon polygon, string filename)
 Save a polygon geometry to disk.
 
void Write (IPolygon polygon, Stream stream)
 Save a polygon geometry to a Stream.
 
IPolygon Read (string filename)
 Read a file containing polygon geometry.
 
void Write (IPolygon polygon, string filename)
 Save a polygon geometry to disk.
 
void Write (IPolygon polygon, Stream stream)
 Save a polygon geometry to a Stream.
 
bool IsSupported (string file)
 
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.
 

Detailed Description

Implements geometry and mesh file formats of the the original Triangle code.

Member Function Documentation

◆ Import()

IMesh TriangleNet.IO.TriangleFormat.Import ( string  filename)
inline

Read a file containing a mesh.

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

Implements TriangleNet.IO.IMeshFormat.

◆ IsSupported()

bool TriangleNet.IO.TriangleFormat.IsSupported ( string  file)
inline

◆ Read()

IPolygon TriangleNet.IO.TriangleFormat.Read ( string  filename)
inline

Read a file containing polygon geometry.

Parameters
filenameThe path of the file to read.
Returns
An instance of the IPolygon class.

Implements TriangleNet.IO.IPolygonFormat.

◆ Write() [1/4]

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

Save a mesh to a Stream.

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

Implements TriangleNet.IO.IMeshFormat.

◆ Write() [2/4]

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

Save a mesh to disk.

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

Implements TriangleNet.IO.IMeshFormat.

◆ Write() [3/4]

void TriangleNet.IO.TriangleFormat.Write ( IPolygon  polygon,
Stream  stream 
)
inline

Save a polygon geometry to a Stream.

Parameters
polygonAn instance of the IPolygon class.
streamThe stream to save to.

Implements TriangleNet.IO.IPolygonFormat.

◆ Write() [4/4]

void TriangleNet.IO.TriangleFormat.Write ( IPolygon  polygon,
string  filename 
)
inline

Save a polygon geometry to disk.

Parameters
polygonAn instance of the IPolygon class.
filenameThe path of the file to save.

Implements TriangleNet.IO.IPolygonFormat.


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