This repository contains the C++ source code used to perform spring registration of a flattened cortical surface to an ideal 2D model in Benson, Butt, Brainard, Aguirre (2014).