# Moving mesh without movemesh()

**URL:** <https://community.freefem.org/t/moving-mesh-without-movemesh/1090>\
**Category:** General Discussion\
**Created:** [July 8, 2021, 6:34am UTC](https://community.freefem.org/t/moving-mesh-without-movemesh/1090 "2021-07-08T06:34:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)\
**Post date:** [July 8, 2021, 6:34am UTC](https://community.freefem.org/t/moving-mesh-without-movemesh/1090/1 "2021-07-08T06:34:48Z")

</div>

Can we directly move the coordinates of a mesh’s vertices without using the function of movemesh()? both P1 and P2 elements?

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [July 8, 2021, 8:15am UTC](https://community.freefem.org/t/moving-mesh-without-movemesh/1090/2 "2021-07-08T08:15:42Z")

</div>

This is not a problem of movemesh your generated mesh is too bad.

---

<div class="post-metadata">

**Author:** ![yongxing](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/yongxing/32/3632_2.png) [@yongxing](https://community.freefem.org/u/yongxing)\
**Post date:** [July 8, 2021, 9:19am UTC](https://community.freefem.org/t/moving-mesh-without-movemesh/1090/4 "2021-07-08T09:19:00Z")

</div>

However, can I do something like below:

```auto
for(int i=0; i<Ths0.nv; i++){
	Ths(i).x = Ths0(i).x + dispx[][i];
	Ths(i).y = Ths0(i).y + dispy[][i];
	Ths(i).z = Ths0(i).z + dispz[][i];		
}

```

I have tried above expressions, which is illegal. However, is there a similar one which is allowed by FreeFem?

---

<div class="post-metadata">

**Author:** ![frederichecht](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.freefem.org/frederichecht/32/15_2.png) [@frederichecht](https://community.freefem.org/u/frederichecht)\
**Post date:** [December 4, 2021, 3:37pm UTC](https://community.freefem.org/t/moving-mesh-without-movemesh/1090/5 "2021-12-04T15:37:37Z")

</div>

No, to dangerous.

Frederic Hecht.
