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 (.poly or .smesh file).
  • -q β€” Quality mesh generation. A minimum radius-edge ratio may be specifyed (default 2.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 (default 1e-8).
  • -d β€” Detect intersections of PLC facets.
  • -z β€” Numbers all output items starting from zero.
  • -j β€” Jettison unused vertices from output .node file.
  • -o2 β€” Generates second-order subparametric elements.
  • -f β€” Outputs faces (including non-boundary faces) to .face file.
  • -e β€” Outputs subsegments to .edge file.
  • -n β€” Outputs tetrahedra neighbors to .neigh file.
  • -g β€” Outputs mesh to .mesh file for viewing by Medit.
  • -G β€” Outputs mesh to .msh file for viewing by Gid.
  • -O β€” Outputs mesh to .off file for viewing by Geomview.
  • -B β€” Suppresses output of boundary information.
  • -N β€” Suppresses output of .node file.
  • -E β€” Suppresses output of .ele file.
  • -F β€” Suppresses output of .face file.
  • -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