# Error in plotting the mesh file generated from gmsh

**URL:** <https://community.freefem.org/t/error-in-plotting-the-mesh-file-generated-from-gmsh/2463>\
**Category:** General Discussion\
**Created:** [May 17, 2023, 2:34am UTC](https://community.freefem.org/t/error-in-plotting-the-mesh-file-generated-from-gmsh/2463 "2023-05-17T02:34:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pravinae](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@pravinae](https://community.freefem.org/u/pravinae)\
**Post date:** [May 17, 2023, 2:34am UTC](https://community.freefem.org/t/error-in-plotting-the-mesh-file-generated-from-gmsh/2463/1 "2023-05-17T02:34:16Z")

</div>

Hello,

I have created an airfoil geometry in SolidWorks and meshed it in gmsh. When I tried to plot in FreeFEM++4.12 version (Later i will solve for 3D elasticity problem), it is showing Error. Code is written below:

load “msh3”

string meshFileName = “snlwindpact\_testn.mesh”;  
mesh3 Mesh = readmesh3(meshFileName);  
plot(Mesh, wait=1);

Output log file is below:

read mesh ok 0Mesh3, num Tetra:= 0, num Vertice:= 9047 num boundary Triangles:=  
18096  
– Mesh3 : snlwindpact\_testn.mesh, space dimension 3, num Tetrahedron elts 0,  
num Vertice 9047 num Bordary elts 18096  
ERROR!!! The old SURFACE mesh3 is obsolete, please use meshS type  
Assertion fail : (0)  
line :1054, in file …/femlib/Mesh3dn.cpp  
terminate called after throwing an instance of ‘ErrorAssert’  
what(): Assertion fail : (0)  
line :1054, in file …/femlib/Mesh3dn.cpp

---

<div class="post-metadata">

**Author:** ![henkel](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@henkel](https://community.freefem.org/u/henkel)\
**Post date:** [May 17, 2023, 8:46am UTC](https://community.freefem.org/t/error-in-plotting-the-mesh-file-generated-from-gmsh/2463/2 "2023-05-17T08:46:49Z")

</div>

According to your output there are zero tetrahedra in your mesh. That’s probably not what you intended, right? Check your mesh generation.

---

<div class="post-metadata">

**Author:** ![pravinae](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@pravinae](https://community.freefem.org/u/pravinae)\
**Post date:** [May 17, 2023, 3:15pm UTC](https://community.freefem.org/t/error-in-plotting-the-mesh-file-generated-from-gmsh/2463/3 "2023-05-17T15:15:36Z")

</div>

Thank you henkel. I will recreate the mesh.
