# User Help

**URL:** https://forum.mmgtools.org/c/user-help/5.md

[Latest](https://forum.mmgtools.org/latest.md) · [Categories](https://forum.mmgtools.org/categories.md)

---

## [About the User Help category](https://forum.mmgtools.org/t/about-the-user-help-category/14)

<div class="topic-metadata">

**Author:** [@Algiane](https://forum.mmgtools.org/u/Algiane)\
**Replies:** 2\
**Last updated:** [February 14, 2019, 9:18am UTC](https://forum.mmgtools.org/t/about-the-user-help-category/14 "2019-02-14T09:18:20Z")

</div>

Need help to use the Mmg plateform? You are in the right place...

---

## [MMG3D sometimes fails to insert points on common edges of different physics groups](https://forum.mmgtools.org/t/mmg3d-sometimes-fails-to-insert-points-on-common-edges-of-different-physics-groups/921)

<div class="topic-metadata">

**Author:** [@WEIXUEP](https://forum.mmgtools.org/u/WEIXUEP)\
**Replies:** 2\
**Last updated:** [February 12, 2026, 11:22am UTC](https://forum.mmgtools.org/t/mmg3d-sometimes-fails-to-insert-points-on-common-edges-of-different-physics-groups/921 "2026-02-12T11:22:48Z")

</div>

Hi, Thanks to mmg, my mesh generation has become much more elegant, no longer just a simple mesh splitting.I’ve also encountered an issue while using it and would like to discuss this in the community. I’m using mmg3d …

---

## [Remeshing a disk (mmg2d)](https://forum.mmgtools.org/t/remeshing-a-disk-mmg2d/919)

<div class="topic-metadata">

**Author:** [@theophile-boinnard](https://forum.mmgtools.org/u/theophile-boinnard)\
**Replies:** 0\
**Last updated:** [October 24, 2025, 9:11am UTC](https://forum.mmgtools.org/t/remeshing-a-disk-mmg2d/919 "2025-10-24T09:11:27Z")

</div>

Dear mmg community, I am doing time-dependent problems on a disk with anisotropic mesh adaptation. However, after many steps of remeshing, the disk slowly shrinks. I understand this is due to the fact that mmg cannot kn…

---

## [Periodic boundary conditions](https://forum.mmgtools.org/t/periodic-boundary-conditions/916)

<div class="topic-metadata">

**Author:** [@PA\_M](https://forum.mmgtools.org/u/PA_M)\
**Replies:** 1\
**Last updated:** [October 16, 2025, 8:27am UTC](https://forum.mmgtools.org/t/periodic-boundary-conditions/916 "2025-10-16T08:27:47Z")

</div>

Hello, I wanted to know whether MMG now supports periodic boundary conditions either with mmgs or mmg3d. Also is there any plan to implement periodic BCs in the future? Thanks alot in advance for the feedback, PAM

---

## [MMG2D metric, non orthogonal parametrization](https://forum.mmgtools.org/t/mmg2d-metric-non-orthogonal-parametrization/904)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 0\
**Last updated:** [July 11, 2025, 8:43am UTC](https://forum.mmgtools.org/t/mmg2d-metric-non-orthogonal-parametrization/904 "2025-07-11T08:43:27Z")

</div>

This is a very interesting post. In summary: generate a mesh of a rectangle which represents the u.,v mapping of a sphere, and re-map the resulting mesh onto a sphere. An anisotropic metric is used in meshing the u, …

---

## [2D mesh to 3D mesh](https://forum.mmgtools.org/t/2d-mesh-to-3d-mesh/914)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 0\
**Last updated:** [August 29, 2025, 2:12pm UTC](https://forum.mmgtools.org/t/2d-mesh-to-3d-mesh/914 "2025-08-29T14:12:45Z")

</div>

Hello, let consider the face shown in green in Fig.1. Fig.1 The face has as support a BSpline surface: I would like to mesh it in 3d space. In order to to that: the boundary edges of the face are mapped onto (u…

---

## [Small elements with wrong marker (MMG2D)](https://forum.mmgtools.org/t/small-elements-with-wrong-marker-mmg2d/913)

<div class="topic-metadata">

**Author:** [@Nils](https://forum.mmgtools.org/u/Nils)\
**Replies:** 0\
**Last updated:** [July 28, 2025, 1:05pm UTC](https://forum.mmgtools.org/t/small-elements-with-wrong-marker-mmg2d/913 "2025-07-28T13:05:27Z")

</div>

Hello everyone, I am using MMG2D/3D for meshing moving interfaces, and it has worked very well in several test cases. However, in my latest example, I encountered an issue that I can’t quite explain. As shown in t…

---

## [Hmax ignored in mmg2D when 1D boundary is "required"](https://forum.mmgtools.org/t/hmax-ignored-in-mmg2d-when-1d-boundary-is-required/912)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 3\
**Last updated:** [July 18, 2025, 6:09pm UTC](https://forum.mmgtools.org/t/hmax-ignored-in-mmg2d-when-1d-boundary-is-required/912 "2025-07-18T18:09:40Z")

</div>

Hello forum a question. I have a 2d boundary in which all the edges are defined as required, i.e. “fixed”. I attached it (“test.mesh”). test.mesh (1.1 KB) It seems that the mesh engine does not see the hmin and hmax v…

---

## [Mmg based meshing module](https://forum.mmgtools.org/t/mmg-based-meshing-module/907)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 1\
**Last updated:** [July 15, 2025, 11:42am UTC](https://forum.mmgtools.org/t/mmg-based-meshing-module/907 "2025-07-15T11:42:38Z")

</div>

Hello, trying to build a meshing module based on the Opencascade geometry kernel and MMG. In short summary: it is possible to, and it works: to read a .step file using the opencascade reader retrieve shape trian…

---

## [How to get all the edges in MMG3D](https://forum.mmgtools.org/t/how-to-get-all-the-edges-in-mmg3d/873)

<div class="topic-metadata">

**Author:** [@EEELim](https://forum.mmgtools.org/u/EEELim)\
**Replies:** 1\
**Last updated:** [July 1, 2025, 2:02pm UTC](https://forum.mmgtools.org/t/how-to-get-all-the-edges-in-mmg3d/873 "2025-07-01T14:02:27Z")

</div>

I found that not all the edges can be acquired after refining mesh via MMG3D\_Get\_edge. Like the first example of “libexamples/mmg3d/adaptation\_example0/example0\_a”, there are only 24 edges in the output file. Is there a…

---

## [Weird results using metric in MMG2D](https://forum.mmgtools.org/t/weird-results-using-metric-in-mmg2d/880)

<div class="topic-metadata">

**Author:** [@Nils](https://forum.mmgtools.org/u/Nils)\
**Replies:** 1\
**Last updated:** [July 1, 2025, 12:52pm UTC](https://forum.mmgtools.org/t/weird-results-using-metric-in-mmg2d/880 "2025-07-01T12:52:31Z")

</div>

Hello everyone, I’m currently exploring how to use level set discretization in combination with a metric in mmg2d, and I’ve been referring to the example IsosurfDiscretization\_IsAndMetric for guidance. In my implementa…

---

## [How to effectively define vertex size for MMG3D?](https://forum.mmgtools.org/t/how-to-effectively-define-vertex-size-for-mmg3d/884)

<div class="topic-metadata">

**Author:** [@liufield](https://forum.mmgtools.org/u/liufield)\
**Replies:** 1\
**Last updated:** [July 1, 2025, 10:06am UTC](https://forum.mmgtools.org/t/how-to-effectively-define-vertex-size-for-mmg3d/884 "2025-07-01T10:06:34Z")

</div>

Dear Users and developers, I am using MMG3D to do mesh refinement for computational electromagnetics. My logic is given as follows: Loop find the vertex size by averaging the edge length surrounding each vertex find…

---

## [\[Help\] How to Generate a 2D .mesh File Compatible with MMG (mmg\_hausd Use Case)](https://forum.mmgtools.org/t/help-how-to-generate-a-2d-mesh-file-compatible-with-mmg-mmg-hausd-use-case/888)

<div class="topic-metadata">

**Author:** [@xiapxiaoyu1981](https://forum.mmgtools.org/u/xiapxiaoyu1981)\
**Replies:** 1\
**Last updated:** [July 1, 2025, 9:06am UTC](https://forum.mmgtools.org/t/help-how-to-generate-a-2d-mesh-file-compatible-with-mmg-mmg-hausd-use-case/888 "2025-07-01T09:06:55Z")

</div>

Hi everyone, I’m a beginner with MMG and would like to seek your advice on using the mmg-hausd feature to achieve approximate control over the boundary. I saw that the example “Mesh adaptation to a solution” provided in…

---

## [What are the functions for anisotropic mesh element "splitting" or refinement?](https://forum.mmgtools.org/t/what-are-the-functions-for-anisotropic-mesh-element-splitting-or-refinement/895)

<div class="topic-metadata">

**Author:** [@KlausB](https://forum.mmgtools.org/u/KlausB)\
**Replies:** 1\
**Last updated:** [June 30, 2025, 2:23pm UTC](https://forum.mmgtools.org/t/what-are-the-functions-for-anisotropic-mesh-element-splitting-or-refinement/895 "2025-06-30T14:23:16Z")

</div>

Hello, Step1: I have been experimenting with mmg2d and want to create an anisotropic surface mesh where the elements of the coarse initial Gmsh mesh are modified to become anisotropic with an approximate aspect ratio x:…

---

## [How to create an anisotropic boundary layer mesh leveraging MMG?](https://forum.mmgtools.org/t/how-to-create-an-anisotropic-boundary-layer-mesh-leveraging-mmg/891)

<div class="topic-metadata">

**Author:** [@KlausB](https://forum.mmgtools.org/u/KlausB)\
**Replies:** 0\
**Last updated:** [May 2, 2025, 7:18pm UTC](https://forum.mmgtools.org/t/how-to-create-an-anisotropic-boundary-layer-mesh-leveraging-mmg/891 "2025-05-02T19:18:58Z")

</div>

Hello, I am new to MMG after it was mentioned by deepseek and the developer of Gmsh in relation to my requirements. I’ve also seen a somewhat related post “Using MMG with prisms” but let me explain what I am trying …

---

## [Level-set for half geometries with a symmetry plane](https://forum.mmgtools.org/t/level-set-for-half-geometries-with-a-symmetry-plane/871)

<div class="topic-metadata">

**Author:** [@ramghr](https://forum.mmgtools.org/u/ramghr)\
**Replies:** 2\
**Last updated:** [March 16, 2025, 2:51pm UTC](https://forum.mmgtools.org/t/level-set-for-half-geometries-with-a-symmetry-plane/871 "2025-03-16T14:51:21Z")

</div>

Dear users and developers, I am trying to use libmmg3D to extract the zero iso-surface. My geometry is a half-sphere. For the background mesh, I only want to generate the volume mesh outside the sphere, excluding the in…

---

## [Questions about the 3d libexamples](https://forum.mmgtools.org/t/questions-about-the-3d-libexamples/839)

<div class="topic-metadata">

**Author:** [@liufield](https://forum.mmgtools.org/u/liufield)\
**Replies:** 7\
**Last updated:** [March 10, 2025, 10:59pm UTC](https://forum.mmgtools.org/t/questions-about-the-3d-libexamples/839 "2025-03-10T22:59:28Z")

</div>

Dear users and developers, I am trying MMG3D’s built-in examples, mmg-master/libexamples/mmg3d/adaptation\_example0. Here, example0\_a load a mesh and solution file for adapdation. example0\_b defined mesh and solution …

---

## [Can MMG3D\_Set\_tensorSols reproduce the results of MMG3D\_Set\_scalarSols? (The previous one with this same tilte is void))](https://forum.mmgtools.org/t/can-mmg3d-set-tensorsols-reproduce-the-results-of-mmg3d-set-scalarsols-the-previous-one-with-this-same-tilte-is-void/868)

<div class="topic-metadata">

**Author:** [@liufield](https://forum.mmgtools.org/u/liufield)\
**Replies:** 0\
**Last updated:** [February 17, 2025, 12:00am UTC](https://forum.mmgtools.org/t/can-mmg3d-set-tensorsols-reproduce-the-results-of-mmg3d-set-scalarsols-the-previous-one-with-this-same-tilte-is-void/868 "2025-02-17T00:00:10Z")

</div>

Dear MMG users and developers, I am trying to use MMG3D\_Set\_tensorSols, and I have tested it using the built-in example: :open\_file\_folder: File: mmg/libexamples/mmg3d/adaptation\_example0/example0\_b/main.c In the main …

---

## [Setting required triangles](https://forum.mmgtools.org/t/setting-required-triangles/845)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 4:05pm UTC](https://forum.mmgtools.org/t/setting-required-triangles/845 "2025-02-11T16:05:53Z")

</div>

Hello forum Let suppose one wants tò set a triangle {V1, V2,V3} as “required”, for example using the API function. Does the order of vertices count? If {V1,V2,V3} works, does {V1,V3,V2} work? Than you Giovanni

---

## [Set required vertex moved after remeshing](https://forum.mmgtools.org/t/set-required-vertex-moved-after-remeshing/846)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 1\
**Last updated:** [February 11, 2025, 3:33pm UTC](https://forum.mmgtools.org/t/set-required-vertex-moved-after-remeshing/846 "2025-02-11T15:33:07Z")

</div>

Hello, before remeshing a volume mesh I set some vertices as requires, using the API function. I noticed that in the resulting mesh the required vertices have been moved by a very small amount, of the order of 1e-15/1e…

---

## [Simple example that causes MMG to crash and freeze](https://forum.mmgtools.org/t/simple-example-that-causes-mmg-to-crash-and-freeze/847)

<div class="topic-metadata">

**Author:** [@kraft](https://forum.mmgtools.org/u/kraft)\
**Replies:** 5\
**Last updated:** [February 4, 2025, 6:04pm UTC](https://forum.mmgtools.org/t/simple-example-that-causes-mmg-to-crash-and-freeze/847 "2025-02-04T18:04:43Z")

</div>

I am investigating a class of simple graphs which cause MMG to freeze, crash, and fail. I’m more interested in solving the freezing case if it matters; as it requires Task Manager to end the process. The graphs all foll…

---

## [Required triangles](https://forum.mmgtools.org/t/required-triangles/844)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 0\
**Last updated:** [January 11, 2025, 4:20pm UTC](https://forum.mmgtools.org/t/required-triangles/844 "2025-01-11T16:20:42Z")

</div>

Hello forum, I have a fully tetrahedral mesh of a solid. I would like to remesh it, but defining “as fixed” some triangles, expecting that they are not affected by the remeshing process. In particular, for my current…

---

## [Remeshing a mesh made of wedges](https://forum.mmgtools.org/t/remeshing-a-mesh-made-of-wedges/842)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 1\
**Last updated:** [January 5, 2025, 3:40pm UTC](https://forum.mmgtools.org/t/remeshing-a-mesh-made-of-wedges/842 "2025-01-05T15:40:33Z")

</div>

Hello forum, a simple question. I have an initial mesh made of prisms with a triangular base (wedges). mmg3D (used as library) is able to remesh this grid, outputing a fully tetrahedral mesh at the end? Regards Giovan…

---

## [How to keep an internal face using -opnbdy](https://forum.mmgtools.org/t/how-to-keep-an-internal-face-using-opnbdy/841)

<div class="topic-metadata">

**Author:** [@liufield](https://forum.mmgtools.org/u/liufield)\
**Replies:** 2\
**Last updated:** [December 28, 2024, 12:55am UTC](https://forum.mmgtools.org/t/how-to-keep-an-internal-face-using-opnbdy/841 "2024-12-28T00:55:52Z")

</div>

Dear MMG users and developers, Happy holiday. I tried to use -opnbdy option to keep an internal geometric surface(marked by orange) in 3D. Then run mmg3d-O3 -opnbdy LumPort.mesh I tried version 5.8.0 and 5.7.0. …

---

## [Hmin hmax parameters](https://forum.mmgtools.org/t/hmin-hmax-parameters/835)

<div class="topic-metadata">

**Author:** [@gbettega](https://forum.mmgtools.org/u/gbettega)\
**Replies:** 0\
**Last updated:** [November 8, 2024, 9:14pm UTC](https://forum.mmgtools.org/t/hmin-hmax-parameters/835 "2024-11-08T21:14:40Z")

</div>

“hmin (resp. hmax) is the minimal (resp. maximal) authorized size for an edge of Te. They should be understood as ‘security bounds’ over the desired length scale for the resulting mesh.” " The default values for this p…

---

## [Adapting the mesh based on the level set values](https://forum.mmgtools.org/t/adapting-the-mesh-based-on-the-level-set-values/834)

<div class="topic-metadata">

**Author:** [@ramghr](https://forum.mmgtools.org/u/ramghr)\
**Replies:** 0\
**Last updated:** [November 7, 2024, 10:34pm UTC](https://forum.mmgtools.org/t/adapting-the-mesh-based-on-the-level-set-values/834 "2024-11-07T22:34:43Z")

</div>

Hello! I am trying to use mmg3d to extract the zero level set of a 3D extruded wing. The background mesh I am using is not very coarse, but at the trailing edge, there are no grid points inside the wing. When calculatin…

---

## [No Changes After Remeshing](https://forum.mmgtools.org/t/no-changes-after-remeshing/818)

<div class="topic-metadata">

**Author:** [@mint\_wong](https://forum.mmgtools.org/u/mint_wong)\
**Replies:** 1\
**Last updated:** [November 7, 2024, 11:19am UTC](https://forum.mmgtools.org/t/no-changes-after-remeshing/818 "2024-11-07T11:19:21Z")

</div>

Hello, I have a tetrahedral mesh that, after being loaded into MMG3D, showed one element with a quality of \<0.1. I aim to improve it by using MMG3D to remesh in hopes of enhancing the worst quality. However, after runn…

---

## [Question about Adaptation to an input size map](https://forum.mmgtools.org/t/question-about-adaptation-to-an-input-size-map/831)

<div class="topic-metadata">

**Author:** [@liufield](https://forum.mmgtools.org/u/liufield)\
**Replies:** 1\
**Last updated:** [November 7, 2024, 10:53am UTC](https://forum.mmgtools.org/t/question-about-adaptation-to-an-input-size-map/831 "2024-11-07T10:53:44Z")

</div>

Dear MMG users and developers, I am exploring MMG. I am following the tutorials (2d Mesh adaptation to a solution). The .sol file defined a size map there. At each vertex, it associates the desired size of the surround…

---

## [Remeshing topography issues](https://forum.mmgtools.org/t/remeshing-topography-issues/812)

<div class="topic-metadata">

**Author:** [@GernotFrisch](https://forum.mmgtools.org/u/GernotFrisch)\
**Replies:** 0\
**Last updated:** [July 1, 2024, 8:18am UTC](https://forum.mmgtools.org/t/remeshing-topography-issues/812 "2024-07-01T08:18:41Z")

</div>

Hello. I work for a civil engineering software company and we get lots of topography and laser scanned surfaces that we have to “extrude” to get volume bodies for them. Many meshes are way overcomplicated. Others have v…

---

## [Running the solution of .mesh file](https://forum.mmgtools.org/t/running-the-solution-of-mesh-file/591)

<div class="topic-metadata">

**Author:** [@imomnipresent](https://forum.mmgtools.org/u/imomnipresent)\
**Replies:** 5\
**Last updated:** [June 4, 2024, 9:45am UTC](https://forum.mmgtools.org/t/running-the-solution-of-mesh-file/591 "2024-06-04T09:45:12Z")

</div>

Hi, I am a new user and would like to seek help in visualizing my first mesh. This is what i have done till now: Installed mmg Run this command - mmg2d\_O3 -ar 10 acdcBdy.mesh - in the directory where acdcBdy.mesh(taken…

[Next page](https://forum.mmgtools.org/c/user-help/5.md?page=1)
