To reproduce
load openep_dataset_2.mat
distanceBetweenPoints(userdata, 1, 2, 'method', 'geodesic')
Output
Produces a segmentation fault and geodesic_library raises the error:
Assertion failed: (std::find(map.begin(), map.end(), false) == map.end()), function verify, file ./geodesic_mesh.h, line 404.
Suggested fix
Before calculating geodesic distances, check that both points are referenced in the triangulation (otherwise no geodesic path can be found).