MMG2D(1)
π MMG2D(1) π
okay bestie, listen up β this is the manual page for mmg2d, from the General Commands Manual section, and it's genuinely iconic. It's the tool for adaptation and optimization of bidimensional meshes. Yes, meshes. Triangles. Two dimensions. We're thriving. π¦
β¨ NAME β¨
mmg2d β Adaptation and optimization of bidimensional meshes. that's the whole vibe. π
πΈ SYNOPSIS πΈ
mmg2d β¨mesh_fileβ© [output_file] [-sol β¨solution_fileβ©]
[-met β¨metric_fileβ©] [-h] [-v] [-m β¨nβ©] [-d] [-val] [-default]
[-A] [-ar β¨xβ© | -nr] [-hmin β¨xβ©] [-hmax β¨xβ©] [-hsiz β¨xβ©]
[-hausd β¨xβ©] [-hgrad β¨xβ©] [-hgradreq β¨xβ©] [-rmc x] [-lag β¨nβ©]
[-ls x] [-lssurf x] [-noinsert] [-nomove] [-noswap] [-nosurf]
[-nosizreq] [-nreg] [-xreg] [-nsd β¨nβ©] [-opnbdy] [-optim]
[-3dMedit β¨nβ©]
like, look at all those flags. she's got range. π
π DESCRIPTION π
The mmg2d application is dedicated to bidimensional triangular mesh remeshing. periodt.
By default it performs mesh modifications in order to control the surface approximation.
Providing a metric file, it adapts the mesh to the prescribed sizes at nodes.
Without metric file, the -optim option allows to improve the mesh quality with respect to the initial mesh size.
Providing a level-set file containing the values of the level-set function at the mesh nodes, the -ls option allows to explicitely mesh an implicit domain and the -lssurf option splits mesh boundaries on a provided isovalue.
Providing a displacement file -lag option applies a lagrangian displacement to boundary mesh nodes.
so basically she does a lot and she does it well. π
π«Ά COMMAND LINE ARGUMENTS π«Ά
π 1. Generic options:
-hβ Print help. (the "bestie I'm lost" button π)-v β¨nβ©β Tune level of verbosity. Takes values between-1and10.-m β¨nβ©β Set maximal memory size to n MBytes.-dβ Turn on debug mode.-defaultβ Write a local parameter file (with extension.mmg2d) with setted values.-valβ Print the default parameters values.
π§ 2. File specifications:
-in β¨mesh_fileβ©β Input triangulation.-out β¨output_fileβ©β Output triangulation.-sol β¨solution_fileβ©β Load metric, level-set or displacement file.-met β¨metric_fileβ©β Load metric file in level-set mode.
π 3. Mode specifications (default is mesh adaptation):
-lag β¨nβ©β Lagrangian mesh displacement according to mode0(n=0),1(n=1) or2(n=2). This option is only available with theUSE_ELAScompilation flag. TheLinearElasticitylibrary must be founded to activate this flag.-ls xβ Create mesh of isovalue x (0.0if x is not provided).-lssurf xβ Split boundary mesh on isovalue x (0.0if x is not provided).
no cap, default mode is mesh adaptation. that's the baseline. everything else is a side quest. β¨
π 4. Parameters:
-Aβ Enable anisotropy (without metric file).-ar β¨xβ©|-nrβ Threshold for angle detection or sharp features detection disabling.-hmin β¨xβ©β Minimal mesh size.-hmax β¨xβ©β Maximal mesh size.-hsiz β¨xβ©β Constant mesh size.-hausd β¨xβ©β Control the Hausdorff distance to the underlying surface geometry.-hgrad β¨xβ©β Control the gradation.-hgradreq β¨xβ©β Control the gradation from required entities toward others.-rmc xβ Remove componants whose volumic fraction is less than x (1.e-5if x is not provided) of the whole mesh volume or not connected to base references provided in parameter file (level-set mode).-opnbdyβ Preserve input edges at the interface of two domains of the same reference.-noinsertβ No point insertion/deletion.-nomoveβ No point relocation-nosurfβ No surface modifications.-noswapβ No edge or face flipping.-nosizreqβ No imposition of the size of required edges over required vertices.-nregβ Normal regularization using laplacian - antilaplacian smoothing.-xregβ Vertex coordinates regularization using laplacian - antilaplacian smoothing.-nsd β¨nβ©β Save the subdomain of index n (default isn=0which save all subdomains).-optimβ Mesh improvement with respect to the initial mesh size.-3dMedit β¨nβ©β Write and/or read Medit mesh file in 3D. Ifval=1write the 2D mesh in 3D. Ifval=2read and write 2D mesh in 3D. Ifval=3read a 2D mesh in 3D and write it in 2D.
π RETURN VALUES π
mmg2d returns:
- the
0value if successful; - the
1value if the process fail but can save a conform mesh; - the
2value if the process fail and can't save a comform mesh.
like she'll tell you exactly how it went. communicative queen. π
π₯ SEE ALSO π₯
her sisters!! go say hi!! π«Άβ¨
and that's the whole page, bestie. this one's mmg2d, version-of-record MMG2D(1), dated May 04, 2015 β mwah, no notes, she ate and left absolutely zero crumbs. π
ππ
π¦ where this page comes from
- fedora 43: mmg2d 5.8.0-3.fc43 Β· LGPL-3.0-or-later
- fedora 43: mmg2d 5.8.0-3.fc43 Β· LGPL-3.0-or-later
- fedora 44: mmg2d 5.8.0-4.fc44 Β· LGPL-3.0-or-later
- fedora 44: mmg2d 5.8.0-4.fc44 Β· LGPL-3.0-or-later
- nixpkgs unstable: mmg 5.8.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms