# Importing Mesh Issue with Orientation

**URL:** <https://community.freefem.org/t/importing-mesh-issue-with-orientation/2826>\
**Category:** General Discussion\
**Created:** [December 10, 2023, 7:32pm UTC](https://community.freefem.org/t/importing-mesh-issue-with-orientation/2826 "2023-12-10T19:32:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![FluidMan](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@FluidMan](https://community.freefem.org/u/FluidMan)\
**Post date:** [December 10, 2023, 7:32pm UTC](https://community.freefem.org/t/importing-mesh-issue-with-orientation/2826/1 "2023-12-10T19:32:34Z")

</div>

Hi everyone,

I am getting this error when I import my mesh from gmsh and I can’t figure out how to address it. Any explanations or direction would be appreciated!

with code:

```auto
load "msh3"
verbosity=1;
mesh3 Th("Attempt2v1.mesh");

```

I get the error:

```auto
Mesh3::meshS, num Triangles:= 76, num Vertice:= 40 num boundary Edges:= 36
 Bad orientation: The adj border element defined by [0 2] is oriented in the same direction in element 72 and in the element 0 ****** bug in mesh construction? orientation parameter?

```

The .mesh file is attached.

[Attempt2v1.mesh](https://community.freefem.org/uploads/short-url/iRLfOmjxqAhRNA7jExlIPEW83oW.mesh) (5.8 KB)

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [December 10, 2023, 8:26pm UTC](https://community.freefem.org/t/importing-mesh-issue-with-orientation/2826/2 "2023-12-10T20:26:50Z")

</div>

See [Bad orientation - #3 by prj](https://community.freefem.org/t/bad-orientation/411/3).

---

<div class="post-metadata">

**Author:** ![FluidMan](https://avatars.discourse-cdn.com/v4/letter/f/e68b1a/32.png) [@FluidMan](https://community.freefem.org/u/FluidMan)\
**Post date:** [December 10, 2023, 8:47pm UTC](https://community.freefem.org/t/importing-mesh-issue-with-orientation/2826/3 "2023-12-10T20:47:21Z")

</div>

Thank you @prj, you are a pro!
