Thanks alot, but I have to rewrite the edge-check because I will use more terrain tiles. So I have to check the Terrain skill and if the chosen Vertex an edge vertex but your commend helped alot for checking.

Thanks Carlos