Polygons

    splot DATA {using x:y:z} with polygons
          {fillstyle <fillstyle spec>}
          {fillcolor <colorspec>}
splot with polygons uses pm3d to render individual triangles, quadrangles, and larger polygons in 3D. These may be facets of a 3D surface or isolated shapes. The code assumes that the vertices lie in a plane. Vertices defining individual polygons are read from successive records of the input file. A blank line separates one polygon from the next.

The fill style and color may be specified in the splot command, otherwise the global fillstyle from set style fill is used. Due to limitations in the pm3d code, a single border line style from set pm3d border is applied to all polygons. This restriction may be removed in a later gnuplot version.

pm3d sort order and lighting are applied to the faces. It is probably always desirable to use set pm3d depthsort.

    set xyplane at 0
    set view equal xyz
    unset border
    unset tics
    set pm3d depth
    set pm3d border lc "black" lw 1.5
    splot 'icosahedron.dat' with polygons \
          fs transparent solid 0.8 fc bgnd