std::vector> VV; igl::adjacency_list(F, VV); // Initialize structures. Not sure what the target set is good for. int a = 0, b = 0; double distance = 0; std::set targets; for(int i=0; i