I think I might not be understanding, but I would write one that would create an associated list of the segment number, and the angle. Does that should like it would be useful? I think you have to step through it no matter what to get to the end, so making a list along the way would do any harm.