cgal icon indicating copy to clipboard operation
cgal copied to clipboard

Bug with optimal transportation curve reconstruction

Open stla opened this issue 1 year ago • 0 comments

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).

stla avatar Mar 25 '24 10:03 stla