Initial release of Maemo 5 port of gnuplot
[gnuplot] / demo / hidden2.dem
1 #
2 # Another example of hidden surface removal,
3 # this time using pm3d depth-ordering
4 #
5
6 set title "Interlocking Tori - PM3D surface with no depth sorting"
7
8 set parametric
9 set urange [-pi:pi]
10 set vrange [-pi:pi]
11 set isosamples 50,20
12
13 unset key
14 set view 60, 30, 1.1, 1.33
15
16 set pm3d scansbackward
17 splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with pm3d, \
18       1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with pm3d
19
20 pause -1 "Hit return to continue"
21
22 set title "Interlocking Tori - PM3D surface with depth sorting"
23
24 set pm3d depthorder
25 splot cos(u)+.5*cos(u)*cos(v),sin(u)+.5*sin(u)*cos(v),.5*sin(v) with pm3d, \
26       1+cos(u)+.5*cos(u)*cos(v),.5*sin(v),sin(u)+.5*sin(u)*cos(v) with pm3d
27
28 pause -1 "Hit return to continue"
29
30 reset