From: Maxime Chupin (escudo) Date: Fri, 25 Nov 2016 10:11:31 +0000 (+0100) Subject: Doc: début documentation des macros *inc* X-Git-Url: https://melusine.eu.org/syracuse/G/git/?p=delaunay.git;a=commitdiff_plain;h=1bf72352b6675afbd15109aa7491c4f0d3e1b8d4 Doc: début documentation des macros *inc* --- diff --git a/doc/luamesh-doc.listing b/doc/luamesh-doc.listing index a9b8131..cf8777e 100644 --- a/doc/luamesh-doc.listing +++ b/doc/luamesh-doc.listing @@ -2,13 +2,13 @@ tikz, mode = ext, color = blue!70, - meshpoint = x, + meshpoint = \alpha, newpoint = y, colorBack=red!10, - colorNew = green!20!red, + colorNew = green!50!red, colorCircle = blue, colorBbox = black!20, bbox = show, scale=1.4cm, - step=cavity] + step=badtriangles] {mesh.txt}{6} diff --git a/doc/luamesh-doc.pdf b/doc/luamesh-doc.pdf index b8d9ef6..b3071cb 100644 Binary files a/doc/luamesh-doc.pdf and b/doc/luamesh-doc.pdf differ diff --git a/doc/luamesh-doc.tex b/doc/luamesh-doc.tex index 9a6e6ad..2202694 100644 --- a/doc/luamesh-doc.tex +++ b/doc/luamesh-doc.tex @@ -184,8 +184,8 @@ with a git project on the \Verb+melusine+ machine: \begin{center} \url{https://melusine.eu.org/syracuse/G/delaunay/} \end{center} -Then, I would like to thank the first user, and an intensive -\emph{test} user: Nicole Spillane. +Then, I would like to thank the first user, an intensive +\emph{test} user, and a very kind English corrector: Nicole Spillane. \section{Installation} @@ -532,23 +532,43 @@ We draw the addition of the 6th point. The 7th line will be ignored. tikz, mode = ext, color = blue!70, - meshpoint = x, + meshpoint = \alpha, newpoint = y, colorBack=red!10, - colorNew = green!20!red, + colorNew = green!50!red, colorCircle = blue, colorBbox = black!20, bbox = show, scale=1.4cm, - step=cavity] + step=badtriangles] {mesh.txt}{6} \end{Exemple} \section{The \emph{inc} Macros}\label{sec:inc} +The three macros presented in the above sections have complementary +macros, with the suffix \Verb+inc+ that allow the user to add code +(MetaPost or \Verb+tikz+, depending of the drawing engine) before and +after the code generated by \luamesh. + +The three macros are: + +\commande|\buildMeshBWinc[«options»]{«list of points» or «file name»}{«code before»}{«code after»}|\medskip + +\commande|\drawPointsMeshinc[«options»]{«list of points» or «file name»}{«code before»}{«code after»}|\medskip + +\commande|\meshAddPointBWinc[«options»]{«list of points» or «file name»}%| + +\commande| {«point» or «number of line»}{«code before»}{«code after»}|\medskip + \subsection{With MetaPost} -%\subsection{With \Verb+tikz+} +We consider the case where the drawing engine is MetaPost (through the +\Verb+luamplib+ package). + + + +\subsection{With TikZ} \section{Gallery of Examples}