+ \mplibcolor{\luameshmpcolor}{\luameshval@color}
+ \mplibcolor{\luameshmpcolorBack}{\luameshval@colorback}
+ \mplibcolor{\luameshmpcolorNew}{\luameshval@colornew}
+ \mplibcolor{\luameshmpcolorCircle}{\luameshval@colorcircle}
+ \mplibcolor{\luameshmpcolorBbox}{\luameshval@colorbbox}
+ \directlua{%
+ TeXOnePointMPBW("#2","#3","\luameshval@step","\luameshval@scale","\luameshval@mode","\luameshval@bbox")%
+ }%
+ %
+ \fi%
+}%
+%%% the meshAddPointBWinc commande
+%% engine of drawing
+\newif\ifluameshengineMP%
+\define@boolkey{MeshAddOneBWinc}{tikz}[true]{}%
+%% the scale
+\define@key{MeshAddOneBWinc}{scale}[1cm]{\def\luameshval@scale{#1}}%
+%% the name of the points
+\define@key{MeshAddOneBWinc}{meshpoint}[P]{\def\luameshval@meshpoint{#1}}%
+%% the name of the new point
+\define@key{MeshAddOneBWinc}{newpoint}[P]{\def\luameshval@newpoint{#1}}%
+%% a complete picture or some code of the engine
+\define@choicekey*{MeshAddOneBWinc}{step}[\val\nr]{badtriangles, cavity, newtriangles}{%
+ \ifcase\nr\relax%
+ \def\luameshval@step{badT}%
+ \or%
+ \def\luameshval@step{cavity}%
+ \or%
+ \def\luameshval@step{newT}%
+ \fi%
+}%
+% color
+%% the color of drawing
+\define@key{MeshAddOneBWinc}{color}[black]{\def\luameshval@color{#1}}%
+%% the color of background of new element
+\define@key{MeshAddOneBWinc}{colorBack}[black!20]{\def\luameshval@colorback{#1}}%
+%% the color of new element
+\define@key{MeshAddOneBWinc}{colorNew}[red]{\def\luameshval@colornew{#1}}%
+%% the color of circoncircle
+\define@key{MeshAddOneBWinc}{colorCircle}[green]{\def\luameshval@colorcircle{#1}}%
+\define@key{MeshAddOneBWinc}{colorBbox}[black]{\def\luameshval@colorbbox{#1}}%
+%
+%% a complete picture or some code of the engine
+\define@choicekey*{MeshAddOneBWinc}{mode}[\val\nr]{int, ext}{%
+ \ifcase\nr\relax%
+ \def\luameshval@mode{int}%
+ \or%
+ \def\luameshval@mode{ext}%
+ \fi%
+}%
+\define@choicekey*{MeshAddOneBWinc}{bbox}[\val\nr]{none, show}{%
+ \ifcase\nr\relax%
+ \def\luameshval@bbox{none}%
+ \or%
+ \def\luameshval@bbox{bbox}%
+ \fi%
+}%
+\presetkeys{MeshAddOneBWinc}{tikz=false,scale, meshpoint,newpoint,color,colorBack,colorNew,colorCircle,step=badtriangles,mode=int,bbox=none,colorBbox}{}%
+%
+% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+% the difinition BW embedded code between the 2 last arguments
+\newcommand*{\meshAddPointBWinc}[5][]{%
+ % #1 : the string containing the list of points
+ % (x1,y1);(x2,y2);... or the name file containing the points
+ \setkeys{MeshAddOneBWinc}{#1} %
+ \def\MeshPoint{\luameshval@meshpoint}%
+ \def\NewPoint{\luameshval@newpoint}%
+ \ifKV@MeshAddOne@tikz% if we are using tikz
+ \directlua{%
+ buildMeshTikZ("#2","\luameshval@mode","\luameshval@print","\luameshval@bbox","full","\luameshval@scale","\luameshval@color")%
+ }%
+ \else % we are using MP
+ \mplibcolor{\luameshmpcolor}{\luameshval@color}
+ \mplibcolor{\luameshmpcolorBack}{\luameshval@colorback}
+ \mplibcolor{\luameshmpcolorNew}{\luameshval@colornew}
+ \mplibcolor{\luameshmpcolorCircle}{\luameshval@colorcircle}
+ \mplibcolor{\luameshmpcolorBbox}{\luameshval@colorbbox}