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

Helper methods for reading Triangle file formats. More...

Public Member Functions

void Read (string filename, out Polygon polygon)
 Reads geometry information from .node or .poly files.
 
void Read (string filename, out Polygon geometry, out List< ITriangle > triangles)
 Reads a mesh from .node, .poly or .ele files.
 
IPolygon Read (string filename)
 Reads geometry information from .node or .poly files.
 
Polygon ReadNodeFile (string nodefilename)
 Read the vertices from a file, which may be a .node or .poly file.
 
Polygon ReadNodeFile (string nodefilename, bool readElements)
 Read the vertices from a file, which may be a .node or .poly file.
 
Polygon ReadPolyFile (string polyfilename)
 Read the vertices and segments from a .poly file.
 
Polygon ReadPolyFile (string polyfilename, bool readElements)
 Read the vertices and segments from a .poly file.
 
Polygon ReadPolyFile (string polyfilename, bool readElements, bool readArea)
 Read the vertices and segments from a .poly file.
 
List< ITriangleReadEleFile (string elefilename)
 Read elements from an .ele file.
 
List< EdgeReadEdgeFile (string edgeFile, int invertices)
 Read an .edge file.
 

Detailed Description

Helper methods for reading Triangle file formats.

Member Function Documentation

◆ ReadEdgeFile()

List< Edge > TriangleNet.IO.TriangleReader.ReadEdgeFile ( string  edgeFile,
int  invertices 
)
inline

Read an .edge file.

Parameters
edgeFileThe file name.
inverticesThe number of input vertices (read from a .node or .poly file).
Returns
A List of edges.

◆ ReadEleFile()

List< ITriangle > TriangleNet.IO.TriangleReader.ReadEleFile ( string  elefilename)
inline

Read elements from an .ele file.

Parameters
elefilenameThe file name.
Returns
A list of triangles.

◆ ReadNodeFile() [1/2]

Polygon TriangleNet.IO.TriangleReader.ReadNodeFile ( string  nodefilename)
inline

Read the vertices from a file, which may be a .node or .poly file.

Parameters
nodefilename

Will NOT read associated .ele by default.

◆ ReadNodeFile() [2/2]

Polygon TriangleNet.IO.TriangleReader.ReadNodeFile ( string  nodefilename,
bool  readElements 
)
inline

Read the vertices from a file, which may be a .node or .poly file.

Parameters
nodefilename
readElements

◆ ReadPolyFile() [1/3]

Polygon TriangleNet.IO.TriangleReader.ReadPolyFile ( string  polyfilename)
inline

Read the vertices and segments from a .poly file.

Parameters
polyfilename

Will NOT read associated .ele by default.

◆ ReadPolyFile() [2/3]

Polygon TriangleNet.IO.TriangleReader.ReadPolyFile ( string  polyfilename,
bool  readElements 
)
inline

Read the vertices and segments from a .poly file.

Parameters
polyfilename
readElementsIf true, look for an associated .ele file.

Will NOT read associated .area by default.

◆ ReadPolyFile() [3/3]

Polygon TriangleNet.IO.TriangleReader.ReadPolyFile ( string  polyfilename,
bool  readElements,
bool  readArea 
)
inline

Read the vertices and segments from a .poly file.

Parameters
polyfilename
readElementsIf true, look for an associated .ele file.
readElementsIf true, look for an associated .area file.

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