Moving mesh without movemesh()

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

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

However, can I do something like below:

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?

No, to dangerous.

Frederic Hecht.