diff options
Diffstat (limited to 'Master/texmf-dist/doc/metapost/featpost/example/standard/hexagonaltrimesh.mp')
-rw-r--r-- | Master/texmf-dist/doc/metapost/featpost/example/standard/hexagonaltrimesh.mp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/metapost/featpost/example/standard/hexagonaltrimesh.mp b/Master/texmf-dist/doc/metapost/featpost/example/standard/hexagonaltrimesh.mp new file mode 100644 index 00000000000..316ca97482e --- /dev/null +++ b/Master/texmf-dist/doc/metapost/featpost/example/standard/hexagonaltrimesh.mp @@ -0,0 +1,25 @@ +% hexagonaltrimesh.mp +% L. Nobre G. +% 2003 + +%input featpost3Dplus2D; + +def zsurface( expr xc, yc ) = + cosd(xc*57)*cosd(yc*57)+4*mexp(-(xc**2+yc**2)*6.4) +enddef; + +f := 7*(4,1,5); +Spread := 35; +LightSource := 10*(4,-3,4); +SubColor := 0.4background; + +beginfig(1); + numeric np, ssize; + path chair; + np = 40; + ssize = 15; + + hexagonaltrimesh( true,np,ssize,zsurface); +endfig; + +end; |