File: hexagonaltrimesh.mp

package info (click to toggle)
texlive-base 2020.20210202-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 791,092 kB
  • sloc: perl: 45,038; sh: 4,926; makefile: 4,655; ansic: 2,266; ruby: 2,231; tcl: 2,156; xml: 1,874; python: 822; cpp: 695; awk: 606; lisp: 199; sed: 8
file content (25 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (9)
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
% 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;