Write tri2phi

Todo: floodfill and fastmarchingmethod