Mmgs - fails to refine surface

Hello.

This is my first time using mmgs. I tried to improve the quality of one of my surface meshes using mmgs. Here is the input mesh: DBChaise.mesh (2.8 MB)

I wrote the mesh file using Matlab, in the format .mesh. GMESH is able to open it, so I guess I don’t have syntax errors in the mesh file.

When running mmg the program starts running, but it does nothing to the mesh. The input is the same as the output. I run the command

mmgs_O3 -in DBChaise.mesh -hausd 0.0001 -nr -out DBChaiseRef.mesh

and the output is

    -- MMGS, Release 5.3.6 (Apr. 10, 2017) 
     Copyright (c) IMB-LJLL, 2004-
     Nov 20 2017 20:57:25

  -- INPUT DATA
  %% DBChaise.mesh OPENED
  MAXIMUM MEMORY AUTHORIZED (Mo)    7851
     NUMBER OF VERTICES      54073 /   500000   CORNERS/REQ. 0 / 0
     NUMBER OF TRIANGLES     88548 /  1000000
  ** DBChaise.sol  NOT FOUND. USE DEFAULT METRIC.
  -- DATA READING COMPLETED.     0.285s
  -- MMGS, Release 5.3.6 (Apr. 10, 2017) 
     Copyright (c) IMB-LJLL, 2004-
     Nov 20 2017 20:57:19

  -- MMGS: INPUT DATA
  --  INPUT DATA COMPLETED.     0.000s

  &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
   MODULE MMGS: IMB-LJLL : 5.3.6 (Apr. 10, 2017)
  &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

  -- PHASE 1 : ANALYSIS
     Connected component: 1825,  genus: 6114,   reoriented: 0
     Edges: 154848,  tagged: 44052,  ridges: 44052, required: 0, refs: 0
  ## 9275 non manifold points detected
  ** DEFINING GEOMETRY
     20693 normals,  13949 tangents updated  (0 failed)

  -- MESH QUALITY   88548
     BEST   0.999992  AVRG.   0.688115  WRST.   0.000000 (5149)
     HISTOGRAMM:   79.55 % > 0.5
       0.8 < Q <   1.0     42379    47.86 %
       0.6 < Q <   0.8     18476    20.87 %
       0.4 < Q <   0.6     15109    17.06 %
       0.2 < Q <   0.4      7012     7.92 %
       0.0 < Q <   0.2      5572     6.29 %

  ## Error: _MMG5_minQualCheck: too bad quality for the worst element: (elt 5149 ->    0.000000e+00)
     NUMBER OF VERTICES      54073   CORNERS     9276
     NUMBER OF TRIANGLES     88548
     NUMBER OF EDGES         44052   RIDGES     44052

  -- WRITING DATA FILE DBChaiseRef.mesh
  %% DBChaiseRef.mesh OPENED
     NUMBER OF VERTICES      54073  CORNERS      9276
     NUMBER OF TRIANGLES     88548
     NUMBER OF EDGES         44052  RIDGES      44052
     NUMBER OF NORMALS       20693  TANGENTS    33380
  -- WRITING COMPLETED

   ELAPSED TIME  0.676s

Can you point me in the right direction to make this work? Thank you

Best regards,
Beni

Sorry to have bothered you with this… In fact it was the mesh which was flawed. In meshlab I removed all duplicate faces and vertices and all non manifold edges (I don’t really know what that means…) and with the repaired mesh, it worked now.

Best regards,
Beni

Hi Beni,
thank you for your messages, and sorry for getting back a little late to you.
Glad to hear that everything seems to work fine by now.
Do not hesitate to contact us for any further questions!
Cheers