\documentclass{article}
%% compiler avec lualatex
\usepackage[margin=2.5cm]{geometry}
\usepackage{luamesh}
\usepackage{fontspec}
\usepackage{multido}
\pagestyle{empty}


\begin{document}

\multido{\ii=5+1}{3}{%
  \newpage
  \meshAddOnePoint[mode=ext,step=badtriangles,
  colorNew =green!20!red,
  colorBack=red!10,
  colorCircle = blue,
  ]{mesh.txt}{\ii}
  \newpage
  \meshAddOnePoint[mode=ext,step=cavity,
  colorNew =green!20!red,
  colorBack=red!10,
  colorCircle = blue,
  ]{mesh.txt}{\ii}
  \newpage
  \meshAddOnePoint[mode=ext,step=newtriangles,
  colorNew =green!20!red,
  colorBack=red!10,
  colorCircle = blue,
  ]{mesh.txt}{\ii}
}

\newpage

\buildMesh[mode=ext,print=points]{mesh.txt}


\end{document}
