Fix area calculation. No longer use cutlines, but use a representation
of disjoint closed polygons.
C implementation of angle