#!/usr/local/bin/gnuplot -persist # set terminal canvas rounded size 600,400 enhanced fsize 10 lw 1.6 fontscale 1 name "polygons_1" jsdir "." # set output 'polygons.1.js' unset border unset key set object 1 polygon from 0.00000, 1.00000, 1.61803 to 1.00000, 1.61803, 0.00000 to -1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, 1.61803 set object 1 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 2 polygon from 0.00000, 1.00000, 1.61803 to -1.00000, 1.61803, 0.00000 to -1.61803, 0.00000, 1.00000 to 0.00000, 1.00000, 1.61803 set object 2 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 3 polygon from 0.00000, 1.00000, 1.61803 to -1.61803, 0.00000, 1.00000 to 0.00000, -1.00000, 1.61803 to 0.00000, 1.00000, 1.61803 set object 3 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 4 polygon from 0.00000, 1.00000, 1.61803 to 0.00000, -1.00000, 1.61803 to 1.61803, 0.00000, 1.00000 to 0.00000, 1.00000, 1.61803 set object 4 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 5 polygon from 0.00000, 1.00000, 1.61803 to 1.61803, 0.00000, 1.00000 to 1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, 1.61803 set object 5 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 6 polygon from 0.00000, 1.00000, -1.61803 to 1.00000, 1.61803, 0.00000 to 1.61803, 0.00000, -1.00000 to 0.00000, 1.00000, -1.61803 set object 6 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 7 polygon from 0.00000, 1.00000, -1.61803 to 1.61803, 0.00000, -1.00000 to 0.00000, -1.00000, -1.61803 to 0.00000, 1.00000, -1.61803 set object 7 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 8 polygon from 0.00000, 1.00000, -1.61803 to 0.00000, -1.00000, -1.61803 to -1.61803, 0.00000, -1.00000 to 0.00000, 1.00000, -1.61803 set object 8 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 9 polygon from 0.00000, 1.00000, -1.61803 to -1.61803, 0.00000, -1.00000 to -1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, -1.61803 set object 9 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 10 polygon from 0.00000, 1.00000, -1.61803 to -1.00000, 1.61803, 0.00000 to 1.00000, 1.61803, 0.00000 to 0.00000, 1.00000, -1.61803 set object 10 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 11 polygon from -1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, 1.61803 to -1.61803, 0.00000, 1.00000 to -1.00000, -1.61803, 0.00000 set object 11 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 12 polygon from -1.00000, -1.61803, 0.00000 to -1.61803, 0.00000, 1.00000 to -1.61803, 0.00000, -1.00000 to -1.00000, -1.61803, 0.00000 set object 12 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 13 polygon from -1.00000, -1.61803, 0.00000 to -1.61803, 0.00000, -1.00000 to 0.00000, -1.00000, -1.61803 to -1.00000, -1.61803, 0.00000 set object 13 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 14 polygon from -1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, -1.61803 to 1.00000, -1.61803, 0.00000 to -1.00000, -1.61803, 0.00000 set object 14 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 15 polygon from -1.00000, -1.61803, 0.00000 to 1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, 1.61803 to -1.00000, -1.61803, 0.00000 set object 15 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 16 polygon from -1.00000, 1.61803, 0.00000 to -1.61803, 0.00000, -1.00000 to -1.61803, 0.00000, 1.00000 to -1.00000, 1.61803, 0.00000 set object 16 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 17 polygon from 1.00000, -1.61803, 0.00000 to 0.00000, -1.00000, -1.61803 to 1.61803, 0.00000, -1.00000 to 1.00000, -1.61803, 0.00000 set object 17 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 18 polygon from 1.00000, 1.61803, 0.00000 to 1.61803, 0.00000, 1.00000 to 1.61803, 0.00000, -1.00000 to 1.00000, 1.61803, 0.00000 set object 18 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 19 polygon from 1.61803, 0.00000, 1.00000 to 1.00000, -1.61803, 0.00000 to 1.61803, 0.00000, -1.00000 to 1.61803, 0.00000, 1.00000 set object 19 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 20 polygon from 1.61803, 0.00000, 1.00000 to 0.00000, -1.00000, 1.61803 to 1.00000, -1.61803, 0.00000 to 1.61803, 0.00000, 1.00000 set object 20 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border lt -1 set object 21 polygon set object 21 depthorder clip lw 1.0 dashtype solid fc rgb "gray" fillstyle transparent solid 0.80 border set view 30, 30, 1.5, 1 set view equal xyz set style data lines unset xtics unset ytics unset ztics unset cbtics unset rtics set title "Faces of an icosahedron drawn as 20 individual objects" set xrange [ -2.00000 : 2.00000 ] noreverse nowriteback set x2range [ * : * ] noreverse writeback set yrange [ -2.00000 : 2.00000 ] noreverse nowriteback set y2range [ * : * ] noreverse writeback set zrange [ -2.00000 : 2.00000 ] noreverse nowriteback set cbrange [ * : * ] noreverse writeback set rrange [ * : * ] noreverse writeback set pm3d depthorder set pm3d interpolate 1,1 flush begin noftriangles border linecolor rgb "black" linewidth 2.000 dashtype solid corners2color mean set colorbox vertical origin screen 0.9, 0.2 size screen 0.05, 0.6 front noinvert bdefault phi = 1.61803398874989 n = 21 splot -10