cgal
cgal copied to clipboard
Bug with optimal transportation curve reconstruction
Hello,
The code is here: https://gist.github.com/stla/d4462b548e50a3b966a7b13e78c9e413.
It contains:
std::cerr << "Edges:" << std::endl;
std::vector<Segment>::iterator eit;
for (eit = edges.begin(); eit != edges.end(); eit++)
std::cout << *eit << std::endl;
and the output of this code is:
Edges:
-2 2 2 2
2 -2 -2 -2
2 2 2 -2
-2 -2 -2 2
2 -2 -2 2
However, all input points are on the square with vertices (+/-1, +/-1).