In order to inspect the solder paste during the
manufacturing, accurate occupancy ratio is the key.
The computation of occupancy ratio is a nontrivial
task. In this algorithm we represent complicated
curves by straight-line segments, in which the area of a
stroke is quite close to the area of its bounding box.