Have shape.py always select the two most extreme points for an angle

This doesn't have the desired result for smaller angles. The found points are often not on the function line.