diff options
author | Karl Berry <karl@freefriends.org> | 2020-06-07 20:38:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-06-07 20:38:49 +0000 |
commit | 0d6294a01690ace95d88ecdbc70242dc89912368 (patch) | |
tree | eef4df79d70ac95cc8fe2fea1fbf0625370f7790 /Master/texmf-dist/doc | |
parent | 4429ead320ce6d8f38632b2255fc52a0fa086165 (diff) |
luamesh (7jun20)
git-svn-id: svn://tug.org/texlive/trunk@55468 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamesh/README | 9 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.listing | 84 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.pdf | bin | 168735 -> 173181 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.tex | 45 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamesh/luameshdoc.cls (renamed from Master/texmf-dist/doc/lualatex/luamesh/lltxdoc.cls) | 6 | ||||
-rw-r--r-- | Master/texmf-dist/doc/lualatex/luamesh/maillagev4.msh | 453 |
6 files changed, 496 insertions, 101 deletions
diff --git a/Master/texmf-dist/doc/lualatex/luamesh/README b/Master/texmf-dist/doc/lualatex/luamesh/README index be387c79e69..926aaf6afd4 100644 --- a/Master/texmf-dist/doc/lualatex/luamesh/README +++ b/Master/texmf-dist/doc/lualatex/luamesh/README @@ -1,6 +1,6 @@ -*- coding: utf-8 -*- -luamesh package by Maxime Chupin -Version 0.51 dated 2017/04/15 +luamesh package by Maxime Chupin +Version 0.6 dated 2020/06/06 The LuaLaTeX package luamesh allows to compute and draw 2D Delaunay triangulation. The algorithm is written with lua, and depending on the choice of the “engine”, @@ -26,13 +26,14 @@ dum.bbl dum.tex fond.mp fond.pdf -lltxdoc.cls +luameshdoc.cls luamesh-doc.listing luamesh-doc.pdf luamesh-doc.tex luamesh-title.pdf maillage.geo maillage.msh +maillagev4.msh meshgarde.txt ===== Lua Script File ===== @@ -44,4 +45,4 @@ luamesh-tex.lua luamesh.sty ================== -The archive luamesh-v0-5.zip contains all the files to insert into your texmf. +The archive luamesh-v0-6.zip contains all the files to insert into your texmf. diff --git a/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.listing b/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.listing deleted file mode 100644 index e2c890627d1..00000000000 --- a/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.listing +++ /dev/null @@ -1,84 +0,0 @@ - \documentclass{article} - %% lualatex compilation - \usepackage[margin=2.5cm]{geometry} - \usepackage{luamesh} - \usepackage{fontspec} - \usepackage{multido} - \pagestyle{empty} - \def\drawPath{draw (-2,-2)*u--(8,-2)*u--(8,6)*u--(-2,6)*u--cycle withcolor 0.99white;} - \def\clipPath{clip currentpicture to (-2,-2)*u--(8,-2)*u--(8,6)*u--(-2,6)*u--cycle;} - \begin{document} - \drawPointsMeshinc[mode=ext, bbox = show,colorBbox = blue!20,print=points]{mesh.txt}% - {% - beginfig(0); - \drawPath - }% - {% - \clipPath - endfig; - } - \newpage\buildMeshBWinc[mode=ext,bbox = show,colorBbox = blue!20,print=points]{meshInit.txt}% - {% - beginfig(0); - \drawPath - }% - {% - \clipPath - endfig; - } - \multido{\ii=5+1}{4}{% - \newpage\meshAddPointBWinc[mode=ext,step=badtriangles,colorNew - =green!20!red,colorBack=red!10,colorCircle = blue,bbox = - show,colorBbox = blue!20]{mesh.txt}{\ii}% - {% - beginfig(0); - \drawPath - }% - {% - \clipPath - endfig; - } \newpage - \meshAddPointBWinc[mode=ext,step=cavity,colorNew - =green!20!red,colorBack=red!10,colorCircle = blue,bbox = - show,colorBbox = blue!20]{mesh.txt}{\ii}% - {% - beginfig(0); - \drawPath - }% - {% - \clipPath - endfig; - } \newpage - \meshAddPointBWinc[mode=ext,step=newtriangles,colorNew - =green!20!red,colorBack=red!10,colorCircle = blue,bbox = - show,colorBbox = blue!20]{mesh.txt}{\ii}% - {% - beginfig(0); - \drawPath - }% - {% - \clipPath - endfig; - } - } - \newpage - \buildMeshBWinc[mode=ext,bbox = show,colorBbox = blue!20,print=points]{mesh.txt}% - {% - beginfig(0); - \drawPath - }% - {% - \clipPath - endfig; - } - \newpage - \buildMeshBWinc[mode=ext,print=points]{mesh.txt}% - {% - beginfig(0); - \drawPath - }% - {% - \clipPath - endfig; - } -\end{document} diff --git a/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.pdf b/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.pdf Binary files differindex 92a1162b9ea..0d66dbf5573 100644 --- a/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.pdf +++ b/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.pdf diff --git a/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.tex b/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.tex index e2e2bdfc434..07b6125f0fc 100644 --- a/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.tex +++ b/Master/texmf-dist/doc/lualatex/luamesh/luamesh-doc.tex @@ -1,13 +1,13 @@ % luamesh: compute and draw meshes with lua, luamplib and tikz % -% Originally written by Maxime Chupin <mc@melusine.eu.org>, -% 2010. +% Originally written by Maxime Chupin <notezik@gmail.com>, +% 2017. % % Distributed under the terms of the GNU free documentation licence: % http://www.gnu.org/licenses/fdl.html % without any invariant section or cover text. -\documentclass{lltxdoc} +\documentclass{luameshdoc} \usepackage{tcolorbox} \usepackage{enumitem} \usepackage[tikz]{bclogo} @@ -15,7 +15,7 @@ \usepackage{animate} \title{\Verb+luamesh+: compute and draw meshes with \lualatex} -\author{Maxime Chupin \email{mc@melusine.eu.org}} +\author{Maxime Chupin \email{notezik@gmail.com}} \date{\today} @@ -167,8 +167,8 @@ } \vfill \begin{center} - Version 0.5, 2017, February, 9th \\ - \url{http://melusine.eu.org/syracuse/G/delaunay/} + Version 0.6, 2020, June, 6th \\ + \url{https://plmlab.math.cnrs.fr/mchupin/luamesh} \end{center} %% == Page de garde ==================================================== \newpage @@ -196,8 +196,15 @@ I would also like to thank the first user, an intensive \tableofcontents + \section{Installation} +\luamesh is on the CTAN and can be installed with the package manager of +your distribution. + +\begin{center} + \url{https://www.ctan.org/pkg/luamesh} +\end{center} Of course, you can just put the two files \Verb+luamesh.lua+ and \Verb+luamesh.sty+ in the working directory but this is not @@ -590,7 +597,6 @@ mesh. The followed method is, given a parameter $h$: \item to mesh the complete set of points (using the Bowyer and Watson algorithm). \end{itemize} - One can use the macro as follows: \begin{Exemple} \meshPolygon[step=polygon,scale=2cm]{(0,0);(1,0);(1,0.5);(0,0.5);(-0.20,0.35);(-0.25,0.25);(-0.20,0.15)} @@ -655,7 +661,7 @@ Here is an example of customizing the drawing. tikz, color = blue!70, meshpoint = \alpha, - colorPolygon=red!120, + colorPolygon=red!100, scale=4cm, step=mesh, print=points, @@ -1006,8 +1012,16 @@ This macro draws the triangulation produced by Gmsh and exported in the \Verb+msh+ format. The argument is the name of the file to be read (e.g.: \Verb+maillage.msh+). +Since the version 0.6, \luamesh support both version 2 and 4 of the \emph{MSH ASCII file format}. + + \begin{Exemple} -\drawGmsh{maillage.msh} +\drawGmsh{maillage.msh} % version 2.2 of MSH ASCII file format +\end{Exemple} + + +\begin{Exemple} + \drawGmsh{maillagev4.msh} % version 4.1 of MSH ASCII file format \end{Exemple} There are several options to customize the drawing. @@ -1089,7 +1103,7 @@ There are several options to customize the drawing. \end{optionsenum} \begin{Exemple} - \gmshVoronoi[tikz,scale=1.5cm, delaunay=show,styleVoronoi=dashed]{maillage.msh} + \gmshVoronoi[tikz,scale=3cm, delaunay=show,styleVoronoi=dashed]{maillagev4.msh} \end{Exemple} @@ -1207,6 +1221,17 @@ using the \Verb+animate+ package. %\animategraphics[controls]{1}{animation-crop}{}{} %\end{Exemple} + +\section{History} + +\begin{itemize} +\item June, 6th, 2020, v 0.6, correction of bug produced by the + deleted \Verb+\mplibcolor+ function of \Verb+luamplib+ package. +\item June, 6th, 2020, v 0.6, add support of version 4 of the + \emph{MSH ASCII file format}. +\end{itemize} + + \input{dum.bbl} \end{document} diff --git a/Master/texmf-dist/doc/lualatex/luamesh/lltxdoc.cls b/Master/texmf-dist/doc/lualatex/luamesh/luameshdoc.cls index d0b4d47fde5..c8d507d329c 100644 --- a/Master/texmf-dist/doc/lualatex/luamesh/lltxdoc.cls +++ b/Master/texmf-dist/doc/lualatex/luamesh/luameshdoc.cls @@ -1,8 +1,8 @@ -% private class for lualatex-doc +% copy of the private class for lualatex-doc, lltxdoc.sty. 2017 version. % see lualatex-doc.tex for copying conditions % Manuel Pégourié-Gonnard -\ProvidesClass{lltxdoc} +\ProvidesClass{luameshdoc} \LoadClass[a4paper]{scrartcl} \RequirePackage{luamesh} @@ -102,4 +102,4 @@ \small }{% \endlist -}
\ No newline at end of file +} diff --git a/Master/texmf-dist/doc/lualatex/luamesh/maillagev4.msh b/Master/texmf-dist/doc/lualatex/luamesh/maillagev4.msh new file mode 100644 index 00000000000..5f414cae379 --- /dev/null +++ b/Master/texmf-dist/doc/lualatex/luamesh/maillagev4.msh @@ -0,0 +1,453 @@ +$MeshFormat +4.1 0 8 +$EndMeshFormat +$Entities +9 8 1 0 +1 0 0 0 0 +2 2 0 0 0 +3 2 1 0 0 +4 0 1 0 0 +5 1 0.5 0 0 +6 1.5 0.5 0 0 +7 1 0.75 0 0 +8 0.5 0.5 0 0 +9 1 0.25 0 0 +1 0 0 0 2 0 0 0 2 1 -2 +2 2 0 0 2 1 0 0 2 2 -3 +3 0 1 0 2 1 0 0 2 3 -4 +4 0 0 0 0 1 0 0 2 4 -1 +5 1 0.5 0 1.5 0.75 0 0 2 6 -7 +6 0.5 0.5 0 1 0.75 0 0 2 7 -8 +7 0.5 0.25 0 1 0.5 0 0 2 8 -9 +8 1 0.25 0 1.5 0.5 0 0 2 9 -6 +1 0 0 0 2 1 0 0 8 1 2 3 4 -8 -7 -6 -5 +$EndEntities +$Nodes +18 95 1 95 +0 1 0 1 +1 +0 0 0 +0 2 0 1 +2 +2 0 0 +0 3 0 1 +3 +2 1 0 +0 4 0 1 +4 +0 1 0 +0 5 0 1 +5 +1 0.5 0 +0 6 0 1 +6 +1.5 0.5 0 +0 7 0 1 +7 +1 0.75 0 +0 8 0 1 +8 +0.5 0.5 0 +0 9 0 1 +9 +1 0.25 0 +1 1 0 9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +0.1999999999996293 0 0 +0.3999999999991157 0 0 +0.5999999999985328 0 0 +0.7999999999979498 0 0 +0.9999999999973885 0 0 +1.199999999997894 0 0 +1.39999999999842 0 0 +1.599999999998947 0 0 +1.799999999999474 0 0 +1 2 0 4 +19 +20 +21 +22 +2 0.1999999999995579 0 +2 0.3999999999989749 0 +2 0.5999999999989468 0 +2 0.7999999999994734 0 +1 3 0 9 +23 +24 +25 +26 +27 +28 +29 +30 +31 +1.799999999999167 1 0 +1.6 1 0 +1.400000000001387 1 0 +1.200000000002774 1 0 +1.000000000004117 1 0 +0.8000000000033287 1 0 +0.6000000000024965 1 0 +0.4000000000016644 1 0 +0.200000000000832 1 0 +1 4 0 4 +32 +33 +34 +35 +0 0.7999999999999998 0 +0 0.6000000000013869 0 +0 0.4000000000016644 0 +0 0.2000000000008322 0 +1 5 0 3 +36 +37 +38 +1.429166487020014 0.6282732692525027 0 +1.297235955115133 0.7010290942791583 0 +1.150779560124165 0.7383618699838352 0 +1 6 0 3 +39 +40 +41 +0.8492204391961987 0.7383618698763567 0 +0.7027640436394702 0.701029093818806 0 +0.5708335122175866 0.6282732686148088 0 +1 7 0 3 +42 +43 +44 +0.5708335129870858 0.3717267307415588 0 +0.702764044912523 0.298970905710619 0 +0.8492204398974336 0.261638130012749 0 +1 8 0 3 +45 +46 +47 +1.150779560764304 0.2616381301173972 0 +1.297235956377622 0.2989709061875121 0 +1.429166487836711 0.3717267314306073 0 +2 1 0 48 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +1.575754773693516 0.3727680526541947 0 +0.4242452263117927 0.6272319474069891 0 +1.575754773386917 0.6272319482587808 0 +0.4242452266006865 0.3727680517327859 0 +1.82006075891254 0.5000000002497784 0 +0.1799392410800134 0.4999999997649647 0 +1.506554911128919 0.2581927120523169 0 +1.664526598907325 0.2419484780735156 0 +0.4934450889280959 0.741807287986066 0 +0.335473401080529 0.7580515220625742 0 +1.506554910223461 0.7418072885976703 0 +1.664526598882498 0.7580515234014276 0 +0.4934450897845141 0.2581927113866551 0 +0.3354734011037487 0.2419484765476321 0 +1.840742812866083 0.6870274567184909 0 +0.1592571871277452 0.3129725432767637 0 +0.1592571870957545 0.6870274562353395 0 +1.840742812899947 0.3129725437997585 0 +0.7476263426605293 0.8528501324398146 0 +1.252373657339898 0.1471498675516256 0 +1.252373656782735 0.8528501325612595 0 +0.7476263432310521 0.1471498674360577 0 +0.3500620806703637 0.4999999996661191 0 +1.649937919326001 0.5000000003544357 0 +0.9137187557487293 0.8693222882414073 0 +1.086281244247427 0.1306777117579327 0 +0.9138546712285419 0.1315776182011232 0 +1.086145328777087 0.8684223817977503 0 +1.845840914421956 0.154159085577822 0 +0.1541590855654224 0.8458409144347685 0 +1.845840914596291 0.8458409145963616 0 +0.1541590854015815 0.1541590854018572 0 +1.714028605157862 0.3817276988989023 0 +0.2859713948485624 0.6182723011483432 0 +1.714028604805168 0.6182723020649582 0 +0.2859713951811274 0.3817276979436318 0 +1.387846812549787 0.1971375120799924 0 +0.6121531874993122 0.8028624879094739 0 +1.387846811532008 0.8028624882376136 0 +0.6121531884857123 0.1971375117529554 0 +1.525843663542067 0.1259771457351219 0 +0.4741563365246392 0.8740228542887083 0 +1.525843662648386 0.8740228546085549 0 +0.4741563373640486 0.1259771453787467 0 +1.69999999999921 0.1029091578165097 0 +0.3000000000012482 0.8970908422636076 0 +1.699999999999584 0.8970908430271125 0 +0.2999999999993725 0.1029091569416843 0 +$EndNodes +$Elements +18 197 1 197 +0 1 15 1 +1 1 +0 2 15 1 +2 2 +0 3 15 1 +3 3 +0 4 15 1 +4 4 +0 5 15 1 +5 5 +0 6 15 1 +6 6 +0 7 15 1 +7 7 +0 8 15 1 +8 8 +0 9 15 1 +9 9 +1 1 1 10 +10 1 10 +11 10 11 +12 11 12 +13 12 13 +14 13 14 +15 14 15 +16 15 16 +17 16 17 +18 17 18 +19 18 2 +1 2 1 5 +20 2 19 +21 19 20 +22 20 21 +23 21 22 +24 22 3 +1 3 1 10 +25 3 23 +26 23 24 +27 24 25 +28 25 26 +29 26 27 +30 27 28 +31 28 29 +32 29 30 +33 30 31 +34 31 4 +1 4 1 5 +35 4 32 +36 32 33 +37 33 34 +38 34 35 +39 35 1 +1 5 1 4 +40 6 36 +41 36 37 +42 37 38 +43 38 7 +1 6 1 4 +44 7 39 +45 39 40 +46 40 41 +47 41 8 +1 7 1 4 +48 8 42 +49 42 43 +50 43 44 +51 44 9 +1 8 1 4 +52 9 45 +53 45 46 +54 46 47 +55 47 6 +2 1 2 142 +56 60 61 91 +57 58 59 90 +58 57 56 89 +59 55 54 88 +60 91 61 95 +61 90 59 94 +62 57 89 93 +63 55 88 92 +64 25 68 86 +65 12 69 87 +66 66 29 85 +67 67 16 84 +68 20 21 52 +69 33 34 53 +70 47 46 84 +71 41 40 85 +72 37 36 86 +73 43 42 87 +74 25 26 68 +75 12 13 69 +76 28 29 66 +77 15 16 67 +78 52 21 62 +79 53 34 63 +80 20 52 65 +81 33 53 64 +82 21 22 62 +83 34 35 63 +84 19 20 65 +85 32 33 64 +86 65 55 76 +87 64 57 77 +88 59 62 78 +89 61 63 79 +90 2 19 76 +91 18 2 76 +92 4 32 77 +93 31 4 77 +94 3 23 78 +95 22 3 78 +96 1 10 79 +97 35 1 79 +98 54 47 84 +99 56 41 85 +100 42 60 87 +101 36 58 86 +102 11 91 95 +103 24 90 94 +104 89 30 93 +105 88 17 92 +106 36 6 50 +107 42 8 51 +108 8 41 49 +109 6 47 48 +110 71 52 82 +111 70 53 83 +112 52 71 80 +113 53 70 81 +114 66 39 72 +115 67 45 73 +116 38 68 75 +117 44 69 74 +118 49 41 56 +119 42 51 60 +120 48 47 54 +121 36 50 58 +122 46 45 67 +123 40 39 66 +124 38 37 68 +125 44 43 69 +126 39 7 72 +127 45 9 73 +128 7 38 75 +129 9 44 74 +130 60 51 61 +131 58 50 59 +132 49 56 57 +133 48 54 55 +134 72 7 75 +135 73 9 74 +136 76 55 92 +137 77 57 93 +138 59 78 94 +139 61 79 95 +140 85 29 89 +141 84 16 88 +142 25 86 90 +143 12 87 91 +144 13 14 74 +145 26 27 75 +146 27 28 72 +147 14 15 73 +148 28 66 72 +149 15 67 73 +150 68 26 75 +151 69 13 74 +152 19 65 76 +153 32 64 77 +154 62 22 78 +155 63 35 79 +156 52 62 82 +157 53 63 83 +158 65 52 80 +159 64 53 81 +160 51 8 70 +161 50 6 71 +162 8 49 70 +163 6 48 71 +164 55 65 80 +165 62 59 82 +166 57 64 81 +167 63 61 83 +168 11 12 91 +169 24 25 90 +170 29 30 89 +171 16 17 88 +172 61 51 83 +173 59 50 82 +174 49 57 81 +175 48 55 80 +176 17 18 92 +177 30 31 93 +178 23 24 94 +179 10 11 95 +180 27 72 75 +181 14 73 74 +182 71 48 80 +183 70 49 81 +184 50 71 82 +185 51 70 83 +186 46 67 84 +187 40 66 85 +188 68 37 86 +189 69 43 87 +190 18 76 92 +191 31 77 93 +192 78 23 94 +193 79 10 95 +194 54 84 88 +195 56 85 89 +196 86 58 90 +197 87 60 91 +$EndElements |