1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 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 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
|
# luamesh package
# Matthew Bertucci 2022/07/13 for v0.7
#include:xkeyval
#include:xcolor
#include:ifthen
#include:luamplib
#include:tikz
\buildMeshBW{%<<list of points> or <file>%>}
\buildMeshBW[%<options%>]{%<<list of points> or <file>%>}
\buildMeshBWinc{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
\buildMeshBWinc[%<options%>]{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
#keyvals:\buildMeshBW,\buildMeshBWinc
mode=#int,ext
bbox=#none,show
color=#%color
colorBbox=#%color
print=#none,points,dotpoints
meshpoint=%<letter(s)%>
tikz#true,false
scale=##L
thickness=##L
#endkeyvals
\drawPointsMesh{%<<list of points> or <file>%>}
\drawPointsMesh[%<options%>]{%<<list of points> or <file>%>}
\drawPointsMeshinc{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
\drawPointsMeshinc[%<options%>]{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
#keyvals:\drawPointsMesh,\drawPointsMeshinc
mode=#int,ext
bbox=#none,show
color=#%color
colorBbox=#%color
print=#none,points
meshpoint=%<letter(s)%>
tikz#true,false
scale=##L
#endkeyvals
\meshAddPointBW{%<<list of points> or <file>%>}{%<<point> or <number of line>%>}
\meshAddPointBW[%<options%>]{%<<list of points> or <file>%>}{%<<point> or <number of line>%>}
\meshAddPointBWinc{%<<list of points> or <file>%>}{%<<point> or <number of line>%>}{%<code before%>}{%<code after%>}
\meshAddPointBWinc[%<options%>]{%<<list of points> or <file>%>}{%<<point> or <number of line>%>}{%<code before%>}{%<code after%>}
#keyvals:\meshAddPointBW,\meshAddPointBWinc
mode=#int,ext
bbox=#none,show
color=#%color
colorBbox=#%color
colorNew=#%color
colorBack=#%color
colorCircle=#%color
meshpoint=%<letter(s)%>
step=#badtriangles,cavity,newtriangles
newpoint=%<letter(s)%>
tikz#true,false
scale=##L
thickness=##L
thicknessNew=##L
thicknessCircle=##L
#endkeyvals
\meshPolygon{%<<list of points> or <file>%>}
\meshPolygon[%<options%>]{%<<list of points> or <file>%>}
\meshPolygonInc{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
\meshPolygonInc[%<options%>]{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
#keyvals:\meshPolygon,\meshPolygonInc
mode=#int,ext
h=%<number%>
color=#%color
colorPolygon=#%color
print=#none,points,dotpoints
meshpoint=%<letter(s)%>
step=#polygon,grid,points,mesh
tikz#true,false
scale=##L
gridpoints=#rect,perturb
thickness=##L
thicknessPolygon=##L
#endkeyvals
\luameshmpcolor
\luameshmpcolorBack
\luameshmpcolorBbox
\luameshmpcolorCircle
\luameshmpcolorNew
\luameshmpcolorPoly
\buildVoronoiBW{%<<list of points> or <file>%>}
\buildVoronoiBW[%<options%>]{%<<list of points> or <file>%>}
\buildVoronoiBWinc{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
\buildVoronoiBWinc[%<options%>]{%<<list of points> or <file>%>}{%<code before%>}{%<code after%>}
#keyvals:\buildVoronoiBW,\buildVoronoiBWinc
mode=#int,ext
bbox=#none,show
color=#%color
colorBbox=#%color
colorVoronoi=#%color
print=#none,points
meshpoint=%<letter(s)%>
circumpoint=%<letter(s)%>
tikz#true,false
scale=##L
delaunay=#none,show
styleDelaunay=#none,dashed
styleVoronoi=#none,dashed
thickness=##L
thicknessVoronoi=##L
#endkeyvals
\luameshmpcolorVoronoi
\drawGmsh{file}#i
\drawGmsh[options%keyvals]{file}#i
\drawGmshinc{file}{code before}{code after}#i
\drawGmshinc[options%keyvals]{file}{code before}{code after}#i
#keyvals:\drawGmsh,\drawGmshinc
color=#%color
print=#none,points
meshpoint=%<letter(s)%>
tikz#true,false
scale=##L
thickness=##L
#endkeyvals
\gmshVoronoi{file}#i
\gmshVoronoi[options%keyvals]{file}#i
\gmshVoronoiinc{file}{code before}{code after}#i
\gmshVoronoiinc[options%keyvals]{file}{code before}{code after}#i
#keyvals:\gmshVoronoi,\gmshVoronoiinc
color=#%color
colorVoronoi=#%color
print=#none,points
meshpoint=%<letter(s)%>
circumpoint=%<letter(s)%>
tikz#true,false
scale=##L
delaunay=#none,show
styleDelaunay=#none,dashed
styleVoronoi=#none,dashed
thickness=##L
thicknessVoronoi=##L
#endkeyvals
\CircumPoint#*
\MeshPoint#*
\NewPoint#*
TeXCluaMeshTikZ#B
TeXCluaMeshNewTikZ#B
TeXCluaMeshBackTikZ#B
TeXCluaMeshCircleTikZ#B
\PackageName#S
\filedate#S
\fileversion#S
|