TetGenExport
TetGenExport["file.ext",expr]
exports data from a TetGen expression into a file.
TetGenExport["file",expr,"format"]
exports data in the specified format.
Details and Options
- To use TetGenExport, you first need to load it using Needs["TetGenLink`"].
- TetGenExport[File["path"],expr] is also supported.
- The following formats specific to TetGen are supported by TetGenExport:
-
"node" a list of nodes "poly" a list of facets "smesh" a simple piecewise linear complex "ele" a list of tetrahedra "face" a list of triangular faces "edge" a list of boundary faces "neigh" a list of neighbors
Examples
Basic Examples (1)Summary of the most common use cases

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-cbf55e
This creates an instance of a TetGen expression:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-c6p5a4

These are points and facets to load into the instance:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-bpdlkk
This loads the points and facets into the instance:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-0wkyp
Here is a file name to take the "poly" data:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-d0l2g9
This saves the data into the file:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-dg2o6
This shows the contents of the file:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-bg5tmj
Here is a new file name to take the "node" data:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-mgq6t5
This saves the data into the file:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-x5z96r
This shows the contents of the file:

https://wolfram.com/xid/0rirlhjwbf5duz6ml6y-42mttq
Wolfram Research (2010), TetGenExport, Wolfram Language function, https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html.
Text
Wolfram Research (2010), TetGenExport, Wolfram Language function, https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html.
Wolfram Research (2010), TetGenExport, Wolfram Language function, https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html.
CMS
Wolfram Language. 2010. "TetGenExport." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html.
Wolfram Language. 2010. "TetGenExport." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html.
APA
Wolfram Language. (2010). TetGenExport. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html
Wolfram Language. (2010). TetGenExport. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html
BibTeX
@misc{reference.wolfram_2025_tetgenexport, author="Wolfram Research", title="{TetGenExport}", year="2010", howpublished="\url{https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html}", note=[Accessed: 08-June-2025
]}
BibLaTeX
@online{reference.wolfram_2025_tetgenexport, organization={Wolfram Research}, title={TetGenExport}, year={2010}, url={https://reference.wolfram.com/language/TetGenLink/ref/TetGenExport.html}, note=[Accessed: 08-June-2025
]}