Fitting a prolate spheroidal surface mesh to measured data of the endocardial and epicardial surfaces. 38 nodes defines an ellipsoid. The first 19 nodes defines the endocardial surface while the last 19 defines the epicardial surface. By running through the executable example file twice, first with the variable $surface = 'endo' and then with $surface = 'epi', the initial nodes are fitted to the respective surfaces. The result will be written out in files called endo_fitted.ipnode and epi_fitted.ipnode. These two files can be merged by running the command "perl createMergedNodeFile.p" from the commandline (if you have perl installed). For each fit, the result can be viewed in CMGUI by running the draw.com file.