The following section must be revised and completed, use it only as a guideline, but the best information in (as usual) on the code, in other words UTSL
A polygon type let the user manipulate some polygons using a better set of parameters, as device drivers, polygon types are implemnted using an structure, most of whose fields are pointer to functions, we describe now this structure and how to add the new polygon type to Unifpack kernel.
As with device drivers there is a shell script (pltempla) that creates the necessary files, to fix ideas, suposse we want to create a polygon type to handle ``Ngon's'', we first execute the script as in
$ pltempla Ngon ngon
this would create two files (plngon.c and plngon.h) that will contain the code for the polygon type Ngon.
Edit the file plngon.c, if you must keep any special data for the polygon add the necessary fields into the _AuxPlData structure, next you must write or complete the code for the following functions, remember that polygon types handle the fundamental polygons , below we refer to the polygon only as ``the polygon''.