# Bad orientation

**URL:** https://community.freefem.org/t/bad-orientation/411
**Category:** General Discussion
**Created:** [May 14, 2020, 10:12am UTC](https://community.freefem.org/t/bad-orientation/411 "2020-05-14T10:12:01Z")
**Posts on this page:** 1
**Showing post:** 3

<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: [May 17, 2020, 7:27am UTC](https://community.freefem.org/t/bad-orientation/411/3 "2020-05-17T07:27:32Z")

</div>

Here is how you can have FreeFEM reorient the mesh for you.

```auto
load "msh3";
lockOrientation = false;
mesh3 Th("pentagono.mesh");
lockOrientation = true;
mesh3 renumbered = Th;
fespace Vh(renumbered, P1);
Vh u = x + y + z;
load "medit"
medit("Th", Th, u);

```

---

_[View the full topic](https://community.freefem.org/t/bad-orientation/411)._
