I have a question, and I am very grateful if anyone can help me …

How to read in Freefem ++ a mesh brought from SLICER-3D to gmsh?

When I created the segmentation of an image using the 3D slicer, I generated a Vtk figure. I use gmsh to create an .msh file, but when I try to load into Freefem ++ the following error appears:

My code is:

load “msh3”
load “medit”
load “tetgen”
load “gmsh”
load “mshmet”
mesh3 Th = gmshload3(Pedao.mesh");
plot(“3D Mesh”, Th);

4.1 0 8
6 7 7 0

I use this version of gmsh … what could be giving error?

Best regards,

Pitágoras Carvalho.

You need to use Msh format version 2, not 4.

1 Like

Thank you very much for your attention.