A Clarkson's sector integration routine for personal computers.
A Clarkson's sector integration scheme has been implemented on a personal computer to calculate mean scatter-air ratio (SAR) and mean tissue-air ratio (TAR) for external photon beams of irregular shape. To find where a given radial line from the point of interest intersects the edge of the radiation field, polygon clipping algorithms have been adapted from the field of image processing. The program has calculation run times of approximately 1 s on an 80387 with a math coprocessor for an integration of 36 sectors. The software was validated by comparison to program IRREG, where for various squares and clinical shapes, the agreement was typically 0.7%. The source code is available from the authors.