Compute Area of a Polygonal Model (polyarea.c)

Here is a simple program to compute the total area of all polygons in the given data file. The program expects one argument on the command line which is the name of the file to read, and it prints out one line with the total computed area.

\begin{center}\vbox{\input{cexample/polyarea.tex}
}\end{center}