How wildmeshing/ftetwild works
fTetWild is a command-line and C++ tetrahedral mesher. Its principal workflow accepts a triangle surface mesh, optionally applies preprocessing and sizing/Boolean controls, generates and improves tetrahedra, then writes a mesh. The README documents these product stages and options; source excerpts confirm mesh I/O and the cut-configuration table, but do not expose the main runtime call graph. Dashed, uncited edges therefore mark likely internal handoffs rather than inspected calls.
Main entry points: main.cpp CLI entry · MeshImprovement.cpp Mesh improvement · FloatTetDelaunay.cpp Tet generation · MeshIO.cpp Mesh export
Components 23
Meshing workflow
- CLI entry
src/main.cpp - Meshing options
src/Parameters.h
Geometry operations
- Surface preprocessing
src/Simplification.cpp - Surface mesh
src/MeshIO.cpp - Triangle insertion
src/TriangleInsertion.cpp - Tet generation
src/FloatTetDelaunay.cpp - Cut mesh
src/CutMesh.cpp - Local operations
src/LocalOperations.cpp - Mesh improvement
src/MeshImprovement.cpp - Edge collapsing
src/EdgeCollapsing.cpp - Edge splitting
src/EdgeSplitting.cpp - Edge swapping
src/EdgeSwapping.cpp - Vertex smoothing
src/VertexSmoothing.cpp - Coarsening
src/Simplification.cpp
Mesh I/O
- Mesh export
src/MeshIO.cpp - MSH loader
src/external/MshLoader.cpp - MSH saver
src/external/MshSaver.cpp
Cut configurations
- Cut table
src/auto_table.cpp - Cut table builder
python/build_cut_table.py - Table code export
python/generate-table-code.py - Cut configuration plot
python/plot-tet.py
Other components
- Meshing user
- Tetrahedral mesh
Connections 21
- Meshing user → CLI entry: invokes
- CLI entry → Surface mesh: loads input
- CLI entry → Meshing options: configures
- Surface mesh → Surface preprocessing: preprocesses
- Surface preprocessing → Triangle insertion: prepares surface
- Triangle insertion → Tet generation: inserts constraints
- Tet generation → Cut mesh: uses cuts
- Cut mesh → Cut table: reads configurations
- Tet generation → Mesh improvement: optimizes mesh
- Mesh improvement → Edge collapsing: may apply
- Mesh improvement → Edge splitting: may apply
- Mesh improvement → Edge swapping: may apply
- Mesh improvement → Vertex smoothing: may apply
- CLI entry → Coarsening: may coarsen
- CLI entry → Mesh export: exports mesh
- Mesh export → MSH saver: writes MSH
- Mesh export → Tetrahedral mesh: produces
- CLI entry → MSH loader: loads sizing mesh
- Cut table builder → Table code export: provides table
python/generate-table-code.py - Cut table builder → Cut configuration plot: provides configurations
python/plot-tet.py - CLI entry → Cut table: uses cut cases