This paper presents a method for organizing computations in phase-step interferometry for irregular shapes that is straightforward to program. In addition to data files, which are recorded with incremental phase steps between the interfering beams, this method requires a mask file where the valid pixels can be distinguished from invalid pixels. For example, they may lie above a known threshold. By means of a simple edge-following routine, the program moves around the perimeter of the undone portion of the shape, doing the phase calculations and changing the mask pixels to mark them done. This allows the program to move contiguously from pixels that have been done to those that have not. Modulo 2pi ambiguities are avoided by computing the phase differences between neighboring pixels and summing them to obtain individual pixel values.