Helper methods for reading Triangle file formats.
More...
|
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< ITriangle > | ReadEleFile (string elefilename) |
| Read elements from an .ele file.
|
|
List< Edge > | ReadEdgeFile (string edgeFile, int invertices) |
| Read an .edge file.
|
|
Helper methods for reading Triangle file formats.
◆ ReadEdgeFile()
List< Edge > TriangleNet.IO.TriangleReader.ReadEdgeFile |
( |
string |
edgeFile, |
|
|
int |
invertices |
|
) |
| |
|
inline |
Read an .edge file.
- Parameters
-
edgeFile | The file name. |
invertices | The 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
-
elefilename | The 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
-
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
-
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 | |
readElements | If 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 | |
readElements | If true, look for an associated .ele file. |
readElements | If true, look for an associated .area file. |
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Plugins/TriangleNet/Scripts/Source/IO/TriangleReader.cs