Helper methods for writing Triangle file formats.
More...
Helper methods for writing Triangle file formats.
◆ Write()
| void TriangleNet.IO.TriangleWriter.Write |
( |
TriangleNetMesh |
triangleNetMesh, |
|
|
string |
filename |
|
) |
| |
|
inline |
Number the vertices and write them to a .node file.
- Parameters
-
◆ WriteEdges()
| void TriangleNet.IO.TriangleWriter.WriteEdges |
( |
TriangleNetMesh |
triangleNetMesh, |
|
|
string |
filename |
|
) |
| |
|
inline |
Write the edges to an .edge file.
- Parameters
-
◆ WriteElements()
| void TriangleNet.IO.TriangleWriter.WriteElements |
( |
TriangleNetMesh |
triangleNetMesh, |
|
|
string |
filename |
|
) |
| |
|
inline |
Write the triangles to an .ele file.
- Parameters
-
◆ WriteNeighbors()
| void TriangleNet.IO.TriangleWriter.WriteNeighbors |
( |
TriangleNetMesh |
triangleNetMesh, |
|
|
string |
filename |
|
) |
| |
|
inline |
Write the triangle neighbors to a .neigh file.
- Parameters
-
WARNING: Be sure WriteElements has been called before, so the elements are numbered right!
◆ WriteNodes()
| void TriangleNet.IO.TriangleWriter.WriteNodes |
( |
TriangleNetMesh |
triangleNetMesh, |
|
|
string |
filename |
|
) |
| |
|
inline |
Number the vertices and write them to a .node file.
- Parameters
-
◆ WritePoly() [1/3]
| void TriangleNet.IO.TriangleWriter.WritePoly |
( |
IPolygon |
polygon, |
|
|
string |
filename |
|
) |
| |
|
inline |
Write the segments and holes to a .poly file.
- Parameters
-
| polygon | Data source. |
| filename | File name. |
| writeNodes | Write nodes into this file. |
If the nodes should not be written into this file, make sure a .node file was written before, so that the nodes are numbered right.
◆ WritePoly() [2/3]
| void TriangleNet.IO.TriangleWriter.WritePoly |
( |
TriangleNetMesh |
triangleNetMesh, |
|
|
string |
filename |
|
) |
| |
|
inline |
Write the segments and holes to a .poly file.
- Parameters
-
◆ WritePoly() [3/3]
| void TriangleNet.IO.TriangleWriter.WritePoly |
( |
TriangleNetMesh |
triangleNetMesh, |
|
|
string |
filename, |
|
|
bool |
writeNodes |
|
) |
| |
|
inline |
Write the segments and holes to a .poly file.
- Parameters
-
| triangleNetMesh | Data source. |
| filename | File name. |
| writeNodes | Write nodes into this file. |
If the nodes should not be written into this file, make sure a .node file was written before, so that the nodes are numbered right.
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Plugins/TriangleNet/Scripts/Source/IO/TriangleWriter.cs