TETGEN(1)
π NAME π
tetgen β A Quality Tetrahedral Mesh Generator β¨π§
π¦ SYNOPSIS π¦
tetgen [-pq__a__AriYMS__T__dzjo_fengGOJBNEFICQVvh] file
πΈ DESCRIPTION πΈ
okay bestie, so this manual page gives you the brief rundown of the tetgen command, like the tl;dr version π
The full documentation lives online at http://tetgen.berlios.de/ if you wanna go feral and read all of it π«Ά
so what does tetgen actually do? it generates the Delaunay tetrahedralization, the Voronoi diagram, and the convex hull for three-dimensional point sets, no cap. and it also generates constrained Delaunay tetrahedralizations and quality tetrahedral meshes for three-dimensional domains with piecewise linear boundary. it's giving geometry main character energy fr fr π§
β¨ OPTIONS β¨
here's a lil summary of the options, bestie β for the complete description you gotta check the online documentation π
-pβ Tetrahedralizes a picecwise linear complex (.polyor.smeshfile).-qβ Quality mesh generation. A minimum radius-edge ratio may be specifyed (default2.0).-aβ Applies a maximum tetrahedron volume constraint.-Aβ Assigns attributes to identify tetrahedra in certain regions.-rβ Reconstructs/Refines a previously generated mesh.-Yβ Suppresses boundary facets/segments splitting.-iβ Inserts a list of additional points into mesh.-Mβ Does not merge coplanar facets.-Tβ Set a tolerance for coplanar test (default1e-8).-dβ Detect intersections of PLC facets.-zβ Numbers all output items starting from zero.-jβ Jettison unused vertices from output.nodefile.-o2β Generates second-order subparametric elements.-fβ Outputs faces (including non-boundary faces) to.facefile.-eβ Outputs subsegments to.edgefile.-nβ Outputs tetrahedra neighbors to.neighfile.-gβ Outputs mesh to.meshfile for viewing by Medit.-Gβ Outputs mesh to.mshfile for viewing by Gid.-Oβ Outputs mesh to.offfile for viewing by Geomview.-Bβ Suppresses output of boundary information.-Nβ Suppresses output of.nodefile.-Eβ Suppresses output of.elefile.-Fβ Suppresses output of.facefile.-Iβ Suppresses mesh iteration numbers.-Cβ Checks the consistency of the final mesh.-Qβ Quiet: No terminal output except errors.-Vβ Verbose: Detailed information on what I'm doing.-vβ Prints the version information.-hβ Help: A brief instruction for using TetGen.
π₯ EXAMPLES π₯
so the wing, right? iconic little guy π¦ it's described in two files: wing.node and wing.poly. and the command line is literally:
tetgen -pq wing
and that generates the quality mesh in three files: wing.1.node, wing.1.ele, and wing.1.face. periodt π
now, by default the radius-edge ratio of each tetrahedron is bounded below 2.0. but bestie, you can impose a tight bound by adding a number directly after the -q switch. like this:
tetgen -pq1.2 wing
and that generates a quality mesh which have more points inserted than the mesh created in above. so yeah, tighter bound, more points, more work, still slay β¨
want more examples? go look at http://tetgen.berlios.de/switches.examples.html π
π SEE ALSO π
netgen (1)
π AUTHOR π
This manual page was written by Ondrej Certik <ondrej@certik.cz> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. π«Ά
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
and that's a wrap, bestie π this was the TETGEN(1) page, straight outta your system's General Commands Manual β same title, same section, no cap π§β¨ go tetrahedralize something iconic π
π¦ where this page comes from
- debian bookworm: tetgen 1.5.0-5 Β· AGPL3+
- debian trixie: tetgen 1.5.0-5+b2 Β· AGPL3+
- ubuntu jammy: tetgen 1.5.0-5build1 Β· AGPL3+
- ubuntu noble: tetgen 1.5.0-5build1 Β· AGPL3+
- ubuntu resolute: tetgen 1.6.0+dfsg1-3 Β· AGPL3+
- ubuntu stonking: tetgen 1.6.0+dfsg1-3 Β· AGPL3+
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms