Add a factory that maps points to cornerpoints.